On 09/28/2012 02:16 AM, Steffen Gutmann
wrote:
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 here: https://bugzilla.gnome.org/show_bug.cgi?id=670068 Is gtk_widget_set_size_request broken? Or how is an application supposed to set (or override if the app knows better) the min size? gtk_widget_set_size_request() 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 say: "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 larger than
it normally would be."In other words, as Cosimo already mentioned in the report, a widget can never be smaller than the minimum size reported by the implementation. He also mentioned that you can configure that particular widget to actually be smaller. Two other options are: o If you cant display the whole widget, put it in a scrolled window o Use clutter-gtk library to put the GtkWidget one a stage and then scale it and transform it to the desired size ;-) Cheers, -Tristan <disclaimer>This email may reach you with EVIL HTML formatting which of course has no place in emails... for some config reasons TB needed to be used instead of Evo... and I still have to find the switch to NUKE EVIL HTML from emails</disclaimer> Steffen _______________________________________________ gtk-devel-list mailing list gtk-devel-list gnome org https://mail.gnome.org/mailman/listinfo/gtk-devel-list |