int main (int argc, char *argv[]) { GError *error; GtkWidget *dialog; bindtextdomain (GETTEXT_PACKAGE, LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); error = NULL; if (! gtk_init_with_args (&argc, &argv, " - GNOME Session Properties", options, GETTEXT_PACKAGE, &error)) { g_warning ("Unable to start: %s", error->message); g_error_free (error); return 1; } if (show_version) { g_print ("%s %s\n", argv [0], VERSION); return 0; } dialog = csm_properties_dialog_new (); g_signal_connect (dialog, "response", G_CALLBACK (dialog_response), NULL); gtk_widget_show (dialog); gtk_main (); return 0; }
int main (int argc, char *argv[]) { GError *error; GtkWidget *dialog; bindtextdomain ("cinnamon-session", "/usr/share/locale"); bind_textdomain_codeset ("cinnamon-session", "UTF-8"); textdomain ("cinnamon-session"); error = NULL; if (! gtk_init_with_args (&argc, &argv, " - Cinnamon Session Properties", options, "cinnamon-session", &error)) { g_warning ("Unable to start: %s", error->message); g_error_free (error); return 1; } if (show_version) { g_print ("%s %s\n", argv [0], VERSION); return 0; } dialog = csm_properties_dialog_new (); g_signal_connect (dialog, "response", G_CALLBACK (dialog_response), NULL); g_signal_connect (dialog, "delete-event", G_CALLBACK (gtk_widget_hide_on_delete), NULL); gtk_widget_show (dialog); gtk_main (); return 0; }