summaryrefslogtreecommitdiff
path: root/libmate-desktop
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-12-14 11:43:24 +0300
committerinfirit <[email protected]>2014-12-23 13:50:28 +0100
commit3036d5386cbaf1b76eb613d8317dd3cc7e2a2099 (patch)
tree8b74a0471d7ed96f8e228ebed4b81b8079c5d950 /libmate-desktop
parente0a8d79fff5b79e836468e29fae51ef49b8fd44d (diff)
downloadmate-desktop-3036d5386cbaf1b76eb613d8317dd3cc7e2a2099.tar.bz2
mate-desktop-3036d5386cbaf1b76eb613d8317dd3cc7e2a2099.tar.xz
removed some unused code
Diffstat (limited to 'libmate-desktop')
-rw-r--r--libmate-desktop/mate-colorsel.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/libmate-desktop/mate-colorsel.c b/libmate-desktop/mate-colorsel.c
index 5c12799..a5c168d 100644
--- a/libmate-desktop/mate-colorsel.c
+++ b/libmate-desktop/mate-colorsel.c
@@ -1641,26 +1641,21 @@ palette_popup (GtkWidget *widget,
static GtkWidget*
palette_new (MateColorSelection *colorsel)
{
- GtkWidget *retval;
- ColorSelectionPrivate *priv;
-
static const GtkTargetEntry targets[] = {
{ "application/x-color", 0 }
};
- priv = colorsel->private_data;
-
- retval = gtk_drawing_area_new ();
+ GtkWidget *retval = gtk_drawing_area_new ();
gtk_widget_set_can_focus (retval, TRUE);
-
+
g_object_set_data (G_OBJECT (retval), "color_set", GINT_TO_POINTER (0));
gtk_widget_set_events (retval, GDK_BUTTON_PRESS_MASK
| GDK_BUTTON_RELEASE_MASK
| GDK_EXPOSURE_MASK
| GDK_ENTER_NOTIFY_MASK
| GDK_LEAVE_NOTIFY_MASK);
-
+
#if GTK_CHECK_VERSION (3, 0, 0)
g_signal_connect (retval, "draw",
G_CALLBACK (palette_draw), colorsel);
@@ -1680,14 +1675,14 @@ palette_new (MateColorSelection *colorsel)
G_CALLBACK (palette_activate), colorsel);
g_signal_connect (retval, "popup-menu",
G_CALLBACK (palette_popup), colorsel);
-
+
gtk_drag_dest_set (retval,
GTK_DEST_DEFAULT_HIGHLIGHT |
GTK_DEST_DEFAULT_MOTION |
GTK_DEST_DEFAULT_DROP,
targets, 1,
GDK_ACTION_COPY);
-
+
g_signal_connect (retval, "drag-end",
G_CALLBACK (palette_drag_end), NULL);
g_signal_connect (retval, "drag-data-received",