[easytag] Set the inline-toolbar style on the images toolbar
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Set the inline-toolbar style on the images toolbar
- Date: Sat, 12 Apr 2014 19:14:11 +0000 (UTC)
commit 58c4d16a0662ce96a7c9455e33978967d908b70f
Author: David King <amigadave amigadave com>
Date: Sat Apr 12 20:07:03 2014 +0100
Set the inline-toolbar style on the images toolbar
src/easytag.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index cbd3f55..71f6310 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -704,7 +704,6 @@ Create_Tag_Area (void)
GtkWidget *Icon;
GtkWidget *PictureScrollWindow;
GtkWidget *toolbar;
- GtkToolItem *toolitem;
GIcon *icon;
GtkWidget *image;
GtkWidget *VBox;
@@ -1203,6 +1202,8 @@ Create_Tag_Area (void)
/* Picture action toolbar. */
toolbar = gtk_toolbar_new ();
+ gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
+ GTK_STYLE_CLASS_INLINE_TOOLBAR);
gtk_toolbar_set_style (GTK_TOOLBAR (toolbar), GTK_TOOLBAR_ICONS);
gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar), GTK_ICON_SIZE_MENU);
et_grid_attach_full (GTK_GRID (Table), toolbar, 0, 1, 1, 1, FALSE, FALSE,
@@ -1238,9 +1239,6 @@ Create_Tag_Area (void)
g_signal_connect (G_OBJECT (remove_image_toolitem), "clicked",
G_CALLBACK (Picture_Clear_Button_Clicked), NULL);
- toolitem = gtk_separator_tool_item_new ();
- gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
-
icon = g_themed_icon_new_with_default_fallbacks ("document-save");
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
save_image_toolitem = gtk_tool_button_new (image, NULL);
@@ -1263,9 +1261,6 @@ Create_Tag_Area (void)
g_signal_connect (G_OBJECT (image_properties_toolitem), "clicked",
G_CALLBACK (Picture_Properties_Button_Clicked), NULL);
- toolitem = gtk_separator_tool_item_new ();
- gtk_toolbar_insert (GTK_TOOLBAR (toolbar), toolitem, -1);
-
icon = g_themed_icon_new_with_default_fallbacks ("insert-image");
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
apply_image_toolitem = gtk_tool_button_new (image, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]