gtk_about_dialog_set_email_hook (activate_email, NULL, NULL);
gtk_about_dialog_set_url_hook (activate_url, NULL, NULL);
gtk_show_about_dialog (GTK_WINDOW (window),
- "name", "GTK+ Code Demos",
+ "program-name", "GTK+ Code Demos",
"version", PACKAGE_VERSION,
- "copyright", "(C) 1997-2005 The GTK+ Team",
+ "copyright", "(C) 1997-2009 The GTK+ Team",
"license", license,
"website", "http://www.gtk.org",
"comments", "Program to demonstrate GTK+ functions.",
+2009-03-01 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/images/messagedialog.png: Fix this image
+
+ * gtk/images/aboutdialog.png: New image
+ * gtk/Makefile.am: Add it here.
+ * gtk/visual_index.xml: And here.
+
2009-02-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk-sections.txt: Add gtk_window_get_default_icon_name
$(top_srcdir)/gtk/stock-icons/24/gtk-fullscreen.png \
$(top_srcdir)/gtk/stock-icons/24/gtk-leave-fullscreen.png \
$(top_srcdir)/gtk/stock-icons/24/gtk-info.png \
+ $(srcdir)/images/aboutdialog.png \
$(srcdir)/images/accel-label.png \
$(srcdir)/images/assistant.png \
$(srcdir)/images/button.png \
+#include "config.h"
+
#include <gtk/gtkunixprint.h>
#include <gdk/gdkkeysyms.h>
#include <X11/Xatom.h>
#include <gdkx.h>
#include "widgets.h"
-
#define SMALL_WIDTH 240
#define SMALL_HEIGHT 75
#define MEDIUM_WIDTH 240
GTK_MESSAGE_INFO,
GTK_BUTTONS_OK,
NULL);
+ gtk_window_set_icon_name (GTK_WINDOW (widget), "gtk-copy");
gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (widget),
"<b>Message Dialog</b>\n\nWith secondary text");
- return new_widget_info ("messagedialog", widget, MEDIUM);
+ return new_widget_info ("messagedialog", widget, ASIS);
+}
+
+static WidgetInfo *
+create_about_dialog (void)
+{
+ GtkWidget *widget;
+ const gchar *authors[] = {
+ "Peter Mattis",
+ "Spencer Kimball",
+ "Josh MacDonald",
+ "and many more...",
+ NULL
+ };
+
+ widget = gtk_about_dialog_new ();
+ g_object_set (widget,
+ "program-name", "GTK+ Code Demos",
+ "version", PACKAGE_VERSION,
+ "copyright", "(C) 1997-2009 The GTK+ Team",
+ "website", "http://www.gtk.org",
+ "comments", "Program to demonstrate GTK+ functions.",
+ "logo-icon-name", "gtk-about",
+ "title", "About GTK+ Code Demos",
+ "authors", authors,
+ NULL);
+ gtk_window_set_icon_name (GTK_WINDOW (widget), "gtk-about");
+ return new_widget_info ("aboutdialog", widget, ASIS);
}
static WidgetInfo *
{
GList *retval = NULL;
+ retval = g_list_prepend (retval, create_about_dialog ());
retval = g_list_prepend (retval, create_accel_label ());
retval = g_list_prepend (retval, create_button ());
retval = g_list_prepend (retval, create_check_button ());