telegnome r20 - in trunk: . po src
- From: cjwatson svn gnome org
- To: svn-commits-list gnome org
- Subject: telegnome r20 - in trunk: . po src
- Date: Sun, 24 Feb 2008 10:07:17 +0000 (GMT)
Author: cjwatson
Date: Sun Feb 24 10:07:17 2008
New Revision: 20
URL: http://svn.gnome.org/viewvc/telegnome?rev=20&view=rev
Log:
* configure.in (PKG_CHECK_MODULES): Require gtk+-2.0 >= 2.12.
* src/gui.c (cb_about): Convert from GnomeAbout to GtkAboutDialog.
* po/*.po: Update.
Modified:
trunk/ChangeLog
trunk/configure.in
trunk/po/az.po
trunk/po/fr.po
trunk/po/it.po
trunk/po/nl.po
trunk/po/ru.po
trunk/po/sv.po
trunk/po/zh_CN.po
trunk/src/gui.c
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Sun Feb 24 10:07:17 2008
@@ -17,7 +17,7 @@
AC_HEADER_STDC
AC_PROG_INSTALL
-PKG_CHECK_MODULES([TELEGNOME], [glib-2.0 gdk-pixbuf-2.0 libgnomeui-2.0 gnome-vfs-2.0])
+PKG_CHECK_MODULES([TELEGNOME], [glib-2.0 gtk+-2.0 >= 2.12 gdk-pixbuf-2.0 libgnomeui-2.0 gnome-vfs-2.0])
PROGRAMS_TELEGNOME="telegnome"
AC_SUBST(PROGRAMS_TELEGNOME)
Modified: trunk/src/gui.c
==============================================================================
--- trunk/src/gui.c (original)
+++ trunk/src/gui.c Sun Feb 24 10:07:17 2008
@@ -533,21 +533,30 @@
return;
}
- about= gnome_about_new (PACKAGE, VERSION,
- "(C) 1999, 2000 Dirk-Jan C. Binnema, Arjan Scherpenisse; (C) 2008 Colin Watson",
- _("Teletext for GNOME\nReleased under the terms of the GPL"),
- authors, NULL, NULL,
- NULL);
-
- gnome_dialog_set_parent(GNOME_DIALOG(about), GTK_WINDOW(gui.app));
-
- gtk_signal_connect(GTK_OBJECT(about), "destroy",
- GTK_SIGNAL_FUNC(gtk_widget_destroyed),
- &about);
-
- gtk_widget_show (GTK_WIDGET(about));
+ about = gtk_about_dialog_new();
+ g_object_set(
+ about,
+ "program-name", PACKAGE,
+ "version", VERSION,
+ "copyright", "\xc2\xa9 1999, 2000 Dirk-Jan C. Binnema, "
+ "Arjan Scherpenisse; "
+ "\xc2\xa9 2008 Colin Watson",
+ "comments", _("Teletext for GNOME"),
+ "license", _("GNU General Public License, version 2 or later"),
+ "website", "http://telegnome.sourceforge.net/";,
+ "authors", authors,
+ "translator-credits", _("translator-credits"),
+ NULL);
+
+ gtk_window_set_transient_for(GTK_WINDOW(about), GTK_WINDOW(gui.app));
+ gtk_window_set_destroy_with_parent(GTK_WINDOW(about), TRUE);
+
+ g_signal_connect(about, "destroy", G_CALLBACK(gtk_widget_destroyed),
+ &about);
+ g_signal_connect(about, "response", G_CALLBACK(gtk_widget_destroy),
+ NULL);
-
+ gtk_widget_show(about);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]