Merge lp:~evfool/synaptic/lp1033517 into lp:synaptic
Proposed by
Robert Roth
Status: | Merged |
---|---|
Merged at revision: | 2120 |
Proposed branch: | lp:~evfool/synaptic/lp1033517 |
Merge into: | lp:synaptic |
Diff against target: |
66 lines (+7/-18) 2 files modified
gtk/gtkbuilder/dialog_change_version.ui (+1/-6) gtk/rgmainwindow.cc (+6/-12) |
To merge this branch: | bzr merge lp:~evfool/synaptic/lp1033517 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
synaptic-developers | Pending | ||
Review via email: mp+134046@code.launchpad.net |
Description of the change
Changed the deprecated GtkOptionMenu used on the force version dialog to a GtkComboBoxText (available in gtk since gtk 2.24) to fix bug #1033517.
To post a comment you must log in.
On Tue, Nov 13, 2012 at 08:30:35AM -0000, Robert Roth wrote: developers) /bugs.launchpad .net/ubuntu/ +source/ synaptic/ +bug/1033517 /code.launchpad .net/~evfool/ synaptic/ lp1033517/ +merge/ 134046
> Robert Roth has proposed merging lp:~evfool/synaptic/lp1033517 into lp:synaptic.
>
> Requested reviews:
> synaptic-developers (synaptic-
> Related bugs:
> Bug #1033517 in synaptic (Ubuntu): "Gtk-WARNING **: Cannot add an object of type GtkMenu to a container of type GtkOptionMenu"
> https:/
>
> For more details, see:
> https:/
>
> Changed the deprecated GtkOptionMenu used on the force version dialog to a GtkComboBoxText (available in gtk since gtk 2.24) to fix bug #1033517.
Thanks a lot for your patch! This looks good - it makes me wonder if
we should switch to the gtk3 branch entirely, what do you think? Have
you had a chance to play with it? There is some potential for
regression with that move of course, but it seems like its not worth
it as this needs to be done in the future anyway.
Cheers,
Michael
> -- /code.launchpad .net/~evfool/ synaptic/ lp1033517/ +merge/ 134046
> https:/
> You are subscribed to branch lp:synaptic.
> === modified file 'gtk/gtkbuilder /dialog_ change_ version. ui' dialog_ change_ version. ui 2012-02-17 07:17:41 +0000 dialog_ change_ version. ui 2012-11-13 08:29:23 +0000 GtkOptionMenu" id="optionmenu_ available_ versions" > GtkComboBoxText " id="combobox_ available_ versions" > >True</ property> focus"> True</property> >-1</property> >0</property> ow.cc' gtk_builder_ get_object gtk_builder_ get_object der(), available_ versions" )); available_ versions" )); leVersions( ); i].first. c_str() , i].second. c_str() ); item_new_ with_label( str); ersion( );
> --- gtk/gtkbuilder/
> +++ gtk/gtkbuilder/
> @@ -122,14 +122,9 @@
> </packing>
> </child>
> <child>
> - <object class="
> + <object class="
> <property name="visible"
> <property name="can_
> - <property name="history"
> - <child>
> - <object class="GtkMenu" id="menu1">
> - </object>
> - </child>
> </object>
> <packing>
> <property name="padding"
>
> === modified file 'gtk/rgmainwind
> --- gtk/rgmainwindow.cc 2012-11-12 22:05:33 +0000
> +++ gtk/rgmainwindow.cc 2012-11-13 08:29:23 +0000
> @@ -560,12 +560,9 @@
> g_free(str_name);
> g_free(str);
>
> - GtkWidget *optionMenu = GTK_WIDGET(
> + GtkWidget *comboBox = GTK_WIDGET(
> (dia.getGtkBuil
> - "optionmenu_
> -
> - GtkWidget *menu = gtk_menu_new();
> - GtkWidget *item;
> + "combobox_
>
> int canidateNr = 0;
> vector<pair<string, string> > versions = pkg->getAvailab
> @@ -573,23 +570,20 @@
> gchar *str = g_strdup_printf("%s (%s)",
> versions[
> versions[
> - item = gtk_menu_
> const char *verStr = pkg->availableV
> if(verStr && versions[i].first == string(verStr))
> - ...