summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-02-27 05:24:24 +0100
committerJavier Jardón <jjardon@gnome.org>2010-03-01 05:32:51 +0100
commita27d5a2c9eba7af5b056de32ff9b2b4dd1eb97e1 (patch)
tree56f207c8731b36bdad916070df80fe2cea151039 /gtk/gtkprintunixdialog.c
parent4f78f70b15f861cca115f578b0f3f4ad3ad087e7 (diff)
downloadgtk+-a27d5a2c9eba7af5b056de32ff9b2b4dd1eb97e1.tar.gz
Deprecate widget flag: GTK_WIDGET_IS_SENSITIVE
Use gtk_widget_is_sensitive() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r--gtk/gtkprintunixdialog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index bee3cdfe2d..bee86318ef 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -2434,7 +2434,7 @@ dialog_set_print_pages (GtkPrintUnixDialog *dialog,
static gdouble
dialog_get_scale (GtkPrintUnixDialog *dialog)
{
- if (GTK_WIDGET_IS_SENSITIVE (dialog->priv->scale_spin))
+ if (gtk_widget_is_sensitive (dialog->priv->scale_spin))
return gtk_spin_button_get_value (GTK_SPIN_BUTTON (dialog->priv->scale_spin));
else
return 100.0;
@@ -2450,7 +2450,7 @@ dialog_set_scale (GtkPrintUnixDialog *dialog,
static GtkPageSet
dialog_get_page_set (GtkPrintUnixDialog *dialog)
{
- if (GTK_WIDGET_IS_SENSITIVE (dialog->priv->page_set_combo))
+ if (gtk_widget_is_sensitive (dialog->priv->page_set_combo))
return (GtkPageSet)gtk_combo_box_get_active (GTK_COMBO_BOX (dialog->priv->page_set_combo));
else
return GTK_PAGE_SET_ALL;
@@ -2467,7 +2467,7 @@ dialog_set_page_set (GtkPrintUnixDialog *dialog,
static gint
dialog_get_n_copies (GtkPrintUnixDialog *dialog)
{
- if (GTK_WIDGET_IS_SENSITIVE (dialog->priv->copies_spin))
+ if (gtk_widget_is_sensitive (dialog->priv->copies_spin))
return gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (dialog->priv->copies_spin));
return 1;
}
@@ -2483,7 +2483,7 @@ dialog_set_n_copies (GtkPrintUnixDialog *dialog,
static gboolean
dialog_get_collate (GtkPrintUnixDialog *dialog)
{
- if (GTK_WIDGET_IS_SENSITIVE (dialog->priv->collate_check))
+ if (gtk_widget_is_sensitive (dialog->priv->collate_check))
return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->priv->collate_check));
return FALSE;
}
@@ -2499,7 +2499,7 @@ dialog_set_collate (GtkPrintUnixDialog *dialog,
static gboolean
dialog_get_reverse (GtkPrintUnixDialog *dialog)
{
- if (GTK_WIDGET_IS_SENSITIVE (dialog->priv->reverse_check))
+ if (gtk_widget_is_sensitive (dialog->priv->reverse_check))
return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->priv->reverse_check));
return FALSE;
}