app: Remove _for_style in gimp_dockable_new_tab_widget_for_style()

It became reduntant when 'get' was changed to 'new'.
This commit is contained in:
Martin Nordholts 2010-04-18 18:01:14 +02:00
parent d35f4d5db4
commit 39349e0658
3 changed files with 13 additions and 14 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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))
{