From 39349e06587ececbf4b9138769e85a2baaab84eb Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sun, 18 Apr 2010 18:01:14 +0200 Subject: [PATCH] app: Remove _for_style in gimp_dockable_new_tab_widget_for_style() It became reduntant when 'get' was changed to 'new'. --- app/widgets/gimpdockable.c | 8 ++++---- app/widgets/gimpdockable.h | 3 +-- app/widgets/gimpdockbook.c | 16 ++++++++-------- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/app/widgets/gimpdockable.c b/app/widgets/gimpdockable.c index 2ad8f09826..b5dc78c3a2 100644 --- a/app/widgets/gimpdockable.c +++ b/app/widgets/gimpdockable.c @@ -1100,10 +1100,10 @@ gimp_dockable_set_tab_style (GimpDockable *dockable, } GtkWidget * -gimp_dockable_new_tab_widget_for_style (GimpDockable *dockable, - GimpContext *context, - GimpTabStyle tab_style, - GtkIconSize size) +gimp_dockable_new_tab_widget (GimpDockable *dockable, + GimpContext *context, + GimpTabStyle tab_style, + GtkIconSize size) { g_return_val_if_fail (GIMP_IS_DOCKABLE (dockable), NULL); g_return_val_if_fail (GIMP_IS_CONTEXT (context), NULL); diff --git a/app/widgets/gimpdockable.h b/app/widgets/gimpdockable.h index 1628c8eb87..48a7086d7f 100644 --- a/app/widgets/gimpdockable.h +++ b/app/widgets/gimpdockable.h @@ -88,8 +88,7 @@ gboolean gimp_dockable_is_locked (GimpDockable *dockable); void gimp_dockable_set_tab_style (GimpDockable *dockable, GimpTabStyle tab_style); -GtkWidget * gimp_dockable_new_tab_widget_for_style - (GimpDockable *dockable, +GtkWidget * gimp_dockable_new_tab_widget (GimpDockable *dockable, GimpContext *context, GimpTabStyle tab_style, GtkIconSize size); diff --git a/app/widgets/gimpdockbook.c b/app/widgets/gimpdockbook.c index acfc362ef4..e896a205d2 100644 --- a/app/widgets/gimpdockbook.c +++ b/app/widgets/gimpdockbook.c @@ -468,10 +468,10 @@ gimp_dockbook_add (GimpDockbook *dockbook, /* For the notebook right-click menu, always use the icon style */ menu_widget = - gimp_dockable_new_tab_widget_for_style (dockable, - gimp_dock_get_context (dockbook->p->dock), - GIMP_TAB_STYLE_ICON_BLURB, - MENU_WIDGET_ICON_SIZE); + gimp_dockable_new_tab_widget (dockable, + gimp_dock_get_context (dockbook->p->dock), + GIMP_TAB_STYLE_ICON_BLURB, + MENU_WIDGET_ICON_SIZE); g_return_if_fail (GTK_IS_WIDGET (menu_widget)); @@ -585,10 +585,10 @@ gimp_dockbook_create_tab_widget (GimpDockbook *dockbook, NULL); tab_widget = - gimp_dockable_new_tab_widget_for_style (dockable, - gimp_dock_get_context (dockbook->p->dock), - gimp_dockable_get_tab_style (dockable), - tab_size); + gimp_dockable_new_tab_widget (dockable, + gimp_dock_get_context (dockbook->p->dock), + gimp_dockable_get_tab_style (dockable), + tab_size); if (! GIMP_IS_VIEW (tab_widget)) {