app/display/gimpdisplayshell.c app/display/gimpdisplayshell-title.c
2008-03-19 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayshell.c * app/display/gimpdisplayshell-title.c * app/display/gimpstatusbar.[ch]: hide/show the cursor label and the unit and scale combo-boxes. svn path=/trunk/; revision=25125
This commit is contained in:

committed by
Sven Neumann

parent
a098b12f55
commit
e81f857482
@ -1,3 +1,10 @@
|
|||||||
|
2008-03-19 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/display/gimpdisplayshell.c
|
||||||
|
* app/display/gimpdisplayshell-title.c
|
||||||
|
* app/display/gimpstatusbar.[ch]: hide/show the cursor label and
|
||||||
|
the unit and scale combo-boxes.
|
||||||
|
|
||||||
2008-03-19 Michael Natterer <mitch@gimp.org>
|
2008-03-19 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/display/gimpdisplay.[ch]: add gimp_display_empty()/fill()
|
* app/display/gimpdisplay.[ch]: add gimp_display_empty()/fill()
|
||||||
|
@ -115,7 +115,7 @@ gimp_display_shell_update_title_idle (gpointer data)
|
|||||||
gdk_window_set_title (GTK_WIDGET (shell)->window, GIMP_NAME);
|
gdk_window_set_title (GTK_WIDGET (shell)->window, GIMP_NAME);
|
||||||
|
|
||||||
gimp_statusbar_replace (GIMP_STATUSBAR (shell->statusbar), "title",
|
gimp_statusbar_replace (GIMP_STATUSBAR (shell->statusbar), "title",
|
||||||
"%s", "");
|
"%s", _(" "));
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -1121,6 +1121,8 @@ gimp_display_shell_empty (GimpDisplayShell *shell)
|
|||||||
gimp_display_shell_scale_setup (shell);
|
gimp_display_shell_scale_setup (shell);
|
||||||
gimp_display_shell_scaled (shell);
|
gimp_display_shell_scaled (shell);
|
||||||
|
|
||||||
|
gimp_statusbar_empty (GIMP_STATUSBAR (shell->statusbar));
|
||||||
|
|
||||||
gimp_display_shell_appearance_update (shell);
|
gimp_display_shell_appearance_update (shell);
|
||||||
|
|
||||||
gimp_display_shell_expose_full (shell);
|
gimp_display_shell_expose_full (shell);
|
||||||
@ -1143,6 +1145,8 @@ gimp_display_shell_fill (GimpDisplayShell *shell,
|
|||||||
gimp_display_shell_set_initial_scale (shell, scale,
|
gimp_display_shell_set_initial_scale (shell, scale,
|
||||||
&display_width, &display_height);
|
&display_width, &display_height);
|
||||||
|
|
||||||
|
gimp_statusbar_fill (GIMP_STATUSBAR (shell->statusbar));
|
||||||
|
|
||||||
gimp_display_shell_appearance_update (shell);
|
gimp_display_shell_appearance_update (shell);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -532,6 +532,26 @@ gimp_statusbar_set_visible (GimpStatusbar *statusbar,
|
|||||||
gtk_widget_hide (GTK_WIDGET (statusbar));
|
gtk_widget_hide (GTK_WIDGET (statusbar));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gimp_statusbar_empty (GimpStatusbar *statusbar)
|
||||||
|
{
|
||||||
|
g_return_if_fail (GIMP_IS_STATUSBAR (statusbar));
|
||||||
|
|
||||||
|
gtk_widget_hide (statusbar->cursor_frame);
|
||||||
|
gtk_widget_hide (statusbar->unit_combo);
|
||||||
|
gtk_widget_hide (statusbar->scale_combo);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gimp_statusbar_fill (GimpStatusbar *statusbar)
|
||||||
|
{
|
||||||
|
g_return_if_fail (GIMP_IS_STATUSBAR (statusbar));
|
||||||
|
|
||||||
|
gtk_widget_show (statusbar->cursor_frame);
|
||||||
|
gtk_widget_show (statusbar->unit_combo);
|
||||||
|
gtk_widget_show (statusbar->scale_combo);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gimp_statusbar_push (GimpStatusbar *statusbar,
|
gimp_statusbar_push (GimpStatusbar *statusbar,
|
||||||
const gchar *context,
|
const gchar *context,
|
||||||
|
@ -77,6 +77,8 @@ GtkWidget * gimp_statusbar_new (GimpDisplayShell *shell);
|
|||||||
gboolean gimp_statusbar_get_visible (GimpStatusbar *statusbar);
|
gboolean gimp_statusbar_get_visible (GimpStatusbar *statusbar);
|
||||||
void gimp_statusbar_set_visible (GimpStatusbar *statusbar,
|
void gimp_statusbar_set_visible (GimpStatusbar *statusbar,
|
||||||
gboolean visible);
|
gboolean visible);
|
||||||
|
void gimp_statusbar_empty (GimpStatusbar *statusbar);
|
||||||
|
void gimp_statusbar_fill (GimpStatusbar *statusbar);
|
||||||
|
|
||||||
void gimp_statusbar_push (GimpStatusbar *statusbar,
|
void gimp_statusbar_push (GimpStatusbar *statusbar,
|
||||||
const gchar *context,
|
const gchar *context,
|
||||||
|
Reference in New Issue
Block a user