[gimp] app: Add gimp_dialog_factory_dock_new()
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] app: Add gimp_dialog_factory_dock_new()
- Date: Tue, 1 Dec 2009 21:18:21 +0000 (UTC)
commit c08c6e21e0de5a8ac9d77b8b46b066f6b7f231aa
Author: Martin Nordholts <martinn src gnome org>
Date: Tue Dec 1 22:18:04 2009 +0100
app: Add gimp_dialog_factory_dock_new()
app/widgets/gimpdialogfactory.c | 15 ++++++++++++++-
app/widgets/gimpdialogfactory.h | 3 +++
2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpdialogfactory.c b/app/widgets/gimpdialogfactory.c
index 659926c..d8065f7 100644
--- a/app/widgets/gimpdialogfactory.c
+++ b/app/widgets/gimpdialogfactory.c
@@ -791,7 +791,7 @@ gimp_dialog_factory_dock_with_window_new (GimpDialogFactory *factory,
/* Create the dock */
ui_manager = gimp_dock_window_get_ui_manager (GIMP_DOCK_WINDOW (dock_window));
- dock = factory->new_dock_func (factory, factory->context, ui_manager);
+ dock = gimp_dialog_factory_dock_new (factory, screen, ui_manager);
if (dock)
{
@@ -836,6 +836,19 @@ gimp_dialog_factory_dock_window_new (GimpDialogFactory *factory,
return dock_window;
}
+GtkWidget *
+gimp_dialog_factory_dock_new (GimpDialogFactory *factory,
+ GdkScreen *screen,
+ GimpUIManager *ui_manager)
+{
+ g_return_val_if_fail (GIMP_IS_DIALOG_FACTORY (factory), NULL);
+ g_return_val_if_fail (factory->new_dock_func != NULL, NULL);
+ g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
+ g_return_val_if_fail (ui_manager != NULL, NULL);
+
+ return factory->new_dock_func (factory, factory->context, ui_manager);
+}
+
void
gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
GtkWidget *dialog)
diff --git a/app/widgets/gimpdialogfactory.h b/app/widgets/gimpdialogfactory.h
index e3b687a..db90652 100644
--- a/app/widgets/gimpdialogfactory.h
+++ b/app/widgets/gimpdialogfactory.h
@@ -163,6 +163,9 @@ GtkWidget * gimp_dialog_factory_dock_with_window_new (GimpDialogFactory
GdkScreen *screen);
GtkWidget * gimp_dialog_factory_dock_window_new (GimpDialogFactory *factory,
GdkScreen *screen);
+GtkWidget * gimp_dialog_factory_dock_new (GimpDialogFactory *factory,
+ GdkScreen *screen,
+ GimpUIManager *ui_manager);
void gimp_dialog_factory_add_dialog (GimpDialogFactory *factory,
GtkWidget *dialog);
void gimp_dialog_factory_add_foreign (GimpDialogFactory *factory,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]