frogstarr78 / gtkdialog

Automatically exported from code.google.com/p/gtkdialog
GNU General Public License v2.0
0 stars 0 forks source link

Setting properties through on_any_widget_realized is flawed #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Setting properties through on_any_widget_realized is flawed.

The menuitems I've discovered aren't realized until viewed, and this also 
appears to apply to the notebook widget and everything within it. That results 
in tag attributes that are GTK+ widget properties hanging around waiting to be 
set and an action function could have modified the widget in that time!

I found this message within the ChangeLog:

* Wed Nov 29 2006 Laszlo Pere <pipas@linux.pte.hu> 0.7.11
- The widget properties are set only when the widget is realized. This
  modification has been made because some properties can be set only if there
  is a parent window. (See 16.02.widget_properties_default for example)

Original issue reported on code.google.com by thunor...@hotmail.com on 31 Jul 2011 at 8:59

GoogleCodeExporter commented 8 years ago
This is also causing problems with spacing and border-width properties in 
notebook pages that haven't been viewed yet.

Setting all properties through on_any_widget_realized is wrong. Some of them 
should be intercepted and set before GTK+ gets hold of them.

Original comment by thunor...@hotmail.com on 8 Oct 2011 at 11:54

GoogleCodeExporter commented 8 years ago
Ok, that explains why one of my tabs suddenly resizing the window. This is 
minor cosmetic I guess.
How about making it into a feature - ability to reparent the widget ?, if this 
is possible at all.

Original comment by afi...@gmail.com on 12 Nov 2013 at 5:44