[Xfce4-commits] [xfce/thunar] 04/07: Drop tabs styling
noreply at xfce.org
noreply at xfce.org
Sat Jun 2 18:35:49 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit ea62e4d4a6bda5549138bdf8712125ac48f5b7c0
Author: Andre Miranda <andreldm at xfce.org>
Date: Sat Jun 2 13:00:33 2018 -0300
Drop tabs styling
They don't seem to make any visual difference
---
thunar/thunar-window.c | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 153c114..9ec3bcd 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -715,7 +715,6 @@ thunar_window_init (ThunarWindow *window)
gboolean last_statusbar_visible;
GtkToolItem *tool_item;
gboolean small_icons;
- GtkRcStyle *style;
GtkStyleContext *context;
/* unset the view type */
@@ -901,12 +900,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
gtk_notebook_set_group_name (GTK_NOTEBOOK (window->notebook), "thunar-tabs");
gtk_widget_show (window->notebook);
- /* drop the notebook borders */
- style = gtk_rc_style_new ();
- style->xthickness = style->ythickness = 0;
- gtk_widget_modify_style (window->notebook, style);
- g_object_unref (G_OBJECT (style));
-
/* allocate the new location bar widget */
window->location_bar = thunar_location_bar_new ();
g_object_bind_property (G_OBJECT (window), "current-directory", G_OBJECT (window->location_bar), "current-directory", G_BINDING_SYNC_CREATE);
@@ -919,6 +912,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* setup the toolbar for the location bar */
window->location_toolbar = gtk_ui_manager_get_widget (window->ui_manager, "/location-toolbar");
G_GNUC_END_IGNORE_DEPRECATIONS
+
gtk_toolbar_set_style (GTK_TOOLBAR (window->location_toolbar), GTK_TOOLBAR_ICONS);
gtk_toolbar_set_icon_size (GTK_TOOLBAR (window->location_toolbar),
small_icons ? GTK_ICON_SIZE_SMALL_TOOLBAR : GTK_ICON_SIZE_LARGE_TOOLBAR);
@@ -1786,7 +1780,6 @@ thunar_window_notebook_insert (ThunarWindow *window,
GtkWidget *label_box;
GtkWidget *button;
GtkWidget *icon;
- GtkRcStyle *style;
_thunar_return_if_fail (THUNAR_IS_WINDOW (window));
_thunar_return_if_fail (THUNAR_IS_FILE (directory));
@@ -1833,12 +1826,6 @@ thunar_window_notebook_insert (ThunarWindow *window,
g_signal_connect_swapped (G_OBJECT (button), "clicked", G_CALLBACK (gtk_widget_destroy), view);
gtk_widget_show (button);
- /* make button a bit smaller */
- style = gtk_rc_style_new ();
- style->xthickness = style->ythickness = 0;
- gtk_widget_modify_style (button, style);
- g_object_unref (G_OBJECT (style));
-
icon = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (button), icon);
gtk_widget_show (icon);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list