Re: gtk_widget_set_size_request stopped working with GTK3

2012-10-03 Thread Steffen Gutmann
Hi Tristan! I suggest you start by filing an enhancement bug against GtkImage for this. Yes, I can do that.  Just to make sure, I file a new bug for component gtk, severity set to enhancement, and put somethign like Size request of GtkImage into the title.  Is this correct? If you have a

Re: gtk_widget_set_size_request stopped working with GTK3

2012-10-01 Thread Steffen Gutmann
Hi Tristan! Lets not go around the merry-go-round one more time. In GTK+3, widgets receive *at least* what they requested in the size requesting phase. User facing apis cannot undermine the minimal requirements for the geometry which a widget has requested. User facing apis can

Re: gtk_widget_set_size_request stopped working with GTK3

2012-09-28 Thread Steffen Gutmann
Hi Tristan   I must admit the docs are incorrect about this, it says:     Sets the minimum size of a widget; that is, the widget's size request will be width by height. You can use this function to force a widget to be either larger or smaller than it normally would be. But what it should

gtk_widget_set_size_request stopped working with GTK3

2012-09-27 Thread Steffen Gutmann
Hi, with GTK2 some applications used to set the minimum size of some widgets using gtk_widget_set_size_request.  E.g. the min size of a GtkImage.  This no longer works with GTK3 and the min size of the GtkImage is that of the underlying image, e.g. a GdkPixbuf. There is also a bug report

gtk_text_buffer_set_text and remember cursor/adjustments

2008-12-24 Thread Steffen Gutmann
Hi! Is there a way to set the text of a GtkTextView but also keep the cursor location and adjustments of a GtkScrolledWindow where the text view resides? I am trying to do it using the attached code but there are two problems: 1. When you scroll down, set the cursor and then press 'Reload'

Re: gtk_text_buffer_set_text and remember cursor/adjustments

2008-12-24 Thread Steffen Gutmann
It seems the attachment got lost so I put it here in plain text: -- Steffen /* ** gcc -o textview textview.c -Wall `pkg-config gtk+-2.0 --cflags --libs` */ #include string.h #include gtk/gtk.h static void reload(GtkWidget *tv) { static char text[20]; char *s = text; int i;

Re: Telling a widget not to be in the focus chain

2007-11-04 Thread Steffen Gutmann
--- [EMAIL PROTECTED] wrote: On 10/31/07, Steffen Gutmann [EMAIL PROTECTED] wrote: So, anybody has an idea what the correct way of leaving a widget out of the focus chain is? I use gtk_container_set_focus_chain() to set an exact list of widgets for a section of the focus chain. Thanks

Telling a widget not to be in the focus chain

2007-10-31 Thread Steffen Gutmann
Hi! I would like to tell a widget to not be part of Gtk's focus chain. I know there is gtk_container_set_focus_chain, however, I would like to keep Gtk's default focus chain logic and just would like to have one or two widgets not being part of it. The widget could be a GtkButton, GtkEntry,

Programming with GTK

2006-10-25 Thread Steffen Gutmann
Consider the following macros: #define WindowObject gtk_widget_new(GTK_TYPE_WINDOW #define VBoxObject gtk_widget_new(GTK_TYPE_VBOX #define HBoxObject gtk_widget_new(GTK_TYPE_HBOX #define LabelObject gtk_widget_new(GTK_TYPE_LABEL #define ButtonObject gtk_widget_new(GTK_TYPE_BUTTON ... // add one

Re: modality, hinting to the WM, and GtkWindowGroup

2006-05-04 Thread Steffen Gutmann
Hi,I haven't followed the full discussion on this thread nor have I viewed at any of the bugs mentioned. Thus, my comment might nor be fully qualified. But, I also would like to have a dialog being modal to some but not all windows. The use case is where like in Gimp there are several top level