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:34:25 +0200
commit311ae4eb6690a2d089014622bd340aa79a33409c (patch)
tree266333cffb7425143f620e87cb2a26854d41653a /stickynotes/stickynotes_applet.h
parente83811d07c2b598ebe46f9e54cb9dbcc1ea87f18 (diff)
downloadmate-applets-311ae4eb6690a2d089014622bd340aa79a33409c.tar.bz2
mate-applets-311ae4eb6690a2d089014622bd340aa79a33409c.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;