double buffered documentation

2015-08-16 Thread Igor Korot
Hi, This page: https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-get-double-buffered does not say what is the GTK+ version that deprecates the function. Could someone shed some light, please? Thank you. ___ gtk-list mailing list gtk-lis

Re: margin documentation

2015-08-16 Thread Jasper St. Pierre
The margin is a set of extra pixels added around the edge of the widget. How many pixels are added is decided by this property. I suggest you simply try setting random values and see what happens. On Sun, Aug 16, 2015 at 2:42 PM, Igor Korot wrote: > Hi, > In the > https://developer.gnome.org/gtk

margin documentation

2015-08-16 Thread Igor Korot
Hi, In the https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidget--margin-xxx it says : [quote] Allowed values: [0,32767] [/quote] However, it does not explain which value correspond to what alignment. Does 0 mean the widget should be expanded to fill the space allocated or its used t

Re: gtk_drag_begin_with_coordinates() question

2015-08-16 Thread Igor Korot
Jasper, On Sun, Aug 16, 2015 at 4:28 PM, Jasper St. Pierre wrote: > Huh, it's strange the documentation didn't get properly parsed. > There's a comment in the source that tells you it's in the coordinate > space of the passed in widget: > > https://git.gnome.org/browse/gtk+/tree/gtk/gtkdnd.c#n257

Re: gtk_drag_begin_with_coordinates() question

2015-08-16 Thread Jasper St. Pierre
Huh, it's strange the documentation didn't get properly parsed. There's a comment in the source that tells you it's in the coordinate space of the passed in widget: https://git.gnome.org/browse/gtk+/tree/gtk/gtkdnd.c#n2578 On Sun, Aug 16, 2015 at 1:27 PM, Igor Korot wrote: > Hi, > In the > http

gtk_drag_begin_with_coordinates() question

2015-08-16 Thread Igor Korot
Hi, In the https://developer.gnome.org/gtk3/stable/gtk3-Drag-and-Drop.html#gtk-drag-begin-with-coordinates it is missing so I am going to ask here: This function takes 2 parameters: gint x and gint y. Which coordinates they should be in: screen or window? Thank you.

Re: What am I doing wrong?

2015-08-16 Thread Gergely Polonkai
Hello, as far as I remember, the new interface guidelines discourage using both icons and labels on one control, so I guess this is the easiest, if not the only way. Best, Gergely On 16 Aug 2015 15:01, "Igor Korot" wrote: > Stefan, > > On Sun, Aug 16, 2015 at 7:42 AM, Stefan Salewski > wrote:

Re: More documentation inconsistencies

2015-08-16 Thread Emmanuele Bassi
Hi; On 16 August 2015 at 17:46, Igor Korot wrote: > Emmanuele, > > On Sun, Aug 16, 2015 at 12:24 PM, Emmanuele Bassi wrote: >> Hi; >> >> I suggest you file a bug. >> >> In any case, deprecation does not imply lack of support; you can still >> use stock items — except you'll get a warning at comp

Re: More documentation inconsistencies

2015-08-16 Thread Igor Korot
Emmanuele, On Sun, Aug 16, 2015 at 12:24 PM, Emmanuele Bassi wrote: > Hi; > > I suggest you file a bug. > > In any case, deprecation does not imply lack of support; you can still > use stock items — except you'll get a warning at compile time and/or > at run time. True. But it gives a wrong impr

Re: More documentation inconsistencies

2015-08-16 Thread Emmanuele Bassi
Hi; I suggest you file a bug. In any case, deprecation does not imply lack of support; you can still use stock items — except you'll get a warning at compile time and/or at run time. Ciao, Emmanuele. On 16 August 2015 at 17:09, Igor Korot wrote: > Hi, > In the https://developer.gnome.org/gtk3

More documentation inconsistencies

2015-08-16 Thread Igor Korot
Hi, In the https://developer.gnome.org/gtk3/stable/GtkFileChooserDialog.html it stays: [quote] first_button_textstock ID or text to go in the first button, or NULL. [allow-none] [/quote] However, if I understand correctly stock items are deprecated. So even though the function is present s

Set icon on GtkFileChooser button

2015-08-16 Thread Igor Korot
Hi, ALL, Is it possible to set an icon on the button of GtkFileChooser interface dialog? >From the first glance I don't have access to the "Open/Save/Cancel" buttons... Thank you. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailm

Re: Why the code is not compatible?

2015-08-16 Thread Igor Korot
Jen, On Sun, Aug 16, 2015 at 9:20 AM, Jean Brefort wrote: > Hi Igor, > > The code fallbacks to a default icon size (24x24) if you pass a wrong > argument. You should also get a warning in the console if I read the > source correctly. Thx for the explanation. > > Le dimanche 16 août 2015 à 09:06

Re: Why the code is not compatible?

2015-08-16 Thread Jean Brefort
Hi Igor, The code fallbacks to a default icon size (24x24) if you pass a wrong argument. You should also get a warning in the console if I read the source correctly. Le dimanche 16 août 2015 à 09:06 -0400, Igor Korot a écrit : > Hi, Jean, > > On Sun, Aug 16, 2015 at 8:59 AM, Jean Brefort > wrot

Re: Why the code is not compatible?

2015-08-16 Thread Igor Korot
Hi, Jean, On Sun, Aug 16, 2015 at 8:59 AM, Jean Brefort wrote: > GtkIconSize is an enum. Acceptable values are 1 to 6, 6 being > GTK_ICON_SIZE_DIALOG. (0 means invalid). 48 is undefined. But then why it works if I just use gtk_image_new_from_icon_name()? Am I losing the size, converting from Gdk

Re: What am I doing wrong?

2015-08-16 Thread Igor Korot
Stefan, On Sun, Aug 16, 2015 at 7:42 AM, Stefan Salewski wrote: > On Sun, 2015-08-16 at 01:42 -0400, Igor Korot wrote: >> However the image is not displayed on the button. >> I can't call gtk_window_set_icon_name() as GtkButton is not GtkWindow >> and I'm getting a compiler error. >> >> So how do

Re: Why the code is not compatible?

2015-08-16 Thread Jean Brefort
GtkIconSize is an enum. Acceptable values are 1 to 6, 6 being GTK_ICON_SIZE_DIALOG. (0 means invalid). 48 is undefined. Le dimanche 16 août 2015 à 14:24 +0200, Stefan Salewski a écrit : > On Sat, 2015-08-15 at 19:16 -0400, Igor Korot wrote: > > However, if > > I explicitely put 48 instead of GTK_I

Re: Why the code is not compatible?

2015-08-16 Thread Stefan Salewski
On Sat, 2015-08-15 at 19:16 -0400, Igor Korot wrote: > However, if > I explicitely put 48 instead of GTK_ICON_SIZE_DIALOG in the call to > gtk_icon_theme_load_icon() or > use gtk_image_new_from_icon_name() instead of the whole block the icon > appears properly sized. https://developer.gnome.org/g

Re: What am I doing wrong?

2015-08-16 Thread Stefan Salewski
On Sun, 2015-08-16 at 01:42 -0400, Igor Korot wrote: > However the image is not displayed on the button. > I can't call gtk_window_set_icon_name() as GtkButton is not GtkWindow > and I'm getting a compiler error. > > So how do I make a button display my named icon? https://developer.gnome.org/gtk