[Xfce4-commits] [panel-plugins/xfce4-wavelan-plugin] 01/01: Use GtkComboBoxText instead of GtkCombo

noreply at xfce.org noreply at xfce.org
Mon Aug 18 22:25:24 CEST 2014


This is an automated email from the git hooks/post-receive script.

landry pushed a commit to branch master
in repository panel-plugins/xfce4-wavelan-plugin.

commit d47a9ee1f68f81f156f11b685e703edb88067cd6
Author: Justin Gassner <justin.gassner at web.de>
Date:   Wed Jul 30 20:57:13 2014 +0200

    Use GtkComboBoxText instead of GtkCombo
    
    GtkCombo has been deprecated since version 2.4
---
 panel-plugin/wavelan.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/wavelan.c b/panel-plugin/wavelan.c
index d916f8a..1a4e3d6 100644
--- a/panel-plugin/wavelan.c
+++ b/panel-plugin/wavelan.c
@@ -526,12 +526,13 @@ wavelan_create_options (XfcePanelPlugin *plugin, t_wavelan *wavelan)
   gtk_widget_show(label);
 
   interfaces = wavelan_query_interfaces ();
-  combo = gtk_combo_new ();
-  gtk_combo_set_popdown_strings (GTK_COMBO (combo), interfaces);
+  combo = gtk_combo_box_text_new_with_entry ();
+  for (lp = interfaces; lp != NULL; lp = lp->next)
+    gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), lp->data);
   gtk_widget_show (combo);
   gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 1);
 
-  interface = GTK_COMBO (combo)->entry;
+  interface = gtk_bin_get_child (GTK_BIN (combo));
   if (wavelan->interface != NULL)
     gtk_entry_set_text(GTK_ENTRY(interface), wavelan->interface);
   g_signal_connect(interface, "changed", G_CALLBACK(wavelan_interface_changed),

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list