about box patch
- From: Jeroen Zwartepoorte <Jeroen xs4all nl>
- To: gnome-devtools gnome org
- Subject: about box patch
- Date: 25 Jun 2001 23:46:50 +0200
Hi all,
Here's a patch to add an about box to gIDE (i'm starting with something
simple)
Jeroen
Index: src/gI_window.c
===================================================================
RCS file: /cvs/gnome/gIDE/src/gI_window.c,v
retrieving revision 1.32
diff -u -c -r1.32 gI_window.c
*** src/gI_window.c 2001/06/21 03:01:33 1.32
--- src/gI_window.c 2001/06/25 21:39:06
***************
*** 38,43 ****
--- 38,59 ----
gtk_main_quit ();
}
+ static void
+ about_gide (GtkWidget *w, GideWindow *window)
+ {
+ static const gchar *authors[] = {"Steffen Kern",
+ "JP Rosevear",
+ "Dirk Vangestel",
+ NULL};
+
+ GtkWidget *about = gnome_about_new ( _("gIDE"),
+ VERSION,
+ _("Copyright Stefan Kern (C) 1998-2000"),
+ authors,
+ "A Gnome based IDE",
+ NULL);
+ gtk_widget_show (about);
+ }
/* Menu verbs */
static BonoboUIVerb verbs [] = {
***************
*** 45,52 ****
#if 0
BONOBO_UI_UNSAFE_VERB ("ToolsPlugins", dialog_plugin_manager),
BONOBO_UI_UNSAFE_VERB ("SettingsSettings", dialog_prefs_cb),
- BONOBO_UI_UNSAFE_VERB ("HelpAbout", about_gide),
#endif
BONOBO_UI_VERB_END
};
--- 61,68 ----
#if 0
BONOBO_UI_UNSAFE_VERB ("ToolsPlugins", dialog_plugin_manager),
BONOBO_UI_UNSAFE_VERB ("SettingsSettings", dialog_prefs_cb),
#endif
+ BONOBO_UI_UNSAFE_VERB ("HelpAbout", about_gide),
BONOBO_UI_VERB_END
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]