[gthumb] rotate image: use always high quality, no need for an option
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] rotate image: use always high quality, no need for an option
- Date: Tue, 17 May 2011 22:10:22 +0000 (UTC)
commit e67e91b52342c5c4629256923b062bd0aab380d1
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun May 15 17:55:34 2011 +0200
rotate image: use always high quality, no need for an option
extensions/file_tools/data/ui/rotate-options.ui | 20 +-------------------
extensions/file_tools/gth-file-tool-rotate.c | 13 +------------
2 files changed, 2 insertions(+), 31 deletions(-)
---
diff --git a/extensions/file_tools/data/ui/rotate-options.ui b/extensions/file_tools/data/ui/rotate-options.ui
index feadb32..04679df 100644
--- a/extensions/file_tools/data/ui/rotate-options.ui
+++ b/extensions/file_tools/data/ui/rotate-options.ui
@@ -323,29 +323,11 @@
<object class="GtkTable" id="table2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="n_rows">3</property>
+ <property name="n_rows">2</property>
<property name="n_columns">2</property>
<property name="column_spacing">6</property>
<property name="row_spacing">6</property>
<child>
- <object class="GtkCheckButton" id="high_quality">
- <property name="label" translatable="yes">High _quality</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="use_underline">True</property>
- <property name="xalign">0</property>
- <property name="active">True</property>
- <property name="draw_indicator">True</property>
- </object>
- <packing>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- </packing>
- </child>
- <child>
<object class="GtkVBox" id="crop_grid_hbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
diff --git a/extensions/file_tools/gth-file-tool-rotate.c b/extensions/file_tools/gth-file-tool-rotate.c
index 43203e0..1483812 100644
--- a/extensions/file_tools/gth-file-tool-rotate.c
+++ b/extensions/file_tools/gth-file-tool-rotate.c
@@ -43,7 +43,6 @@ struct _GthFileToolRotatePrivate {
GtkBuilder *builder;
GtkWidget *options;
GtkAdjustment *rotation_angle_adj;
- GtkWidget *high_quality;
GtkWidget *background_colorbutton;
GtkWidget *background_transparent;
gboolean crop_enabled;
@@ -219,7 +218,6 @@ apply_cb (gpointer user_data)
GtkWidget *window;
GtkWidget *viewer_page;
double rotation_angle;
- gboolean high_quality;
GdkColor background_color;
guchar r0, g0, b0, a0;
@@ -232,7 +230,6 @@ apply_cb (gpointer user_data)
viewer_page = gth_browser_get_viewer_page (GTH_BROWSER (window));
rotation_angle = gtk_adjustment_get_value (self->priv->rotation_angle_adj);
- high_quality = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->priv->high_quality));
if (! gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (self->priv->background_transparent))) {
@@ -256,7 +253,7 @@ apply_cb (gpointer user_data)
/* FIXME
_g_object_unref (self->priv->rotate_pixbuf);
- self->priv->rotate_pixbuf = _gdk_pixbuf_rotate (self->priv->src_pixbuf, rotation_angle, high_quality, r0, g0, b0, a0);
+ self->priv->rotate_pixbuf = _gdk_pixbuf_rotate (self->priv->src_pixbuf, rotation_angle, TRUE, r0, g0, b0, a0);
gth_image_viewer_page_set_pixbuf (GTH_IMAGE_VIEWER_PAGE (viewer_page), self->priv->rotate_pixbuf, FALSE);
*/
@@ -496,14 +493,10 @@ gth_file_tool_rotate_get_options (GthFileTool *base)
self->priv->rotation_angle_adj = gimp_scale_entry_new (GET_WIDGET ("rotation_angle_hbox"),
GTK_LABEL (GET_WIDGET ("rotation_angle_label")),
0.0, -90.0, 90.0, 0.1, 1.0, 1);
-
- self->priv->high_quality = _gtk_builder_get_widget (self->priv->builder, "high_quality");
-
self->priv->background_colorbutton = _gtk_builder_get_widget (self->priv->builder, "background_colorbutton");
self->priv->background_transparent = _gtk_builder_get_widget (self->priv->builder, "background_transparent_checkbutton");
self->priv->has_alpha = gdk_pixbuf_get_n_channels (self->priv->src_pixbuf) == 4;
-
if (self->priv->has_alpha) {
gtk_color_button_set_use_alpha (GTK_COLOR_BUTTON (self->priv->background_colorbutton), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (self->priv->background_transparent), TRUE);
@@ -597,10 +590,6 @@ gth_file_tool_rotate_get_options (GthFileTool *base)
"value-changed",
G_CALLBACK (crop_parameters_changed_cb),
self);
- g_signal_connect (G_OBJECT (self->priv->high_quality),
- "toggled",
- G_CALLBACK (value_changed_cb),
- self);
g_signal_connect (G_OBJECT (self->priv->keep_aspect_ratio),
"toggled",
G_CALLBACK (crop_settings_changed_cb),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]