[Kazehakase-cvs] CVS update: kazehakase/src/dialogs

Zurück zum Archiv-Index

Kouhei Sutou kous****@users*****
Mon Sep 18 12:09:33 JST 2006


Index: kazehakase/src/dialogs/Makefile.am
diff -u kazehakase/src/dialogs/Makefile.am:1.7 kazehakase/src/dialogs/Makefile.am:1.8
--- kazehakase/src/dialogs/Makefile.am:1.7	Sun Apr 30 19:22:09 2006
+++ kazehakase/src/dialogs/Makefile.am	Mon Sep 18 12:09:33 2006
@@ -15,6 +15,7 @@
 
 AM_CPPFLAGS= \
 	-DKZ_DATADIR=\""$(datadir)/$(PACKAGE)"\" \
+	-DKZ_BACKENDS=\""$(KZ_BACKENDS)"\" \
 	-DGTK_DISABLE_DEPRECATED=1 \
 	-DGDK_DISABLE_DEPRECATED=1 \
 	-DG_LOG_DOMAIN=\"Kazehakase-Dialogs\" \
Index: kazehakase/src/dialogs/kz-about-dialog.c
diff -u kazehakase/src/dialogs/kz-about-dialog.c:1.7 kazehakase/src/dialogs/kz-about-dialog.c:1.8
--- kazehakase/src/dialogs/kz-about-dialog.c:1.7	Wed Mar 29 21:53:03 2006
+++ kazehakase/src/dialogs/kz-about-dialog.c	Mon Sep 18 12:09:33 2006
@@ -45,9 +45,9 @@
 static gboolean
 cb_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data)
 {
-	PangoLayout *copyright_layout, *version_layout;
+	PangoLayout *copyright_layout, *info_layout;
 	PangoRectangle link, logical;
-	gchar *version;
+	gchar *version, *powered_by, *info;
 
 	/* Draw background image */
 	gdk_draw_pixbuf(widget->window,
@@ -67,18 +67,21 @@
 			-1,-1, 
 			GDK_RGB_DITHER_NORMAL,
 			0, 0);
-	/* Draw version under the logo */
-	version = g_strdup_printf ("version %s", VERSION);
-	version_layout = gtk_widget_create_pango_layout (widget, 
-							 version);
-	pango_layout_set_alignment(version_layout, PANGO_ALIGN_RIGHT);
-	pango_layout_get_pixel_extents(version_layout, &link, &logical);
+	/* Draw version and backends under the logo */
+	version = g_strdup_printf (_("Version %s"), VERSION);
+	powered_by = g_strdup_printf (_("Powered by %s"), KZ_BACKENDS);
+	info = g_strdup_printf ("%s\n%s", version, powered_by);
+	info_layout = gtk_widget_create_pango_layout (widget, info);
+	pango_layout_set_alignment(info_layout, PANGO_ALIGN_RIGHT);
+	pango_layout_get_pixel_extents(info_layout, &link, &logical);
 	gdk_draw_layout(widget->window,
 			widget->style->fg_gc[GTK_WIDGET_STATE(widget)],
 			bg_width - logical.width, logo_height,
-			version_layout);
+			info_layout);
 	g_free (version);
-	g_object_unref(version_layout);
+	g_free (powered_by);
+	g_free (info);
+	g_object_unref(info_layout);
 
 	/* Draw copyright at bottom right */
 	copyright_layout = gtk_widget_create_pango_layout (widget, 


More information about the Kazehakase-cvs mailing list
Zurück zum Archiv-Index