[gimp] Don't set any options in gimp_display_shell_new()
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Don't set any options in gimp_display_shell_new()
- Date: Tue, 29 Sep 2009 18:41:02 +0000 (UTC)
commit 45f4a9933904404123e70aabed6bf141ba397bc7
Author: Michael Natterer <mitch gimp org>
Date: Sat Sep 26 00:55:07 2009 +0200
Don't set any options in gimp_display_shell_new()
All options are properly set when the shell is set active in its image
window.
app/display/gimpdisplayshell.c | 41 +--------------------------------------
1 files changed, 2 insertions(+), 39 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index 5e1dfcd..b764b8d 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -769,7 +769,6 @@ gimp_display_shell_new (GimpDisplay *display,
GimpDialogFactory *display_factory)
{
GimpDisplayShell *shell;
- GimpDisplayOptions *options;
GimpColorDisplayStack *filter;
GtkWidget *upper_hbox;
GtkWidget *right_vbox;
@@ -805,17 +804,12 @@ gimp_display_shell_new (GimpDisplay *display,
if (display->image)
{
- options = shell->options;
-
image_width = gimp_image_get_width (display->image);
image_height = gimp_image_get_height (display->image);
}
else
{
- options = shell->no_image_options;
-
- /*
- * These values are arbitrary. The width is determined by the
+ /* These values are arbitrary. The width is determined by the
* menubar and the height is chosen to give a window aspect
* ratio of roughly 3:1 (as requested by the UI team).
*/
@@ -887,17 +881,6 @@ gimp_display_shell_new (GimpDisplay *display,
/* the vbox containing all widgets */
- /* FIXME image window */
- if (GIMP_IMAGE_WINDOW (shell)->menubar)
- {
- GtkWidget *menubar = GIMP_IMAGE_WINDOW (shell)->menubar;
-
- if (options->show_menubar)
- gtk_widget_show (menubar);
- else
- gtk_widget_hide (menubar);
- }
-
/* FIXME this will be the shell */
shell->disp_vbox = gtk_vbox_new (FALSE, 1);
@@ -1139,30 +1122,10 @@ gimp_display_shell_new (GimpDisplay *display,
gtk_box_pack_start (GTK_BOX (lower_hbox),
shell->nav_ebox, FALSE, FALSE, 0);
- /* show everything *******************************************************/
-
- if (options->show_rulers)
- {
- gtk_widget_show (shell->origin);
- gtk_widget_show (shell->hrule);
- gtk_widget_show (shell->vrule);
- }
+ /* show everything that is always shwon***********************************/
gtk_widget_show (GTK_WIDGET (shell->canvas));
- if (options->show_scrollbars)
- {
- gtk_widget_show (shell->vsb);
- gtk_widget_show (shell->hsb);
- gtk_widget_show (shell->zoom_button);
- gtk_widget_show (shell->quick_mask_button);
- gtk_widget_show (shell->nav_ebox);
- }
-
- if (options->show_statusbar)
- /* FIXME image window */
- gtk_widget_show (GIMP_IMAGE_WINDOW (shell)->statusbar);
-
/* add display filter for color management */
filter = gimp_display_shell_filter_new (shell,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]