aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2016-07-13 13:42:45 +0300
committerJussi Kukkonen <jussi.kukkonen@intel.com>2016-07-13 14:16:11 +0300
commit1ac71e562548c3db28ac4a68803ed8b85b778024 (patch)
treeae634e54737503d5ee73baaa892e9267edeaec15
parentaacd4e1e467758b863b54666219fec0d265c9aa6 (diff)
downloadmatchbox-panel-2-1ac71e562548c3db28ac4a68803ed8b85b778024.tar.gz
matchbox-panel-2-1ac71e562548c3db28ac4a68803ed8b85b778024.tar.bz2
matchbox-panel-2-1ac71e562548c3db28ac4a68803ed8b85b778024.zip
startup: Port to ScalingImage2
Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
-rw-r--r--applets/startup/startup.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/applets/startup/startup.c b/applets/startup/startup.c
index 1b304da..026dce2 100644
--- a/applets/startup/startup.c
+++ b/applets/startup/startup.c
@@ -38,7 +38,7 @@
#include <string.h>
#include <matchbox-panel/mb-panel.h>
-#include <matchbox-panel/mb-panel-scaling-image.h>
+#include <matchbox-panel/mb-panel-scaling-image2.h>
#define TIMEOUT 20
#define HOURGLASS_PIXMAPS 8
@@ -50,7 +50,7 @@ typedef struct LaunchItem {
} LaunchItem;
typedef struct {
- MBPanelScalingImage *image;
+ MBPanelScalingImage2 *image;
GdkWindow *root_window;
SnDisplay *sn_display;
SnMonitorContext *sn_context;
@@ -201,7 +201,7 @@ timeout (StartupApplet *applet)
sprintf (icon, "%s/hourglass-%i.png", DATADIR,
applet->hourglass_cur_frame_n);
- mb_panel_scaling_image_set_icon (applet->image, icon);
+ mb_panel_scaling_image2_set_icon (applet->image, icon);
free (icon);
@@ -261,10 +261,8 @@ mb_panel_applet_create (const char *id,
applet->hourglass_shown = FALSE;
/* Create image */
- applet->image = MB_PANEL_SCALING_IMAGE
- (mb_panel_scaling_image_new (orientation, NULL));
- mb_panel_scaling_image_set_caching (applet->image, TRUE);
-
+ applet->image = MB_PANEL_SCALING_IMAGE2
+ (mb_panel_scaling_image2_new (orientation, NULL));
gtk_widget_set_name (GTK_WIDGET(applet->image),
"MatchboxPanelStartupMonitor");