app: Use 'create' not 'new' in dockable instance creation methods

Use 'create' not 'new' in GimpDockable instance creation methods to be
consistent with the rest of the code base.
This commit is contained in:
Martin Nordholts 2010-04-19 04:32:18 +02:00
parent 256eee9850
commit e3b0bda962
3 changed files with 63 additions and 63 deletions

View File

@ -1097,7 +1097,7 @@ gimp_dockable_set_tab_style (GimpDockable *dockable,
}
GtkWidget *
gimp_dockable_new_tab_widget (GimpDockable *dockable,
gimp_dockable_create_tab_widget (GimpDockable *dockable,
GimpContext *context,
GimpTabStyle tab_style,
GtkIconSize size)
@ -1110,7 +1110,7 @@ gimp_dockable_new_tab_widget (GimpDockable *dockable,
}
GtkWidget *
gimp_dockable_new_drag_widget (GimpDockable *dockable)
gimp_dockable_create_drag_widget (GimpDockable *dockable)
{
GtkWidget *frame;
GtkWidget *widget;

View File

@ -88,11 +88,11 @@ gboolean gimp_dockable_is_locked (GimpDockable *dockable);
void gimp_dockable_set_tab_style (GimpDockable *dockable,
GimpTabStyle tab_style);
GtkWidget * gimp_dockable_new_tab_widget (GimpDockable *dockable,
GtkWidget * gimp_dockable_create_tab_widget (GimpDockable *dockable,
GimpContext *context,
GimpTabStyle tab_style,
GtkIconSize size);
GtkWidget * gimp_dockable_new_drag_widget (GimpDockable *dockable);
GtkWidget * gimp_dockable_create_drag_widget (GimpDockable *dockable);
void gimp_dockable_set_context (GimpDockable *dockable,
GimpContext *context);
GimpUIManager * gimp_dockable_get_menu (GimpDockable *dockable,

View File

@ -468,7 +468,7 @@ gimp_dockbook_add (GimpDockbook *dockbook,
/* For the notebook right-click menu, always use the icon style */
menu_widget =
gimp_dockable_new_tab_widget (dockable,
gimp_dockable_create_tab_widget (dockable,
gimp_dock_get_context (dockbook->p->dock),
GIMP_TAB_STYLE_ICON_BLURB,
MENU_WIDGET_ICON_SIZE);
@ -585,7 +585,7 @@ gimp_dockbook_create_tab_widget (GimpDockbook *dockbook,
NULL);
tab_widget =
gimp_dockable_new_tab_widget (dockable,
gimp_dockable_create_tab_widget (dockable,
gimp_dock_get_context (dockbook->p->dock),
gimp_dockable_get_tab_style (dockable),
tab_size);
@ -815,7 +815,7 @@ gimp_dockbook_tab_drag_begin (GtkWidget *widget,
gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_DND);
gtk_window_set_screen (GTK_WINDOW (window), gtk_widget_get_screen (widget));
view = gimp_dockable_new_drag_widget (dockable);
view = gimp_dockable_create_drag_widget (dockable);
gtk_container_add (GTK_CONTAINER (window), view);
gtk_widget_show (view);