GNOME Bugzilla – Bug 549478
combobox "Active Item" ineffective
Last modified: 2018-03-26 15:06:13 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....
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.
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);
I've change my application to use libglade; the combobox item is not being selected; instead the box comes up blank.
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.
I am experiencing this bug. Should it be marked as confirmed?
(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...
-- 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.