summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes_applet.h
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2018-04-30 22:02:05 -0400
committerraveit65 <[email protected]>2018-05-12 22:22:15 +0200
commit7185a704026f9fccf253c0993be986d359f16526 (patch)
treee30905063ebde930096b096264ea544b0afa29c5 /stickynotes/stickynotes_applet.h
parent486f9e58951fda0e7d52c49fecbdab69d41304a3 (diff)
downloadmate-applets-7185a704026f9fccf253c0993be986d359f16526.tar.bz2
mate-applets-7185a704026f9fccf253c0993be986d359f16526.tar.xz
Convert applet icons from pixbuf to surfaces
This improves support for HiDPI by loading properly scaled surfaces for applets.
Diffstat (limited to 'stickynotes/stickynotes_applet.h')
-rw-r--r--stickynotes/stickynotes_applet.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/stickynotes/stickynotes_applet.h b/stickynotes/stickynotes_applet.h
index 6a1663d0..18364655 100644
--- a/stickynotes/stickynotes_applet.h
+++ b/stickynotes/stickynotes_applet.h
@@ -22,7 +22,6 @@
#include <glib/gi18n.h>
#include <gdk/gdk.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <mate-panel-applet.h>
@@ -57,8 +56,8 @@ typedef struct
GList *notes; /* Linked-List of all the sticky notes */
GList *applets; /* Linked-List of all the applets */
- GdkPixbuf *icon_normal; /* Normal applet icon */
- GdkPixbuf *icon_prelight; /* Prelighted applet icon */
+ cairo_surface_t *icon_normal; /* Normal applet icon */
+ cairo_surface_t *icon_prelight; /* Prelighted applet icon */
GSettings *settings; /* Shared GSettings */
@@ -77,7 +76,6 @@ typedef struct
GtkWidget *destroy_all_dialog; /* The applet it's destroy all dialog */
gboolean prelighted; /* Whether applet is prelighted */
- gboolean pressed; /* Whether applet is pressed */
gint panel_size;
MatePanelAppletOrient panel_orient;