forked from AuroraMiddleware/gtk
Set the program-name property of the about dialog.
* demos/gtk-demo/appwindow.c: Set the program-name property of the about dialog. * docs/tools/widgets.c: Add GtkAboutDialog svn path=/trunk/; revision=22427
This commit is contained in:
parent
7ab372c6ca
commit
f3f4fec8db
@ -1,3 +1,10 @@
|
||||
2009-03-01 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* demos/gtk-demo/appwindow.c: Set the program-name property
|
||||
of the about dialog.
|
||||
|
||||
* docs/tools/widgets.c: Add GtkAboutDialog
|
||||
|
||||
2009-02-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 572273 – No replacement documented for gtk_action_connect_proxy()
|
||||
|
@ -132,9 +132,9 @@ about_cb (GtkAction *action,
|
||||
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.",
|
||||
|
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -295,6 +295,7 @@ HTML_IMAGES = \
|
||||
$(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 \
|
||||
|
BIN
docs/reference/gtk/images/aboutdialog.png
Normal file
BIN
docs/reference/gtk/images/aboutdialog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 9.5 KiB |
@ -1,10 +1,11 @@
|
||||
#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
|
||||
@ -765,9 +766,37 @@ create_message_dialog (void)
|
||||
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 *
|
||||
@ -956,6 +985,7 @@ get_all_widgets (void)
|
||||
{
|
||||
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 ());
|
||||
|
Loading…
Reference in New Issue
Block a user