comparison src/layout.c @ 270:67db7e4505c6

Move active variable affectation after the test.
author zas_
date Tue, 08 Apr 2008 15:53:03 +0000
parents dca6c0b9f862
children e0e2c2b72c5a
comparison
equal deleted inserted replaced
269:dca6c0b9f862 270:67db7e4505c6
389 _("This installation of Geeqie was not built with support for color profiles."), 389 _("This installation of Geeqie was not built with support for color profiles."),
390 GTK_STOCK_DIALOG_INFO, widget); 390 GTK_STOCK_DIALOG_INFO, widget);
391 return; 391 return;
392 #endif 392 #endif
393 393
394 if (!layout_image_color_profile_get(lw, &input, &screen, &use_image)) return;
395
396 menu = popup_menu_short_lived();
397
394 active = layout_image_color_profile_get_use(lw); 398 active = layout_image_color_profile_get_use(lw);
395 if (!layout_image_color_profile_get(lw, &input, &screen, &use_image)) return;
396
397 menu = popup_menu_short_lived();
398
399 menu_item_add_check(menu, _("Use _color profiles"), active, 399 menu_item_add_check(menu, _("Use _color profiles"), active,
400 G_CALLBACK(layout_color_menu_enable_cb), lw); 400 G_CALLBACK(layout_color_menu_enable_cb), lw);
401 401
402 menu_item_add_divider(menu); 402 menu_item_add_divider(menu);
403 403