Mercurial > geeqie
diff src/layout.c @ 288:d1f74154463e
Replace occurences of Geeqie / geeqie by constants defined in main.h.
author | zas_ |
---|---|
date | Wed, 09 Apr 2008 13:53:01 +0000 |
parents | 9995c5fb202a |
children | 6a7298988a7a |
line wrap: on
line diff
--- a/src/layout.c Tue Apr 08 23:41:01 2008 +0000 +++ b/src/layout.c Wed Apr 09 13:53:01 2008 +0000 @@ -373,6 +373,14 @@ static void layout_color_button_press_cb(GtkWidget *widget, gpointer data) { +#ifndef HAVE_LCMS + gchar *msg = g_strdup_printf(_("This installation of %s was not built with support for color profiles."), GQ_APPNAME); + file_util_warning_dialog(_("Color profiles not supported"), + msg, + GTK_STOCK_DIALOG_INFO, widget); + g_free(msg); + return; +#else LayoutWindow *lw = data; GtkWidget *menu; GtkWidget *item; @@ -385,13 +393,6 @@ gint use_image = 0; gint i; -#ifndef HAVE_LCMS - file_util_warning_dialog(_("Color profiles not supported"), - _("This installation of Geeqie was not built with support for color profiles."), - GTK_STOCK_DIALOG_INFO, widget); - return; -#endif - if (!layout_image_color_profile_get(lw, &input, &screen, &use_image)) return; menu = popup_menu_short_lived(); @@ -454,6 +455,7 @@ gtk_widget_set_sensitive(item, active && color_profile_screen_file); gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, GDK_CURRENT_TIME); +#endif /* HAVE_LCMS */ } static GtkWidget *layout_color_button(LayoutWindow *lw) @@ -1338,7 +1340,11 @@ gtk_window_set_resizable(GTK_WINDOW(lw->tools), TRUE); - gtk_window_set_title(GTK_WINDOW(lw->tools), _("Geeqie Tools")); + { + gchar *title = g_strdup_printf("%s - %s", _("Tools"), GQ_APPNAME); + gtk_window_set_title(GTK_WINDOW(lw->tools), title); + g_free(title); + } gtk_window_set_wmclass(GTK_WINDOW(lw->tools), "tools", GQ_WMCLASS); gtk_container_set_border_width(GTK_CONTAINER(lw->tools), 0); @@ -1927,7 +1933,7 @@ lw->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_resizable(GTK_WINDOW(lw->window), TRUE); - gtk_window_set_title(GTK_WINDOW(lw->window), "Geeqie"); + gtk_window_set_title(GTK_WINDOW(lw->window), GQ_APPNAME); gtk_window_set_wmclass(GTK_WINDOW(lw->window), GQ_WMCLASS, GQ_WMCLASS); gtk_container_set_border_width(GTK_CONTAINER(lw->window), 0);