[latexila] Templates: shadow type for the treeviews
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Templates: shadow type for the treeviews
- Date: Wed, 18 Jul 2012 22:19:02 +0000 (UTC)
commit c20c37373d6e39e542ca24752af0b7d4316ec712
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Thu Jul 19 00:19:03 2012 +0200
Templates: shadow type for the treeviews
src/templates_dialogs.vala | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/src/templates_dialogs.vala b/src/templates_dialogs.vala
index 3b1d622..49efff6 100644
--- a/src/templates_dialogs.vala
+++ b/src/templates_dialogs.vala
@@ -48,7 +48,9 @@ public class OpenTemplateDialog
// List of default templates.
_default_templates = templates.get_default_templates_list ();
- Widget scrollbar = Utils.add_scrollbar (_default_templates);
+ ScrolledWindow scrollbar =
+ Utils.add_scrollbar (_default_templates) as ScrolledWindow;
+ scrollbar.set_shadow_type (ShadowType.IN);
scrollbar.set_size_request (250, 200);
Widget component = Utils.get_dialog_component (_("Default templates"), scrollbar);
hgrid.add (component);
@@ -56,7 +58,8 @@ public class OpenTemplateDialog
// List of personal templates.
_personal_templates = templates.get_personal_templates_list ();
- scrollbar = Utils.add_scrollbar (_personal_templates);
+ scrollbar = Utils.add_scrollbar (_personal_templates) as ScrolledWindow;
+ scrollbar.set_shadow_type (ShadowType.IN);
scrollbar.set_size_request (250, 200);
component = Utils.get_dialog_component (_("Your personal templates"), scrollbar);
hgrid.add (component);
@@ -188,7 +191,8 @@ public class CreateTemplateDialog : Dialog
// Take the default store because it contains all the icons.
TreeView templates_list = templates.get_default_templates_list ();
- Widget scrollbar = Utils.add_scrollbar (templates_list);
+ ScrolledWindow scrollbar = Utils.add_scrollbar (templates_list) as ScrolledWindow;
+ scrollbar.set_shadow_type (ShadowType.IN);
scrollbar.set_size_request (250, 200);
component = Utils.get_dialog_component (_("Choose an icon"), scrollbar);
content_area.pack_start (component);
@@ -247,7 +251,8 @@ public class DeleteTemplateDialog : Dialog
TreeSelection select = templates_list.get_selection ();
select.set_mode (SelectionMode.MULTIPLE);
- Widget scrollbar = Utils.add_scrollbar (templates_list);
+ ScrolledWindow scrollbar = Utils.add_scrollbar (templates_list) as ScrolledWindow;
+ scrollbar.set_shadow_type (ShadowType.IN);
scrollbar.set_size_request (250, 150);
Widget component = Utils.get_dialog_component (_("Personal templates"),
scrollbar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]