set default window icon and application name install icons use
2007-01-09 Vincent Untz <vuntz@gnome.org> * main.c: (main): set default window icon and application name * Makefile.am: install icons * drwright.c: (popup_about_cb): use gtk_about_dialog_show() * typing-monitor.png: * typing-monitor.svn: new Fix bug #348641, icon by Andreas Nilsson <nisses.mail@home.se>, patch by Luca Cavalli <luca.cavalli@gmail.com> svn path=/trunk/; revision=7124
This commit is contained in:
parent
dbf78025be
commit
0bbfe98c03
6 changed files with 376 additions and 35 deletions
|
@ -593,48 +593,23 @@ popup_about_cb (gpointer callback_data,
|
|||
guint action,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
static GtkWidget *about_window;
|
||||
GdkPixbuf *icon;
|
||||
char *authors [] = {
|
||||
gint i;
|
||||
gchar *authors[] = {
|
||||
N_("Written by Richard Hult <richard@imendio.com>"),
|
||||
N_("Eye candy added by Anders Carlsson"),
|
||||
NULL
|
||||
};
|
||||
int i;
|
||||
|
||||
if (about_window) {
|
||||
gtk_window_present (GTK_WINDOW (about_window));
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; authors [i]; i++)
|
||||
authors [i] = _(authors [i]);
|
||||
|
||||
about_window = gtk_about_dialog_new ();
|
||||
|
||||
g_signal_connect (about_window,
|
||||
"destroy",
|
||||
G_CALLBACK (gtk_widget_destroyed),
|
||||
&about_window);
|
||||
|
||||
icon = NULL; /*gdk_pixbuf_new_from_file (IMAGEDIR "/bar.png", NULL);*/
|
||||
|
||||
g_object_set (about_window,
|
||||
"name", _("Typing Monitor"),
|
||||
"version", VERSION,
|
||||
"comments", _("A computer break reminder."),
|
||||
"authors", authors,
|
||||
"logo", icon,
|
||||
NULL);
|
||||
|
||||
if (icon != NULL)
|
||||
g_object_unref (icon);
|
||||
|
||||
g_signal_connect (about_window,
|
||||
"response", G_CALLBACK (gtk_widget_destroy),
|
||||
NULL);
|
||||
|
||||
gtk_widget_show (about_window);
|
||||
gtk_show_about_dialog (NULL,
|
||||
"authors", authors,
|
||||
"comments", _("A computer break reminder."),
|
||||
"logo-icon-name", "typing-monitor",
|
||||
"translator-credits", _("translator-credits"),
|
||||
"version", VERSION,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue