On Sat, 2015-06-13 at 20:43 +0200, Stefan Salewski wrote:
On Tue, 2015-06-09 at 08:54 +0200, Juan L. Freniche wrote:
I am trying to change the color of the column headers of a treeview,
with no sucess at all.
It is funny that currently many people try to change default colors of
GTK
On Fri, 2015-06-12 at 16:50 +, Gulshan Singh wrote:
I need some help with this question:
https://stackoverflow.com/questions/30791670/how-to-style-a-gtklabel-with-css
A commentor mentioned that I should attach the provider directly to the
GtkLabel instead of the window, and that worked,
On Fri, 2015-06-12 at 23:13 +, Gulshan Singh wrote:
I actually asked in #gtk+ on Freenode, but didn't get any response. I
asked
again on the GNOME server, and I got an answer that worked:
https://stackoverflow.com/questions/30791670/how-to-style-a-gtklabel-with-css/30813433#30813433
That
On Mon, 2015-06-08 at 19:22 +0100, Emmanuele Bassi wrote:
I plan starting with 3.16, but got no response so far regarding my
request to access the build system.
Likely because you're using gtk-list@, which nobody in the GTK team
follows (except, I think, me).
Interesting info -- indeed I
On Thu, 2015-05-14 at 20:48 +0100, Emmanuele Bassi wrote:
Client-side decorated windows when running under a compositor have 5
pixels around the border
Interesting.
I wonder if these pixel design works well with ultra-HD and 4k displays?
I am going to buy a 27 or 28 inch display with 3840*2048
On Thu, 2015-05-07 at 13:02 +0100, Richard Shann wrote:
From https://developer.gnome.org/gtk3/stable/GtkDialog.html
GTK_RESPONSE_REJECT Generic response id, not used by GTK+ dialogs
GTK_RESPONSE_ACCEPT Generic response id, not used by GTK+ dialogs
Maybe try
GTK_RESPONSE_OK and
On Thu, 2015-05-07 at 16:02 +0100, Richard Shann wrote:
After experimenting with a different bit of code, I think I've found
the
cause of the problem: doing the widget destroy by responding to the
response signal seems to be ruining the return value.
That is interesting. Indeed I had a
On Thu, 2015-04-09 at 23:17 +0930, Roger Matthews wrote:
Hi Paulo, or anybody else interested in helping,
I've read chapter 2 of Foundations of GTK+ Development concerning
signals and callback functions as suggested (see below) but am still
getting this error:
Hello,
I think you used wrong
We have some basic Nim GTK3 bindings available now, see
https://github.com/StefanSalewski?tab=repositories
Of course this note is only for smart people interested in Nim language
(http://nim-lang.org/) and GTK3 development.
The bindings are not really high level -- there is no Nim
On Sun, 2015-03-29 at 22:16 -0700, dmg wrote:
Hi there,
I am one of the developers of xournal.
Hello,
if I understand correctly, your problem is, that shapes drawn on screen
are not smooth.
I can remember a related thread, see
On Mon, 2015-03-30 at 13:22 +0100, Emmanuele Bassi wrote:
* use the event history for the devices you're interested in
* disable motion event compression on the GdkWindow that you're using
to detect events, and build up the positions you will then draw
Other painting applications opted for
On Wed, 2015-03-18 at 20:39 -0400, Scott Talbert wrote:
Basically, GTK assumes that its libraries are loaded into the global
symbol namespace. I'm guessing that Nim is probably loading them into
a
local namespace (RTLD_LOCAL) and thus when GtkBuilder tries to load
GtkSourceView, it can't
explanation for the observed behavior.
I will see if I can specify RTLD_GLOBAL -- but maybe there are
disadvantages involved, so manually registering the GObject which do not
belong to the GTK core before asking the builder to process the xml file
may be sufficient.
Best regards,
Stefan Salewski
Hello,
in the last months I was working on GTK3 bindings for the Nim
programming language (http://nim-lang.org/). Now that they are nearly
complete (https://github.com/StefanSalewski?tab=repositories) I tried to
make some example code. One is the gtksourceview test-completion.c
example, currently
I am working on GTK3 wrappers/bindings for Nim language.
For gdk-pixbuf-2.31.2 there seems to exist a function
gdk_pixbuf_new_from_file_utf8 which is called in
gdk-pixbuf-io.c:
retval = gdk_pixbuf_new_from_file_utf8 (utf8_filename, error);
and referenced in
gdk-pixbuf-core.h:
#define
On Fri, 2015-01-02 at 16:29 -0800, Jasper St. Pierre wrote:
On Fri, Jan 2, 2015 at 4:16 PM, Stefan Salewski m...@ssalewski.de wrote:
I am working on GTK3 wrappers/bindings for Nim language.
You sort of answered your own question here :)
Think about what happens when this #define
I would like to port the Aporia Nim-(rod) editor from GTK2 to GTK3 --
have already done large part of latest necessary wrappers involved, as
glib, cairo, gdk, gtk... (nim-cairo is already at github because I got
some requests to put the files there, other will follow, see
On Tue, 2014-09-02 at 11:01 +1000, Lex Trotman wrote:
As stated before, motion events are only *delivered* per frame, all
the compress flag does is set it to deliver the motion as one event
per frame or multiple events per frame. If you have compress true (as
above) only one event is
On Mon, 2014-09-01 at 14:12 +0200, ax487 wrote:
Ok, as far as I am concerned disabling the event compression solves
the
problem. In my case I have optimized the drawing routines such that
the
time needed to process a motion event (i.e. to draw a new segment onto
the canvas) is 1ms. Since my
On Mon, 2014-09-01 at 23:29 +0200, ax487 wrote:
Just as an illustration: http://picpaste.com/event-DmCNqCHZ.png
It does make a difference :)
Yes -- so my assumption was that you get events with better time
resolution than 10 ms without compression.
So I hacked together a small test in plain C.
I have used the green checkmark icon button up to 3.10 release.
(in toolbar,http://www.ssalewski.de/PetEd.html.en )
Since 3.12 it is not available any more, for a fast fix I replaced
#@minor_grid_select = Gtk::RadioToolButton.new(@major_grid_select,
Gtk::Stock::APPLY)
with these two lines
On Sun, 2014-08-31 at 16:10 +0200, Stefan Salewski wrote:
I have used the green checkmark icon button up to 3.10 release.
(in toolbar,http://www.ssalewski.de/PetEd.html.en )
Since 3.12 it is not available any more, for a fast fix I replaced
#@minor_grid_select = Gtk::RadioToolButton.new
On Fri, 2014-08-29 at 16:58 -0500, richard boaz wrote:
you can find a discussion and one possible solution of this in a previous
thread:
https://mail.gnome.org/archives/gtk-list/2011-July/msg00059.html
I think unfortunately the solution is not that easy...
I have a similar problem with my
window basis:
https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-set-event-compression
your application should benefit from this API.
Sounds great, thanks. Can not test with Ruby currently, it is 3.12,
which is not available yet for Ruby bindings.
Stefan Salewski
On Sat, 2014-08-30 at 02:18 +0200, Stefan Salewski wrote:
Sounds great, thanks. Can not test with Ruby currently, it is 3.12,
which is not available yet for Ruby bindings.
Just for fun I have tested with GTK 3.12 for Nimrod, but I can not see
an effect of event compression... (It was necessary
On Sat, 2014-08-30 at 03:46 +0200, Stefan Salewski wrote:
Just for fun I have tested with GTK 3.12 for Nimrod, but I can not see
an effect of event compression... (It was necessary to put
set_event_compression() after window.show_all(), seem that Ruby
bindings
ensure that a Gdk window
On Thu, 2014-08-28 at 18:14 +0200, rastersoft wrote:
Hi all:
I need to create a label with a fixed size in pixels, and if the text is
too large, elipsize it. Is it possible? I tried nearly all kind of ways
and tricks (even capturing the size-allocate signal and adjust there the
On Fri, 2014-08-08 at 00:11 +0200, ax487 wrote:
My point is the following: when the
widget is insensitive, it should look different to indicate this fact.
Specifically the widget should look greyed out in some sense. The
question is how to achieve this effect for a custom widget.
Did you read
On Sun, 2014-08-03 at 11:20 +0530, Gurjot Singh Bhatti wrote:
Your project looks nice. Is it open-source?
Sure. It started as a proof of concept, to test my user interface ideas,
and how fine Ruby, Cairo and GTK works together.
Generally I am satisfied, but in the last years I have done
On Sun, 2014-08-03 at 16:13 +0200, Stefan Salewski wrote:
A similar very basic library in C should be available somewhere
OK -- found it.
It was this thread
https://mail.gnome.org/archives/gtk-app-devel-list/2014-June/msg00011.html
and this was a reply mentioning the library
https
On Sun, 2014-08-03 at 00:21 +0530, Gurjot Singh Bhatti wrote:
This may have been asked many times already
Yes, in the last years a have found a few similar questions with google,
in most cases not with VERY helpful replies.
I myself have used cairo with a GTK drawing area for my schematics
gtk+-3.12.1/gdk $ grep GdkAtom *.h
gdktypes.h:typedef struct _GdkAtom*GdkAtom;
https://developer.gnome.org/gdk2/stable/gdk2-Properties-and-Atoms.html#GdkAtom
typedef struct _GdkAtom*GdkAtom;
https://developer.gnome.org/gdk3/stable/gdk3-Properties-and-Atoms.html#GdkAtom
On Wed, 2014-04-02 at 19:40 +0900, Takao Fujiwara wrote:
I'd like to port GtkTable to GtkGrid but my cells show big widths.
Have you considered this:
https://developer.gnome.org/gtk3/stable/GtkGrid.html
Description
GtkGrid is a container which arranges its child widgets in rows and
columns. It
. But is
it OK for smart-phone kids? Well, if other operating systems will reduce
images also, they may accept it.
Best regards,
Stefan Salewski
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list
On Sat, 2014-03-08 at 16:18 +, Bill Vyzas wrote:
Hi all,
I want to draw some graphs and bar charts for some data I have and I am
searching for any library available. I am using gtk+ with C.
Do you have something in mind? A research on the internet didn't give any
satisfactory results,
On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote:
I have constructed the following minimal example,
Yes indeed,
https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-events
This function must be called while a widget is unrealized.
On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote:
gtk_widget_show_all (window);
GdkWindow *win = gtk_widget_get_window(layout);
g_print(win is %p initial mask 0x%x\n, win,
gdk_window_get_events (win));
gdk_window_set_events (win, gdk_window_get_events (win) |
On Sun, 2014-03-02 at 12:52 +0100, Balint Reczey wrote:
Hi,
I'm trying to move Wireshark from using the deprecated
gtk_toggle_tool_button_new_from_stock(), etc. API to use
gtk_toggle_tool_button_new() and friends instead [1].
Wireshark defines many custom icons icons, but they can't be
On Sun, 2014-03-02 at 11:55 +0800, Wiky wrote:
I try to change the GtkLabel foreground color using following code:
PangoAttrList *attrList = pango_attr_list_new();
pango_attr_list_insert(attrList,
pango_attr_foreground_new(255, 0, 0));
specify not the desired, but the
actual size. See bottom most answer here:
http://stackoverflow.com/questions/12521134/gtktoolbutton-with-custom-icon-but-of-stock-icon-size
Best regards,
Stefan Salewski
___
gtk-list mailing list
gtk-list@gnome.org
https
On Sat, 2014-03-01 at 02:08 +0100, Stefan Salewski wrote:
On Sat, 2014-03-01 at 00:42 +, Lance Capser (lmcapser) wrote:
The row_inserted and row_deleted signals in the GtkTreeModel are
each called with the GtkTreePath of the row in question:
That is true.
But for my test
like
row_inserted
value = (null)
row ins = 4
row_changed
value = Capote
row cha = 4
row_deleted
row del = 1
which indicates a sequence insert-change-delete.
At least I am understanding now what is going on and I should be able to
use it in that way in my application.
Thanks,
Stefan Salewski
I have a simple list display built of a ListView and ListStore as
described in
https://developer.gnome.org/gtk3/stable/GtkTreeView.html
I used gtk_tree_view_set_reorderable () to allow the user to reorder the
list by grabbing rows and moving it up or down.
From
On Sat, 2014-03-01 at 00:42 +, Lance Capser (lmcapser) wrote:
The row_inserted and row_deleted signals in the GtkTreeModel are
each called with the GtkTreePath of the row in question:
That is true.
But for my test with a list with only two rows I got numbers from 0 to 2
from
On Mon, 2014-02-17 at 16:00 +0100, Stefan Salewski wrote:
One solution may be: Do not put the whole notebook widget into a
scrolled_window, but put each page of the notebook into its own
scrolled_window. Will that work, and is that the the recommended way?
Seems to work fine indeed -- I simply
total...)
Or is there a better way?
(For label widgets, I may consider ellipsize property, which cuts
names if they are too long for the visible area, but I am looking for a
general best approach with works fine with all kind of widgets in pages
of notebooks)
Best regards,
Stefan Salewski
. (Unfortunately I am not
notified when user changes font size in gnome control center...)
Are there betters solution? I.e direct access to users default font size
in x and y pixels?
Best regards,
Stefan Salewski
___
gtk-list mailing list
gtk-list@gnome.org
) it was my impression that
there is no High-DPI infrastructure for GTK3 yet -- seem that google
gave me only old outdated discussions...
Best regards
Stefan Salewski
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk
On Fri, 2014-01-17 at 17:26 -0500, Jasper St. Pierre wrote:
It doesn't seem like there's anything wrong with using the deprecated
methods, then. File a bug with the Ruby GTK3 bindings, and continue
using
window.get_pointer(); for now would be my suggestion.
I sent a message to the Ruby-Gnome2
to the pointing device, which
is not available from keyboard event.
Or in other words:
In GTK3-demo there is an Drawing_Area application where we can draw when
we held down the left mouse key: How can we draw a circle at the current
mouse position when we press 'C' key?
Best regards,
Stefan
, i.e. delete
object under mouse cursor when 'X' or 'DEL' key is pressed. That is much
faster than context menu or button clicks. And professionals prefer
working fast.
Best regards,
Stefan Salewski
___
gtk-list mailing list
gtk-list@gnome.org
https
by
https://developer.gnome.org/gdk2/stable/GdkDisplay.html#gdk-display-get-pointer
may give me the current mouse coordinates of pointer in my drawing area?
Best regards,
Stefan Salewski
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org
On Fri, 2014-01-17 at 17:18 -0500, Paul Davis wrote:
you can track where the mouse is with enter/leave events, and there
are
often good reasons for wanting to do that anyway.
That should not work well for CAD applications.
We have a large drawing area, where we draw objects using cairo
On Fri, 2014-01-17 at 17:11 -0500, Jasper St. Pierre wrote:
Yeah. This is to maintain ABI compatibility. Technically, events have
private internal data, and you can use gdk_event_get_device(); to get
the
keyboard device for a key event.
This isn't documented very well; we should perhaps
() raises an exception and
aborts my program. I will contact the authors of the Ruby bindings.
Best regards
Stefan Salewski
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list
On Mon, 2013-07-01 at 17:42 +0200, Borja Mon Serrano wrote:
The problem with (4) is dragdrop. I think it could be very difficult to
deal with it, so I'm going to try the third solution, with goocanvasmm. Do
you know any example of use of goocanvasmm?
Yes, dragdrop may be not very easy.
Stefan Salewski
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
On Fri, 2013-06-07 at 10:13 +0200, Felix Möller wrote:
Hey there,
I'm trying to use a GtkScrolledWindow with the capability of scrolling,
but not displaying scroll bars
GTK3 or GTK2? Called from C or Python?
This may help:
On Fri, 2013-06-07 at 19:05 +0200, Felix Möller wrote:
Sorry for being unprecise.
GTK3 in combination with C.
If I set the scrollbars' policy to never, the scrollbar is not
displayed, but the window is not as small as it should be, but as big as
its content. I want it to have the same size
On Wed, 2012-10-03 at 20:18 +0200, David Nečas wrote:
On Wed, Oct 03, 2012 at 09:42:24AM -0500, Yury Alyaev wrote:
What is the right way to catch Enter pressing at the end of the
text input to GtkEntry. The obvious way is conecting the callback to
the activate signal, but for some reason
On Mon, 2012-08-20 at 03:09 +0200, ben wrote:
Hello list,
It may be a basic and common question, but i dare to ask...
I began to write a custom widget, subclassing GtkDrawingArea,
An alternative approach may be to just use a GTK drawing area with cairo
drawing operations as I did
On Mon, 2012-07-30 at 18:48 -0400, Paul Davis wrote:
had i started today, i would have used pygtk for the GUI. and if not that,
I used ruby-gtk2 recently (http://www.ssalewski.de/PetEd.html.en) --
very fine GTK2 bindings including cairo support and a nice tutorial.
On Thu, 2012-07-12 at 18:12 -0700, Thomas Dineen wrote:
Gentle People:
I am planning a graphical application for plotting Stock Market
related price
and volume data and I have been experimenting with GTk and Cairo.
I have been going through the tutorials on both the GTK and Cairo
enforce discrete, non equidistant values
like 100, 50, 25, 10 when clicking on the arrows.
I have found some people asking similar questions, but no answer.
Best regards,
Stefan Salewski
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org
On Tue, 2012-03-20 at 19:30 -0400, Paul Davis wrote:
On Tue, Mar 20, 2012 at 7:13 PM, Stefan Salewski m...@ssalewski.de wrote:
I was going to use
http://developer.gnome.org/gtk3/stable/GtkComboBoxText.html
with text entry. The problem is, that I have to connect to changed
signal, which
On Tue, 2012-03-20 at 19:30 -0400, Paul Davis wrote:
On Tue, Mar 20, 2012 at 7:13 PM, Stefan Salewski m...@ssalewski.de wrote:
I was going to use
http://developer.gnome.org/gtk3/stable/GtkComboBoxText.html
with text entry. The problem is, that I have to connect to changed
signal, which
On Wed, 2012-03-07 at 09:44 -0900, Christopher Howard wrote:
X
Bump.
I'm trying to look through some other projects to see how this is done,
but I would appreciate it if anyone happens to know of the top of their
head.
I guess you can have a drawingarea of fixed size if you put it in a
On Sat, 2012-02-04 at 00:01 +0100, David Nečas wrote:
On Fri, Feb 03, 2012 at 11:36:13PM +0100, Stefan Salewski wrote:
How can I immediately activate or deactivate tooltips for all TreeView
widgets on user action, i.e. menu operation.
You can enable/disable all tooltips using the gtk
emit an event myself,
when user wants to toggle tooltip display? I have no idea currently.
Thanks,
Stefan Salewski
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
On Sat, 2012-02-04 at 00:01 +0100, David Nečas wrote:
On Fri, Feb 03, 2012 at 11:36:13PM +0100, Stefan Salewski wrote:
How can I immediately activate or deactivate tooltips for all TreeView
widgets on user action, i.e. menu operation.
You can enable/disable all tooltips using the gtk
it difficult to use the
above solution.)
Is there a better solution or even an example available?
Best Regards,
Stefan Salewski
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
editor [2], [3].
Thanks, that sound very promising and not too difficult.
I was aware that I can pack multiple renderer in the same tree view
column, but I was not aware that I can hide them totally using a
cell_data_func.
Best regards,
Stefan Salewski
On Tue, 2011-06-14 at 14:30 -0600, James Tappin wrote:
I would like to be able to make a code that draws some (possibly very
complex) vector graphics,
A better place for asking may be the cairo mailing list? At least there
was some discussion about such tasks in the past. One recommended way
On Thu, 2011-05-26 at 18:14 +0100, John Emmas wrote:
Using gtk_window_new() will create a window which the user can re-size
and maximize. I don't want my user to be able to perform these
actions. In my old Win32 days I'd achieve it by creating a window,
then removing the styles WS_THICKFRAME
motion events whenever the mouse
pointer is over/in my drawing area, even when the window containing that
drawing area is not active.
This was surprising for me. I want events only when the window is the
active one. What is the correct method to achieve that behavior?
Thanks,
Stefan Salewski
On Thu, 2010-09-23 at 15:15 +0200, Stefan Salewski wrote:
Hello,
I have to draw some simple technical diagrams, I am using cairo (from
Ruby rcairo) with interactive GTK drawing-area and PNG, PDF export.
Currently I am using cairos toy text for text labels.
My intention was to using pango
201 - 276 of 276 matches
Mail list logo