[nautilus] Add shadow_type arg to eel_scrolled_wrap_table_new
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus] Add shadow_type arg to eel_scrolled_wrap_table_new
- Date: Thu, 10 Dec 2009 17:13:27 +0000 (UTC)
commit 49193a40792ba8df413a3b361940f977dc009aef
Author: Alexander Larsson <alexl redhat com>
Date: Thu Dec 10 15:08:06 2009 +0100
Add shadow_type arg to eel_scrolled_wrap_table_new
eel/eel-wrap-table.c | 3 ++-
eel/eel-wrap-table.h | 3 ++-
src/file-manager/fm-properties-window.c | 2 +-
src/nautilus-emblem-sidebar.c | 4 ++--
4 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/eel/eel-wrap-table.c b/eel/eel-wrap-table.c
index 51c3f60..2ff81ae 100644
--- a/eel/eel-wrap-table.c
+++ b/eel/eel-wrap-table.c
@@ -1018,6 +1018,7 @@ eel_wrap_table_get_num_children (const EelWrapTable *wrap_table)
GtkWidget *
eel_scrolled_wrap_table_new (gboolean homogenous,
+ GtkShadowType shadow_type,
GtkWidget **wrap_table_out)
{
GtkWidget *scrolled_window;
@@ -1034,7 +1035,7 @@ eel_scrolled_wrap_table_new (gboolean homogenous,
viewport = gtk_viewport_new (gtk_scrolled_window_get_hadjustment (GTK_SCROLLED_WINDOW (scrolled_window)),
gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (scrolled_window)));
gtk_viewport_set_shadow_type (GTK_VIEWPORT (viewport),
- GTK_SHADOW_NONE);
+ shadow_type);
gtk_container_add (GTK_CONTAINER (scrolled_window),
viewport);
diff --git a/eel/eel-wrap-table.h b/eel/eel-wrap-table.h
index 85ae24e..62b8f9d 100644
--- a/eel/eel-wrap-table.h
+++ b/eel/eel-wrap-table.h
@@ -93,7 +93,8 @@ void eel_wrap_table_reorder_child (EelWrapTable *w
int position);
guint eel_wrap_table_get_num_children (const EelWrapTable *wrap_table);
-GtkWidget * eel_scrolled_wrap_table_new (gboolean homogenous,
+GtkWidget * eel_scrolled_wrap_table_new (gboolean homogenous,
+ GtkShadowType shadow_type,
GtkWidget **wrap_table_out);
G_END_DECLS
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c
index c867bc2..f1577bb 100644
--- a/src/file-manager/fm-properties-window.c
+++ b/src/file-manager/fm-properties-window.c
@@ -3438,7 +3438,7 @@ create_emblems_page (FMPropertiesWindow *window)
NautilusIconInfo *info;
/* The emblems wrapped table */
- scroller = eel_scrolled_wrap_table_new (TRUE, &emblems_table);
+ scroller = eel_scrolled_wrap_table_new (TRUE, GTK_SHADOW_NONE, &emblems_table);
gtk_container_set_border_width (GTK_CONTAINER (emblems_table), 12);
diff --git a/src/nautilus-emblem-sidebar.c b/src/nautilus-emblem-sidebar.c
index 3a5cb18..522b77f 100644
--- a/src/nautilus-emblem-sidebar.c
+++ b/src/nautilus-emblem-sidebar.c
@@ -548,7 +548,7 @@ create_add_emblems_dialog (NautilusEmblemSidebar *emblem_sidebar,
label, FALSE, FALSE, 8);
gtk_widget_show (label);
- scroller = eel_scrolled_wrap_table_new (TRUE, &table);
+ scroller = eel_scrolled_wrap_table_new (TRUE, GTK_SHADOW_NONE, &table);
eel_wrap_table_set_x_spacing (EEL_WRAP_TABLE (table), 8);
eel_wrap_table_set_y_spacing (EEL_WRAP_TABLE (table), 8);
@@ -872,7 +872,7 @@ nautilus_emblem_sidebar_create_container (NautilusEmblemSidebar *emblem_sidebar)
GtkWidget *emblems_table, *scroller;
/* The emblems wrapped table */
- scroller = eel_scrolled_wrap_table_new (TRUE, &emblems_table);
+ scroller = eel_scrolled_wrap_table_new (TRUE, GTK_SHADOW_NONE, &emblems_table);
gtk_container_set_border_width (GTK_CONTAINER (emblems_table), 8);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]