mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
More unfinished replacement for the info window:
2005-04-05 Michael Natterer <mitch@gimp.org> More unfinished replacement for the info window: * app/widgets/Makefile.am * app/widgets/widgets-types.h * app/widgets/gimpimagepropview.[ch]: new widget showing an image's size, resolution, mode, memsize etc. * app/dialogs/Makefile.am * app/dialogs/image-properties-dialog.[ch]: a dialog keeping the widget. * app/widgets/gimphelp-ids.h: a help ID for the dialog. * app/actions/image-actions.c * app/actions/image-commands.[ch] * menus/image-menu.xml.in: action and menu entry for the dialog.
This commit is contained in:
parent
07412d61c9
commit
dba31b149c
13 changed files with 594 additions and 1 deletions
|
@ -52,6 +52,7 @@
|
|||
#include "dialogs/grid-dialog.h"
|
||||
#include "dialogs/image-merge-layers-dialog.h"
|
||||
#include "dialogs/image-new-dialog.h"
|
||||
#include "dialogs/image-properties-dialog.h"
|
||||
#include "dialogs/image-scale-dialog.h"
|
||||
#include "dialogs/print-size-dialog.h"
|
||||
#include "dialogs/resize-dialog.h"
|
||||
|
@ -420,6 +421,29 @@ image_configure_grid_cmd_callback (GtkAction *action,
|
|||
gtk_window_present (GTK_WINDOW (shell->grid_dialog));
|
||||
}
|
||||
|
||||
void
|
||||
image_properties_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpDisplay *gdisp;
|
||||
GimpDisplayShell *shell;
|
||||
GimpImage *gimage;
|
||||
GtkWidget *dialog;
|
||||
return_if_no_display (gdisp, data);
|
||||
|
||||
shell = GIMP_DISPLAY_SHELL (gdisp->shell);
|
||||
gimage = gdisp->gimage;
|
||||
|
||||
dialog = image_properties_dialog_new (gdisp->gimage, gdisp->shell);
|
||||
|
||||
gtk_window_set_transient_for (GTK_WINDOW (dialog),
|
||||
GTK_WINDOW (gdisp->shell));
|
||||
gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog),
|
||||
TRUE);
|
||||
|
||||
gtk_window_present (GTK_WINDOW (dialog));
|
||||
}
|
||||
|
||||
|
||||
/* private functions */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue