After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621554 - On startup the palette's size and style are not initialized
On startup the palette's size and style are not initialized
Status: RESOLVED DUPLICATE of bug 536840
Product: glade
Classification: Applications
Component: user interface
3.7.x
Other All
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-14 14:26 UTC by Martin Schlemmer
Modified: 2010-12-31 17:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glade3-3.7.1-palette-init.patch (559 bytes, patch)
2010-06-14 14:26 UTC, Martin Schlemmer
none Details | Review
Glade3-Screenshots.jpg (109.86 KB, image/jpeg)
2010-06-14 20:05 UTC, Martin Schlemmer
  Details

Description Martin Schlemmer 2010-06-14 14:26:02 UTC
Created attachment 163595 [details] [review]
glade3-3.7.1-palette-init.patch

Patch attached.
Comment 1 Tristan Van Berkom 2010-06-14 19:01:11 UTC
I dont fully understand the meaning, does this patch change the behavior of 
Glade for you in any way ?

The reason I'm asking is because from what I see, the palette widgets
are created at _init() time and then the item appearance and such can
be setup later in construct time (this is done from the front-end when
loading that information from a session file).

Is there somehow a skew in the initial state of the palette for you ?
Comment 2 Martin Schlemmer 2010-06-14 20:05:02 UTC
Created attachment 163625 [details]
Glade3-Screenshots.jpg

I do not know if this is a win32 only issue, or if not built with gconf support (if gconf support saves palette preferences), but if you look at the screenshot, then:

1. Initially the size of the icons is the default of I'd guess the GtkPalette, and as preferences it seems is not loaded, use_small_icons is the default value set during palette init, which is false.  Icons however is somewhere between what Glade3 uses for small and large.

2. After I set it to use small icons, it actually updates the settings to small.

3. If I set it to not use small icons anymore, it uses the expected large icons.


I am not sure if size/style is set later on with the frontend when using Gnome/Gconf, but if not set later on they are uninitialized as far as valid settings for GladePalette - or at least in in the win32 case.  And even if set later on in the frontend, you would expect the init code to set it to sensible values (and in this case to corrispond with the initial properties of "item-appearance" and "use-small-item-icons").

Let me know if I was not clear on some point.
Comment 3 Tristan Van Berkom 2010-12-31 17:44:44 UTC

*** This bug has been marked as a duplicate of bug 536840 ***