[yocto] [matchbox-panel-2][PATCH 4/4] launcher: Port to ScalingImage2

Jussi Kukkonen jussi.kukkonen at intel.com
Wed Jul 13 06:12:26 PDT 2016


Signed-off-by: Jussi Kukkonen <jussi.kukkonen at intel.com>
---
 applets/launcher/launcher.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/applets/launcher/launcher.c b/applets/launcher/launcher.c
index 0ec8a43..d1ab8e4 100644
--- a/applets/launcher/launcher.c
+++ b/applets/launcher/launcher.c
@@ -12,7 +12,7 @@
 #include <gtk/gtk.h>
 #include <gdk/gdkx.h>
 #include <matchbox-panel/mb-panel.h>
-#include <matchbox-panel/mb-panel-scaling-image.h>
+#include <matchbox-panel/mb-panel-scaling-image2.h>
 
 #ifdef USE_LIBSN
   #define SN_API_NOT_YET_FROZEN 1
@@ -20,7 +20,7 @@
 #endif
 
 typedef struct {
-        GtkImage *image;
+        MBPanelScalingImage2 *image;
 
         gboolean button_down;
 
@@ -331,7 +331,7 @@ mb_panel_applet_create (const char    *id,
 
         gtk_widget_set_name (event_box, "MatchboxPanelLauncher");
 
-        image = mb_panel_scaling_image_new (orientation, icon);
+        image = mb_panel_scaling_image2_new (orientation, icon);
         g_free (icon);
 
         gtk_container_add (GTK_CONTAINER (event_box), image);
@@ -339,7 +339,7 @@ mb_panel_applet_create (const char    *id,
         /* Set up applet structure */
         applet = g_slice_new0 (LauncherApplet);
 
-        applet->image = GTK_IMAGE (image);
+        applet->image = MB_PANEL_SCALING_IMAGE2 (image);
         
         applet->button_down = FALSE;
 
-- 
2.8.1




More information about the yocto mailing list