app/gui/Makefile.am removed...
2003-07-07 Michael Natterer <mitch@gimp.org> * app/gui/Makefile.am * app/gui/device-status-dialog.[ch]: removed... * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpdevicestatus.[ch]: ...added here as widget. The thing is narrower now but not nicer and needs some polishing. * app/widgets/gimppropwidgets.[ch]: added gimp_prop_color_area_new() and gimp_prop_stock_image_new() (the latter is still unused). * app/gui/dialogs-constructors.[ch] * app/gui/dialogs.c: made the device status a dockable. * app/gui/dialogs-menu.c * app/gui/image-menu.c * app/gui/toolbox-menu.c: changed accordingly. * app/gui/gui.c: update the device status dialog indirectly now using the new gui_device_change_notify() callback.
This commit is contained in:
committed by
Michael Natterer
parent
7cf24c4f86
commit
878ee7b03e
@ -56,6 +56,7 @@
|
||||
#include "widgets/gimpimagedock.h"
|
||||
#include "widgets/gimpimageview.h"
|
||||
#include "widgets/gimpitemtreeview.h"
|
||||
#include "widgets/gimpdevicestatus.h"
|
||||
#include "widgets/gimpdockable.h"
|
||||
#include "widgets/gimpdockbook.h"
|
||||
#include "widgets/gimpdocumentview.h"
|
||||
@ -76,7 +77,6 @@
|
||||
|
||||
#include "about-dialog.h"
|
||||
#include "channels-commands.h"
|
||||
#include "device-status-dialog.h"
|
||||
#include "dialogs.h"
|
||||
#include "dialogs-constructors.h"
|
||||
#include "file-commands.h"
|
||||
@ -158,14 +158,6 @@ dialogs_file_new_new (GimpDialogFactory *factory,
|
||||
return file_new_dialog_new (context->gimp);
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
dialogs_device_status_get (GimpDialogFactory *factory,
|
||||
GimpContext *context,
|
||||
gint preview_size)
|
||||
{
|
||||
return device_status_dialog_create (context->gimp);
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
dialogs_preferences_get (GimpDialogFactory *factory,
|
||||
GimpContext *context,
|
||||
@ -274,6 +266,26 @@ dialogs_tool_options_get (GimpDialogFactory *factory,
|
||||
NULL);
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
dialogs_device_status_get (GimpDialogFactory *factory,
|
||||
GimpContext *context,
|
||||
gint preview_size)
|
||||
{
|
||||
static GtkWidget *view = NULL;
|
||||
|
||||
if (view)
|
||||
return NULL;
|
||||
|
||||
view = gimp_device_status_new (context->gimp);
|
||||
|
||||
g_object_add_weak_pointer (G_OBJECT (view), (gpointer *) &view);
|
||||
|
||||
return dialogs_dockable_new (view,
|
||||
_("Device Status"), _("Devices"), NULL,
|
||||
NULL, NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
GtkWidget *
|
||||
dialogs_error_console_get (GimpDialogFactory *factory,
|
||||
GimpContext *context,
|
||||
|
||||
Reference in New Issue
Block a user