Commit 2e8599f3 authored by Brian Pepple's avatar Brian Pepple

Replace depreciated gtkcombo call with gtkcomboboxtext call

parent 6bd6cb23
......@@ -50,7 +50,7 @@ struct _NautilusImageResizerPrivate {
GtkDialog *resize_dialog;
GtkRadioButton *default_size_radiobutton;
GtkComboBox *size_combobox;
GtkComboBoxText *size_combobox;
GtkRadioButton *custom_pct_radiobutton;
GtkSpinButton *pct_spinbutton;
GtkRadioButton *custom_size_radiobutton;
......@@ -319,7 +319,7 @@ nautilus_image_resizer_response_cb (GtkDialog *dialog, gint response_id, gpointe
priv->suffix = g_strdup (gtk_entry_get_text (priv->name_entry));
}
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->default_size_radiobutton))) {
priv->size = gtk_combo_box_get_active_text (GTK_COMBO_BOX (priv->size_combobox));
priv->size = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (priv->size_combobox));
} else if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->custom_pct_radiobutton))) {
priv->size = g_strdup_printf ("%d%%", (int) gtk_spin_button_get_value (priv->pct_spinbutton));
} else {
......@@ -360,7 +360,7 @@ nautilus_image_resizer_init(NautilusImageResizer *resizer)
priv->resize_dialog = GTK_DIALOG (gtk_builder_get_object (ui, "resize_dialog"));
priv->default_size_radiobutton =
GTK_RADIO_BUTTON (gtk_builder_get_object (ui, "default_size_radiobutton"));
priv->size_combobox = GTK_COMBO_BOX (gtk_builder_get_object (ui, "size_combobox"));
priv->size_combobox = GTK_COMBO_BOX_TEXT (gtk_builder_get_object (ui, "comboboxtext_size"));
priv->custom_pct_radiobutton =
GTK_RADIO_BUTTON (gtk_builder_get_object (ui, "custom_pct_radiobutton"));
priv->pct_spinbutton = GTK_SPIN_BUTTON (gtk_builder_get_object (ui, "pct_spinbutton"));
......@@ -373,7 +373,7 @@ nautilus_image_resizer_init(NautilusImageResizer *resizer)
priv->inplace_radiobutton = GTK_RADIO_BUTTON (gtk_builder_get_object (ui, "inplace_radiobutton"));
/* Set default item in combo box */
gtk_combo_box_set_active (priv->size_combobox, 4); /* 1024x768 */
/* gtk_combo_box_set_active (priv->size_combobox, 4); 1024x768 */
/* Connect signal */
g_signal_connect (G_OBJECT (priv->resize_dialog), "response",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment