summaryrefslogtreecommitdiff
path: root/applets/fish/fish.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-11 07:55:31 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-12 07:04:31 +0100
commit163c4941bbe525fee986854844c54c67b8c85a19 (patch)
tree7aaa177326dd7a70c0888d77cf2a73a333fb24e6 /applets/fish/fish.c
parent4e0bd62bccc09606144bfe35b6c8ff9240a55bb2 (diff)
downloadmate-panel-163c4941bbe525fee986854844c54c67b8c85a19.tar.bz2
mate-panel-163c4941bbe525fee986854844c54c67b8c85a19.tar.xz
GTK+3 fish: Removed unused and deprecated variables/functions
taken from: https://git.gnome.org/browse/gnome-panel/commit/?h=gnome-3-0&id=06ba8ba
Diffstat (limited to 'applets/fish/fish.c')
-rw-r--r--applets/fish/fish.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/fish/fish.c b/applets/fish/fish.c
index 8986e9e1..fc729e9a 100644
--- a/applets/fish/fish.c
+++ b/applets/fish/fish.c
@@ -1482,8 +1482,10 @@ static gboolean fish_applet_expose_event(GtkWidget* widget, GdkEventExpose* even
#endif
{
GdkWindow *window;
+#if !GTK_CHECK_VERSION (3, 0, 0)
GtkStyle *style;
GtkStateType state;
+#endif
int width, height;
int src_x, src_y;
@@ -1496,8 +1498,10 @@ static gboolean fish_applet_expose_event(GtkWidget* widget, GdkEventExpose* even
g_assert (fish->n_frames > 0);
window = gtk_widget_get_window (widget);
+#if !GTK_CHECK_VERSION (3, 0, 0)
style = gtk_widget_get_style (widget);
state = gtk_widget_get_state (widget);
+#endif
#if GTK_CHECK_VERSION(3, 0, 0)
width = cairo_xlib_surface_get_width (fish->surface);