added an entry for the text tool editor.
2003-06-27 Michael Natterer <mitch@gimp.org> * app/gui/dialogs.c (toplevel_entries): added an entry for the text tool editor. * app/tools/gimptexttool.c (gimp_text_tool_editor): register the editor window with the dialog factory so it becomes session-menaged.
This commit is contained in:

committed by
Michael Natterer

parent
b264fa1f4c
commit
e40a5b5370
@ -1,3 +1,12 @@
|
|||||||
|
2003-06-27 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/gui/dialogs.c (toplevel_entries): added an entry for the
|
||||||
|
text tool editor.
|
||||||
|
|
||||||
|
* app/tools/gimptexttool.c (gimp_text_tool_editor): register
|
||||||
|
the editor window with the dialog factory so it becomes
|
||||||
|
session-menaged.
|
||||||
|
|
||||||
2003-06-27 Michael Natterer <mitch@gimp.org>
|
2003-06-27 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/gui/grid-dialog.c: #include "config/gimpconfig.h"
|
* app/gui/grid-dialog.c: #include "config/gimpconfig.h"
|
||||||
|
@ -74,6 +74,8 @@ static const GimpDialogFactoryEntry toplevel_entries[] =
|
|||||||
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
||||||
{ "gimp-shear-tool-dialog",
|
{ "gimp-shear-tool-dialog",
|
||||||
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
||||||
|
{ "gimp-text-tool-dialog",
|
||||||
|
NULL, 0, TRUE, TRUE, TRUE, FALSE },
|
||||||
{ "gimp-threshold-tool-dialog",
|
{ "gimp-threshold-tool-dialog",
|
||||||
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
||||||
{ "gimp-perspective-tool-dialog",
|
{ "gimp-perspective-tool-dialog",
|
||||||
|
@ -74,6 +74,8 @@ static const GimpDialogFactoryEntry toplevel_entries[] =
|
|||||||
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
||||||
{ "gimp-shear-tool-dialog",
|
{ "gimp-shear-tool-dialog",
|
||||||
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
||||||
|
{ "gimp-text-tool-dialog",
|
||||||
|
NULL, 0, TRUE, TRUE, TRUE, FALSE },
|
||||||
{ "gimp-threshold-tool-dialog",
|
{ "gimp-threshold-tool-dialog",
|
||||||
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
NULL, 0, TRUE, TRUE, FALSE, FALSE },
|
||||||
{ "gimp-perspective-tool-dialog",
|
{ "gimp-perspective-tool-dialog",
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
#include "text/gimptext.h"
|
#include "text/gimptext.h"
|
||||||
#include "text/gimptextlayer.h"
|
#include "text/gimptextlayer.h"
|
||||||
|
|
||||||
|
#include "widgets/gimpdialogfactory.h"
|
||||||
#include "widgets/gimpfontselection.h"
|
#include "widgets/gimpfontselection.h"
|
||||||
#include "widgets/gimppropwidgets.h"
|
#include "widgets/gimppropwidgets.h"
|
||||||
#include "widgets/gimpwidgets-utils.h"
|
#include "widgets/gimpwidgets-utils.h"
|
||||||
@ -374,6 +375,10 @@ gimp_text_tool_editor (GimpTextTool *text_tool)
|
|||||||
g_object_add_weak_pointer (G_OBJECT (text_tool->editor),
|
g_object_add_weak_pointer (G_OBJECT (text_tool->editor),
|
||||||
(gpointer *) &text_tool->editor);
|
(gpointer *) &text_tool->editor);
|
||||||
|
|
||||||
|
gimp_dialog_factory_add_foreign (gimp_dialog_factory_from_name ("toplevel"),
|
||||||
|
"gimp-text-tool-dialog",
|
||||||
|
text_tool->editor);
|
||||||
|
|
||||||
gtk_widget_show (text_tool->editor);
|
gtk_widget_show (text_tool->editor);
|
||||||
|
|
||||||
if (! text_tool->text)
|
if (! text_tool->text)
|
||||||
|
Reference in New Issue
Block a user