[gimp/gtk3-port: 40/226] app: port tools to GTK+ 3.0 (trivial changes only)
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 40/226] app: port tools to GTK+ 3.0 (trivial changes only)
- Date: Wed, 29 May 2013 07:20:11 +0000 (UTC)
commit c11169080b17d4498a9b91f2cf44de6409835c89
Author: Michael Natterer <mitch gimp org>
Date: Tue Oct 19 13:01:44 2010 +0200
app: port tools to GTK+ 3.0 (trivial changes only)
app/tools/gimplevelstool.c | 15 +++++++--------
app/tools/gimprotatetool.c | 4 ++--
app/tools/gimpsheartool.c | 4 ++--
app/tools/gimptexttool-editor.c | 7 ++++---
4 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/app/tools/gimplevelstool.c b/app/tools/gimplevelstool.c
index 8f4cdaa..54a2840 100644
--- a/app/tools/gimplevelstool.c
+++ b/app/tools/gimplevelstool.c
@@ -354,7 +354,7 @@ gimp_levels_tool_dialog (GimpImageMapTool *image_map_tool)
GtkWidget *button;
GtkWidget *spinbutton;
GtkWidget *bar;
- GtkObject *data;
+ GtkAdjustment *data;
gint border;
g_signal_connect (image_map_tool->settings_box, "file-dialog-setup",
@@ -499,7 +499,7 @@ gimp_levels_tool_dialog (GimpImageMapTool *image_map_tool)
gtk_widget_show (spinbutton);
tool->low_input_spinbutton = spinbutton;
- tool->low_input = GTK_ADJUSTMENT (data);
+ tool->low_input = data;
g_signal_connect (tool->low_input, "value-changed",
G_CALLBACK (levels_low_input_changed),
tool);
@@ -515,13 +515,12 @@ gimp_levels_tool_dialog (GimpImageMapTool *image_map_tool)
gimp_help_set_help_data (spinbutton, _("Gamma"), NULL);
gtk_widget_show (spinbutton);
- tool->gamma = GTK_ADJUSTMENT (data);
+ tool->gamma = data;
g_signal_connect (tool->gamma, "value-changed",
G_CALLBACK (levels_gamma_changed),
tool);
- tool->gamma_linear = GTK_ADJUSTMENT (gtk_adjustment_new (127, 0, 255,
- 0.1, 1.0, 0.0));
+ tool->gamma_linear = gtk_adjustment_new (127, 0, 255, 0.1, 1.0, 0.0);
g_signal_connect (tool->gamma_linear, "value-changed",
G_CALLBACK (levels_linear_gamma_changed),
tool);
@@ -546,7 +545,7 @@ gimp_levels_tool_dialog (GimpImageMapTool *image_map_tool)
gtk_widget_show (spinbutton);
tool->high_input_spinbutton = spinbutton;
- tool->high_input = GTK_ADJUSTMENT (data);
+ tool->high_input = data;
g_signal_connect (tool->high_input, "value-changed",
G_CALLBACK (levels_high_input_changed),
tool);
@@ -608,7 +607,7 @@ gimp_levels_tool_dialog (GimpImageMapTool *image_map_tool)
gtk_widget_show (spinbutton);
tool->low_output_spinbutton = spinbutton;
- tool->low_output = GTK_ADJUSTMENT (data);
+ tool->low_output = data;
g_signal_connect (tool->low_output, "value-changed",
G_CALLBACK (levels_low_output_changed),
tool);
@@ -624,7 +623,7 @@ gimp_levels_tool_dialog (GimpImageMapTool *image_map_tool)
gtk_widget_show (spinbutton);
tool->high_output_spinbutton = spinbutton;
- tool->high_output = GTK_ADJUSTMENT (data);
+ tool->high_output = data;
g_signal_connect (tool->high_output, "value-changed",
G_CALLBACK (levels_high_output_changed),
tool);
diff --git a/app/tools/gimprotatetool.c b/app/tools/gimprotatetool.c
index 36d6c73..05ef0a0 100644
--- a/app/tools/gimprotatetool.c
+++ b/app/tools/gimprotatetool.c
@@ -173,7 +173,7 @@ gimp_rotate_tool_dialog (GimpTransformTool *tr_tool)
GtkWidget *table;
GtkWidget *button;
GtkWidget *scale;
- GtkObject *adj;
+ GtkAdjustment *adj;
table = gtk_table_new (4, 2, FALSE);
gtk_container_set_border_width (GTK_CONTAINER (table), 6);
@@ -184,7 +184,7 @@ gimp_rotate_tool_dialog (GimpTransformTool *tr_tool)
table, FALSE, FALSE, 0);
gtk_widget_show (table);
- button = gimp_spin_button_new ((GtkObject **) &rotate->angle_adj,
+ button = gimp_spin_button_new (&rotate->angle_adj,
0, -180, 180, 0.1, 15, 0, 2, 2);
gtk_spin_button_set_wrap (GTK_SPIN_BUTTON (button), TRUE);
gtk_entry_set_width_chars (GTK_ENTRY (button), SB_WIDTH);
diff --git a/app/tools/gimpsheartool.c b/app/tools/gimpsheartool.c
index 2d9aa88..2581bb6 100644
--- a/app/tools/gimpsheartool.c
+++ b/app/tools/gimpsheartool.c
@@ -130,7 +130,7 @@ gimp_shear_tool_dialog (GimpTransformTool *tr_tool)
table, FALSE, FALSE, 0);
gtk_widget_show (table);
- button = gimp_spin_button_new ((GtkObject **) &shear->x_adj,
+ button = gimp_spin_button_new (&shear->x_adj,
0, -65536, 65536, 1, 15, 0, 1, 0);
gtk_entry_set_width_chars (GTK_ENTRY (button), SB_WIDTH);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0, _("Shear magnitude _X:"),
@@ -140,7 +140,7 @@ gimp_shear_tool_dialog (GimpTransformTool *tr_tool)
G_CALLBACK (shear_x_mag_changed),
tr_tool);
- button = gimp_spin_button_new ((GtkObject **) &shear->y_adj,
+ button = gimp_spin_button_new (&shear->y_adj,
0, -65536, 65536, 1, 15, 0, 1, 0);
gtk_entry_set_width_chars (GTK_ENTRY (button), SB_WIDTH);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1, _("Shear magnitude _Y:"),
diff --git a/app/tools/gimptexttool-editor.c b/app/tools/gimptexttool-editor.c
index c4e950e..3777ec4 100644
--- a/app/tools/gimptexttool-editor.c
+++ b/app/tools/gimptexttool-editor.c
@@ -206,7 +206,8 @@ gimp_text_tool_editor_position (GimpTextTool *text_tool)
GtkRequisition requisition;
gint x, y;
- gtk_widget_size_request (text_tool->style_overlay, &requisition);
+ gtk_widget_get_preferred_size (text_tool->style_overlay,
+ &requisition, NULL);
g_object_get (text_tool,
"x1", &x,
@@ -451,7 +452,7 @@ gimp_text_tool_editor_key_press (GimpTextTool *text_tool,
gimp_text_tool_ensure_proxy (text_tool);
- if (gtk_bindings_activate_event (GTK_OBJECT (text_tool->proxy_text_view),
+ if (gtk_bindings_activate_event (G_OBJECT (text_tool->proxy_text_view),
kevent))
{
GIMP_LOG (TEXT_EDITING, "binding handled event");
@@ -508,7 +509,7 @@ gimp_text_tool_editor_key_release (GimpTextTool *text_tool,
gimp_text_tool_ensure_proxy (text_tool);
- if (gtk_bindings_activate_event (GTK_OBJECT (text_tool->proxy_text_view),
+ if (gtk_bindings_activate_event (G_OBJECT (text_tool->proxy_text_view),
kevent))
{
GIMP_LOG (TEXT_EDITING, "binding handled event");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]