Commit 8f64c73b authored by Guido Gunther's avatar Guido Gunther
Browse files

Drop GtkAlignment

It's deprecated and doesn't do much here atm
parent a2e14d72
...@@ -156,7 +156,6 @@ app_launcher_new_from_desktop_info (MaynardLauncher *self, ...@@ -156,7 +156,6 @@ app_launcher_new_from_desktop_info (MaynardLauncher *self,
GDesktopAppInfo *info) GDesktopAppInfo *info)
{ {
GIcon *icon; GIcon *icon;
GtkWidget *alignment;
GtkWidget *image; GtkWidget *image;
GtkWidget *button; GtkWidget *button;
GtkWidget *overlay; GtkWidget *overlay;
...@@ -197,9 +196,6 @@ app_launcher_new_from_desktop_info (MaynardLauncher *self, ...@@ -197,9 +196,6 @@ app_launcher_new_from_desktop_info (MaynardLauncher *self,
gtk_container_add (GTK_CONTAINER (revealer), label); gtk_container_add (GTK_CONTAINER (revealer), label);
/* icon button to load the app */ /* icon button to load the app */
alignment = gtk_alignment_new (0.5, 0.5, 1, 1);
gtk_container_add (GTK_CONTAINER (overlay), alignment);
icon = g_app_info_get_icon (G_APP_INFO (info)); icon = g_app_info_get_icon (G_APP_INFO (info));
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG); image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
button = gtk_button_new (); button = gtk_button_new ();
...@@ -213,7 +209,7 @@ app_launcher_new_from_desktop_info (MaynardLauncher *self, ...@@ -213,7 +209,7 @@ app_launcher_new_from_desktop_info (MaynardLauncher *self,
g_object_set (image, g_object_set (image,
"margin", 30, "margin", 30,
NULL); NULL);
gtk_container_add (GTK_CONTAINER (alignment), button); gtk_container_add (GTK_CONTAINER (overlay), button);
/* TODO: a bit ugly */ /* TODO: a bit ugly */
g_object_set_data (G_OBJECT (button), "launcher", self); g_object_set_data (G_OBJECT (button), "launcher", self);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment