summaryrefslogtreecommitdiff
path: root/shell/favorites.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2014-02-14 13:12:10 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2014-02-17 20:15:50 +0100
commitf41d2f201cb50ab9fab3477d5d1914740254c8bf (patch)
tree8e04b94ef81fcb355a47cc3a8aefcbdda2ab4987 /shell/favorites.c
parentc4bd6363df9dfb3199d80542c6f19159cca1ffe1 (diff)
downloadgraynard-f41d2f201cb50ab9fab3477d5d1914740254c8bf.tar.gz
graynard-f41d2f201cb50ab9fab3477d5d1914740254c8bf.zip
shell: move panel to left hand side
Diffstat (limited to 'shell/favorites.c')
-rw-r--r--shell/favorites.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/shell/favorites.c b/shell/favorites.c
index 9d3d021..c8a006c 100644
--- a/shell/favorites.c
+++ b/shell/favorites.c
@@ -12,6 +12,8 @@
#include <gio/gdesktopappinfo.h>
#include <gtk/gtk.h>
+#include "app-icon.h"
+
enum {
PROP_0,
};
@@ -53,9 +55,8 @@ add_favorite (WestonGtkFavorites *self,
return;
icon = g_app_info_get_icon (G_APP_INFO (info));
- image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
- button = gtk_button_new ();
- gtk_button_set_image (GTK_BUTTON (button), image);
+
+ button = weston_gtk_app_icon_new_from_gicon (icon);
g_object_set_data_full (G_OBJECT (button), "info", info, g_object_unref);
@@ -130,5 +131,7 @@ weston_gtk_favorites_class_init (WestonGtkFavoritesClass *klass)
GtkWidget *
weston_gtk_favorites_new (void)
{
- return g_object_new (WESTON_GTK_TYPE_FAVORITES, NULL);
+ return g_object_new (WESTON_GTK_TYPE_FAVORITES,
+ "orientation", GTK_ORIENTATION_VERTICAL,
+ NULL);
}