[gimp/gtk3-port: 227/336] plug-ins: s/GtkObject/GtkAdjustment/ in file-wepb
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 227/336] plug-ins: s/GtkObject/GtkAdjustment/ in file-wepb
- Date: Fri, 4 May 2018 10:07:27 +0000 (UTC)
commit d72de3a3ecf6f328909578d3d8bbce1e4cec63b4
Author: Michael Natterer <mitch gimp org>
Date: Wed Sep 7 09:59:46 2016 +0200
plug-ins: s/GtkObject/GtkAdjustment/ in file-wepb
plug-ins/file-webp/file-webp-dialog.c | 37 ++++++++++++++++-----------------
1 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/plug-ins/file-webp/file-webp-dialog.c b/plug-ins/file-webp/file-webp-dialog.c
index d22b3ed..6b35920 100644
--- a/plug-ins/file-webp/file-webp-dialog.c
+++ b/plug-ins/file-webp/file-webp-dialog.c
@@ -46,7 +46,7 @@ static void
save_dialog_toggle_scale (GtkWidget *widget,
gpointer data)
{
- gimp_scale_entry_set_sensitive (GTK_OBJECT (data),
+ gimp_scale_entry_set_sensitive (data,
! gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)));
}
@@ -84,22 +84,22 @@ save_dialog (WebPSaveParams *params,
gint32 image_ID,
gint32 n_layers)
{
- GtkWidget *dialog;
- GtkWidget *vbox;
- GtkWidget *table;
- GtkWidget *expander;
- GtkWidget *frame;
- GtkWidget *vbox2;
- GtkWidget *label;
- GtkWidget *toggle;
- GtkWidget *toggle_minsize;
- GtkWidget *combo;
- GtkObject *quality_scale;
- GtkObject *alpha_quality_scale;
- gboolean animation_supported = FALSE;
- gboolean run;
- gchar *text;
- gint row = 0;
+ GtkWidget *dialog;
+ GtkWidget *vbox;
+ GtkWidget *table;
+ GtkWidget *expander;
+ GtkWidget *frame;
+ GtkWidget *vbox2;
+ GtkWidget *label;
+ GtkWidget *toggle;
+ GtkWidget *toggle_minsize;
+ GtkWidget *combo;
+ GtkAdjustment *quality_scale;
+ GtkAdjustment *alpha_quality_scale;
+ gboolean animation_supported = FALSE;
+ gboolean run;
+ gchar *text;
+ gint row = 0;
animation_supported = n_layers > 1;
@@ -334,8 +334,7 @@ save_dialog (WebPSaveParams *params,
gtk_widget_show (label);
/* default delay */
- adj = (GtkAdjustment *) gtk_adjustment_new (params->delay,
- 1, 10000, 1, 10, 0);
+ adj = gtk_adjustment_new (params->delay, 1, 10000, 1, 10, 0);
delay = gtk_spin_button_new (adj, 1, 0);
gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (delay), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), delay, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]