aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/color_edit_dlg.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-11-10 12:05:25 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-11-10 12:05:25 +0000
commit0dbfde8b6de9977bda3094940dc8b11302f75a47 (patch)
treef3febdc4d98050c226ef2a682e8534319f36d1fb /gtk/color_edit_dlg.c
parent88afdd95256a3b0a6cf755475e8ac32c8a0f87a8 (diff)
Removed some unused variables and unused assignments.
svn path=/trunk/; revision=30918
Diffstat (limited to 'gtk/color_edit_dlg.c')
-rw-r--r--gtk/color_edit_dlg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/color_edit_dlg.c b/gtk/color_edit_dlg.c
index 009a72ce40..3ebf512e13 100644
--- a/gtk/color_edit_dlg.c
+++ b/gtk/color_edit_dlg.c
@@ -532,7 +532,7 @@ color_sel_ok_cb (GtkButton *button _U_,
GdkColor new_color; /* Color from color selection dialog */
GtkWidget *color_dialog;
GtkWidget *parent;
- GtkWidget *color_selection_fg, *color_selection_bg;
+ GtkWidget *color_selection_bg;
gboolean is_bg;
color_dialog = (GtkWidget *)user_data;
@@ -550,7 +550,6 @@ color_sel_ok_cb (GtkButton *button _U_,
/* Find that dialog box's foreground and background color selection
boxes, if any. */
- color_selection_fg = g_object_get_data(G_OBJECT(parent), COLOR_SELECTION_FG);
color_selection_bg = g_object_get_data(G_OBJECT(parent), COLOR_SELECTION_BG);
is_bg = (color_dialog == color_selection_bg);
@@ -559,7 +558,7 @@ color_sel_ok_cb (GtkButton *button _U_,
/* now apply the change to the fore/background */
if (is_bg)
gtk_widget_modify_base(filt_name_entry, GTK_STATE_NORMAL, &new_color);
- else
+ else
gtk_widget_modify_text(filt_name_entry, GTK_STATE_NORMAL, &new_color);
}
}