[gnome-utils] Use GtkComboBoxText. Patch by Matthias Clasen
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-utils] Use GtkComboBoxText. Patch by Matthias Clasen
- Date: Wed, 20 Oct 2010 17:19:25 +0000 (UTC)
commit 1dd46b5dd6a2ea18c7e2feb2797a98a6c93497d2
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Oct 20 19:00:43 2010 +0200
Use GtkComboBoxText. Patch by Matthias Clasen
baobab/src/baobab-chart.c | 8 ++++----
baobab/src/baobab.c | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/baobab/src/baobab-chart.c b/baobab/src/baobab-chart.c
index 76dad44..53569ce 100644
--- a/baobab/src/baobab-chart.c
+++ b/baobab/src/baobab-chart.c
@@ -1730,9 +1730,9 @@ baobab_chart_save_snapshot (GtkWidget *chart)
FALSE, FALSE, 0);
opt_menu = gtk_combo_box_new_text ();
- gtk_combo_box_append_text (GTK_COMBO_BOX (opt_menu), "png");
- gtk_combo_box_append_text (GTK_COMBO_BOX (opt_menu), "jpeg");
- gtk_combo_box_append_text (GTK_COMBO_BOX (opt_menu), "bmp");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (opt_menu), "png");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (opt_menu), "jpeg");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (opt_menu), "bmp");
gtk_combo_box_set_active (GTK_COMBO_BOX (opt_menu), 0);
gtk_box_pack_start (GTK_BOX (hbox), opt_menu, TRUE, TRUE, 0);
@@ -1742,7 +1742,7 @@ baobab_chart_save_snapshot (GtkWidget *chart)
if (gtk_dialog_run (GTK_DIALOG (fs_dlg)) == GTK_RESPONSE_ACCEPT)
{
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (fs_dlg));
- sel_type = gtk_combo_box_get_active_text (GTK_COMBO_BOX (opt_menu));
+ sel_type = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (opt_menu));
if (! g_str_has_suffix (filename, sel_type))
{
gchar *tmp;
diff --git a/baobab/src/baobab.c b/baobab/src/baobab.c
index eca4bb5..b106a49 100644
--- a/baobab/src/baobab.c
+++ b/baobab/src/baobab.c
@@ -1104,11 +1104,11 @@ initialize_charts (void)
baobab.chart_frame, TRUE, TRUE);
gtk_paned_set_position (GTK_PANED (hpaned_main), 480);
- baobab.chart_type_combo = gtk_combo_box_new_text ();
- gtk_combo_box_append_text (GTK_COMBO_BOX (baobab.chart_type_combo),
- _("View as Rings Chart"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (baobab.chart_type_combo),
- _("View as Treemap Chart"));
+ baobab.chart_type_combo = gtk_combo_box_text_new ();
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (baobab.chart_type_combo),
+ _("View as Rings Chart"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (baobab.chart_type_combo),
+ _("View as Treemap Chart"));
gtk_widget_show (baobab.chart_type_combo);
g_signal_connect (baobab.chart_type_combo,
"changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]