This is an automated email from the git hooks/post-receive script. andre pushed a commit to branch master in repository panel-plugins/xfce4-cpufreq-plugin.
commit 9959834f2f482a484fc436b46d319db6e9367e79 Author: Andre Miranda <andre...@gmail.com> Date: Fri Nov 4 22:43:30 2016 -0300 Replace GtkComboBox by GtkComboBoxText --- panel-plugin/xfce4-cpufreq-configure.c | 10 +++++----- panel-plugin/xfce4-cpufreq-overview.c | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/panel-plugin/xfce4-cpufreq-configure.c b/panel-plugin/xfce4-cpufreq-configure.c index e6f77c5..5bfbe28 100644 --- a/panel-plugin/xfce4-cpufreq-configure.c +++ b/panel-plugin/xfce4-cpufreq-configure.c @@ -294,19 +294,19 @@ cpufreq_configure (XfcePanelPlugin *plugin) gtk_label_set_xalign (GTK_LABEL (label), 0); gtk_size_group_add_widget (sg0, label); - combo = configure->combo_cpu = gtk_combo_box_new_text (); + combo = configure->combo_cpu = gtk_combo_box_text_new (); gtk_box_pack_start (GTK_BOX (hbox), combo, FALSE, TRUE, 0); gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo); for (i = 0; i < cpuFreq->cpus->len; ++i) { cpu_name = g_strdup_printf ("%d", i); - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), cpu_name); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), cpu_name); g_free (cpu_name); } - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("min")); - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("avg")); - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _("max")); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("min")); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("avg")); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), _("max")); gtk_combo_box_set_active (GTK_COMBO_BOX (combo), cpuFreq->options->show_cpu); g_signal_connect (G_OBJECT (combo), "changed", G_CALLBACK (combo_changed), configure); diff --git a/panel-plugin/xfce4-cpufreq-overview.c b/panel-plugin/xfce4-cpufreq-overview.c index 8fd59d4..df1d622 100644 --- a/panel-plugin/xfce4-cpufreq-overview.c +++ b/panel-plugin/xfce4-cpufreq-overview.c @@ -107,7 +107,7 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) if (cpu->available_freqs != NULL) /* Linux 2.6 with scaling support */ { - combo = gtk_combo_box_new_text (); + combo = gtk_combo_box_text_new (); gtk_size_group_add_widget (sg1, combo); gtk_box_pack_end (GTK_BOX (hbox), combo, TRUE, TRUE, 0); list = g_list_first (cpu->available_freqs); @@ -117,7 +117,7 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) text = cpufreq_get_human_readable_freq (GPOINTER_TO_INT (list->data)); if (GPOINTER_TO_INT (list->data) == cpu->cur_freq) i = j; - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), text); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), text); g_free (text); list = g_list_next (list); j++; @@ -126,18 +126,18 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) } else if (cpu->cur_freq && cpu->min_freq && cpu->max_freq) /* Linux 2.4 with scaling support */ { - combo = gtk_combo_box_new_text (); + combo = gtk_combo_box_text_new (); gtk_size_group_add_widget (sg1, combo); gtk_box_pack_end (GTK_BOX (hbox), combo, TRUE, TRUE, 0); text = cpufreq_get_human_readable_freq (cpu->cur_freq); - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), text); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), text); g_free (text); text = cpufreq_get_human_readable_freq (cpu->max_freq); - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), text); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), text); g_free (text); text = cpufreq_get_human_readable_freq (cpu->min_freq); - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), text); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), text); g_free (text); gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0); @@ -168,14 +168,14 @@ cpufreq_overview_add (CpuInfo *cpu, guint cpu_number, GtkWidget *dialog_hbox) gtk_label_set_xalign (GTK_LABEL (label), 0); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0); - combo = gtk_combo_box_new_text (); + combo = gtk_combo_box_text_new (); gtk_size_group_add_widget (sg1, combo); gtk_box_pack_end (GTK_BOX (hbox), combo, TRUE, TRUE, 0); list = g_list_first (cpu->available_governors); j = 0; while (list) { - gtk_combo_box_append_text (GTK_COMBO_BOX (combo), list->data); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), list->data); if (g_ascii_strcasecmp (list->data, cpu->cur_governor) == 0) i = j; list = g_list_next (list); -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits