added a sanity check.
2008-04-14 Sven Neumann <sven@gimp.org> * app/display/gimpstatusbar.c (gimp_statusbar_label_expose): added a sanity check. * app/display/gimpdisplayshell-layer-select.c: formatting. svn path=/trunk/; revision=25478
This commit is contained in:
committed by
Sven Neumann
parent
e7c5bf8086
commit
c88bd263e0
@ -1,3 +1,10 @@
|
||||
2008-04-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpstatusbar.c (gimp_statusbar_label_expose): added
|
||||
a sanity check.
|
||||
|
||||
* app/display/gimpdisplayshell-layer-select.c: formatting.
|
||||
|
||||
2008-04-14 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpstatusbar.[ch]: added stock-id parameters to all
|
||||
|
||||
@ -85,7 +85,7 @@ gimp_display_shell_layer_select_init (GimpDisplayShell *shell,
|
||||
return;
|
||||
|
||||
layer_select = layer_select_new (image, layer,
|
||||
GIMP_CORE_CONFIG (shell->display->config)->layer_preview_size);
|
||||
image->gimp->config->layer_preview_size);
|
||||
layer_select_advance (layer_select, move);
|
||||
|
||||
gtk_window_set_screen (GTK_WINDOW (layer_select->shell),
|
||||
|
||||
@ -1163,8 +1163,9 @@ gimp_statusbar_label_expose (GtkWidget *widget,
|
||||
if (! stock_id)
|
||||
return FALSE;
|
||||
|
||||
pixbuf = gtk_widget_render_icon (widget, stock_id,
|
||||
GTK_ICON_SIZE_MENU, NULL);
|
||||
pixbuf = gtk_widget_render_icon (widget, stock_id, GTK_ICON_SIZE_MENU, NULL);
|
||||
|
||||
g_return_val_if_fail (pixbuf != NULL, FALSE);
|
||||
|
||||
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user