[latexila] BuildToolsPreferences: use latexila_utils_join_widgets()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] BuildToolsPreferences: use latexila_utils_join_widgets()
- Date: Fri, 10 Jul 2015 13:32:13 +0000 (UTC)
commit 834834359e632c47f613d36290541cd9245137c5
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Jul 10 15:28:33 2015 +0200
BuildToolsPreferences: use latexila_utils_join_widgets()
src/build_tools_preferences.vala | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/build_tools_preferences.vala b/src/build_tools_preferences.vala
index 65f5cc2..672e134 100644
--- a/src/build_tools_preferences.vala
+++ b/src/build_tools_preferences.vala
@@ -141,21 +141,13 @@ public class BuildToolsPreferences : GLib.Object
scrolled_window.set_shadow_type (ShadowType.IN);
scrolled_window.set_size_request (350, 200);
- StyleContext context = scrolled_window.get_style_context ();
- context.set_junction_sides (JunctionSides.BOTTOM);
-
toolbar.set_icon_size (IconSize.MENU);
toolbar.set_style (ToolbarStyle.ICONS);
- context = toolbar.get_style_context ();
+ StyleContext context = toolbar.get_style_context ();
context.add_class (STYLE_CLASS_INLINE_TOOLBAR);
- context.set_junction_sides (JunctionSides.TOP);
-
- Box box = new Box (Orientation.VERTICAL, 0);
- box.pack_start (scrolled_window);
- box.pack_start (toolbar, false);
- return box;
+ return Latexila.utils_join_widgets (scrolled_window, toolbar);
}
private Gtk.ListStore get_new_store ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]