[libgda/gtk3] Fixes bug #632650, thanks to Matthias Clasen
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/gtk3] Fixes bug #632650, thanks to Matthias Clasen
- Date: Wed, 20 Oct 2010 20:50:52 +0000 (UTC)
commit 6b1169abeef4fc002eadbe775de110b675083d8f
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Oct 20 22:50:08 2010 +0200
Fixes bug #632650, thanks to Matthias Clasen
applied patch with adaptations
libgda-ui/data-entries/plugins/common-pict.c | 6 +++---
libgda-ui/gdaui-raw-grid.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libgda-ui/data-entries/plugins/common-pict.c b/libgda-ui/data-entries/plugins/common-pict.c
index 23cd2bd..178a4ad 100644
--- a/libgda-ui/data-entries/plugins/common-pict.c
+++ b/libgda-ui/data-entries/plugins/common-pict.c
@@ -426,7 +426,7 @@ add_if_writable (GdkPixbufFormat *data, PictFormat *format)
str= g_strdup_printf ("%s (%s)", gdk_pixbuf_format_get_name (data),
gdk_pixbuf_format_get_description (data));
- gtk_combo_box_append_text (format->combo, str);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (format->combo), str);
g_free (str);
format->formats = g_slist_append (format->formats, g_strdup (gdk_pixbuf_format_get_name (data)));
}
@@ -447,7 +447,7 @@ file_save_cb (GtkWidget *button, PictMenuData *menudata)
label = gtk_label_new (_("Format image as:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
- combo = gtk_combo_box_new_text ();
+ combo = gtk_combo_box_text_new ();
gtk_box_pack_start (GTK_BOX (hbox), combo, TRUE, TRUE, 0);
gtk_widget_show_all (hbox);
@@ -457,7 +457,7 @@ file_save_cb (GtkWidget *button, PictMenuData *menudata)
g_slist_foreach (formats, (GFunc) add_if_writable, &pictformat);
g_slist_free (formats);
- gtk_combo_box_prepend_text (GTK_COMBO_BOX (combo), _("Current format"));
+ gtk_combo_box_text_prepend_text (GTK_COMBO_BOX_TEXT (combo), _("Current format"));
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0);
dlg = gtk_file_chooser_dialog_new (_("Select a file to save the image to"),
diff --git a/libgda-ui/gdaui-raw-grid.c b/libgda-ui/gdaui-raw-grid.c
index 0e945b7..7af9f7c 100644
--- a/libgda-ui/gdaui-raw-grid.c
+++ b/libgda-ui/gdaui-raw-grid.c
@@ -1904,14 +1904,14 @@ menu_save_as_cb (G_GNUC_UNUSED GtkWidget *widget, GdauiRawGrid *grid)
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, 0, 0, 0);
gtk_widget_show (label);
- types = gtk_combo_box_new_text ();
+ types = gtk_combo_box_text_new ();
gtk_table_attach_defaults (GTK_TABLE (table), types, 1, 2, 0, 1);
gtk_widget_show (label);
g_object_set_data (G_OBJECT (dialog), "types", types);
- gtk_combo_box_append_text (GTK_COMBO_BOX (types), _("Tab-delimited"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (types), _("Comma-delimited"));
- gtk_combo_box_append_text (GTK_COMBO_BOX (types), _("XML"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (types), _("Tab-delimited"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (types), _("Comma-delimited"));
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (types), _("XML"));
gtk_combo_box_set_active (GTK_COMBO_BOX (types), grid->priv->export_type);
g_signal_connect (types, "changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]