[gimp] app: Add gimp_dockbook_get_tab_icon_size()
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Add gimp_dockbook_get_tab_icon_size()
- Date: Wed, 2 Jun 2010 05:58:42 +0000 (UTC)
commit 7b4c731192947e096ac10ddc57f9c2cdb6a8b423
Author: Martin Nordholts <martinn src gnome org>
Date: Sun May 23 12:36:24 2010 +0200
app: Add gimp_dockbook_get_tab_icon_size()
app/widgets/gimpdockbook.c | 23 ++++++++++++++++-------
1 files changed, 16 insertions(+), 7 deletions(-)
---
diff --git a/app/widgets/gimpdockbook.c b/app/widgets/gimpdockbook.c
index 457a882..0f33fe1 100644
--- a/app/widgets/gimpdockbook.c
+++ b/app/widgets/gimpdockbook.c
@@ -129,6 +129,8 @@ static gboolean gimp_dockbook_tab_drag_drop (GtkWidget *widget,
gint y,
guint time);
+static GtkIconSize
+ gimp_dockbook_get_tab_icon_size (GimpDockbook *dockbook);
static void gimp_dockbook_add_tab_timeout (GimpDockbook *dockbook,
GimpDockable *dockable);
static void gimp_dockbook_remove_tab_timeout (GimpDockbook *dockbook);
@@ -563,18 +565,13 @@ gimp_dockbook_create_tab_widget (GimpDockbook *dockbook,
{
GtkWidget *tab_widget;
GimpDockWindow *dock_window;
- GtkIconSize tab_size = DEFAULT_TAB_ICON_SIZE;
- GtkAction *action = NULL;
-
- gtk_widget_style_get (GTK_WIDGET (dockbook),
- "tab-icon-size", &tab_size,
- NULL);
+ GtkAction *action = NULL;
tab_widget =
gimp_dockable_create_tab_widget (dockable,
gimp_dock_get_context (dockbook->p->dock),
gimp_dockable_get_tab_style (dockable),
- tab_size);
+ gimp_dockbook_get_tab_icon_size (dockbook));
if (! GIMP_IS_VIEW (tab_widget))
{
@@ -1015,6 +1012,18 @@ gimp_dockbook_tab_drag_drop (GtkWidget *widget,
return handle;
}
+static GtkIconSize
+gimp_dockbook_get_tab_icon_size (GimpDockbook *dockbook)
+{
+ GtkIconSize tab_size = DEFAULT_TAB_ICON_SIZE;
+
+ gtk_widget_style_get (GTK_WIDGET (dockbook),
+ "tab-icon-size", &tab_size,
+ NULL);
+
+ return tab_size;
+}
+
static void
gimp_dockbook_add_tab_timeout (GimpDockbook *dockbook,
GimpDockable *dockable)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]