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 549478 - combobox "Active Item" ineffective
combobox "Active Item" ineffective
Status: RESOLVED OBSOLETE
Product: glade
Classification: Applications
Component: general
3.4.x
Other All
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on: 700629
Blocks:
 
 
Reported: 2008-08-26 17:59 UTC by Roland Roberts
Modified: 2018-03-26 15:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Roland Roberts 2008-08-26 17:59:31 UTC
Please describe the problem:
I set the "Active Item" in order to have a particular combobox item preselected.  In my case, the list of values looks like this:

25
50
100
200
400
800
1600
3200

And "Active Item" was set to 5.  I thought that should select "800" for the value.  But even if I'm counting wrong (zero-based?  one-based?) it should not have come up empty/unselected.

Steps to reproduce:
1. Create a combobox in glade-3
2. Enter a set of values
3. Set "Active Item" to one of the items.
4. Build and launch your application


Actual results:
The combobox value is unset

Expected results:
The combobox value to be set to the selected "Active Item"

Does this happen every time?
Yes

Other information:
I also note that it is possible to set "Active Item" to "impossible" values, e.g., with no items in the list, I can set it to, say 150.  Perhaps it is not connected at all....
Comment 1 Tristan Van Berkom 2008-08-26 18:08:10 UTC
 a.) are you populating your "items" property via glade ?
 b.) are you using libglade ? (i.e. not experimental builder files ?)

libglade should set this up properly last time I checked, so long
as libglade also sets up the items, please let me know - could be
possible that the order in which properties are saved effects this
behaviour.
Comment 2 Roland Roberts 2008-08-26 18:56:21 UTC
a) Yes, I am populating the items via glade
b) No, I'm not using libglade.  Uhm, I thought that was considered deprecated.

    builder = gtk_builder_new();
    gtk_builder_add_from_file(builder, "astrodslr.xml", NULL);
    window = GTK_WIDGET(gtk_builder_get_object (builder, "astrodslr_main_window"));
    gtk_builder_connect_signals(builder, NULL);

Comment 3 Roland Roberts 2008-08-26 20:50:03 UTC
I've change my application to use libglade; the combobox item is not being selected; instead the box comes up blank.
Comment 4 Tristan Van Berkom 2008-08-27 15:55:15 UTC
Ok just to make sure this is clear, libglade is in the process of
being deprecated, dont know myself if thats official yet but thats
the plan yes.

Builder is also in stable gtk, its only the GtkBuilder support in
the Glade tool that is still in experimental stages.

Comment 5 Marco Scannadinari 2013-02-16 17:21:08 UTC
I am experiencing this bug. Should it be marked as confirmed?
Comment 6 Tristan Van Berkom 2013-05-20 11:05:24 UTC
(In reply to comment #5)
> I am experiencing this bug. Should it be marked as confirmed?

Nah, unconfirmed, new, verified... is all the same to me.

A bug is either closed or valid.

Note that I currently cant reproduce / verify this because of bug 700629

Let's depend on bug 700629 and take a look at this again when the
other GTK+ bug is fixed...
Comment 7 GNOME Infrastructure Team 2018-03-26 15:06:13 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/30.