aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2006-10-19 06:29:13 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2006-10-19 06:29:13 +0000
commit4f5a48c4f62cca7b33fb5757c9538d495de99282 (patch)
tree37a7f78b33060abf7f74fe77c0389f57d306a4ec /gtk
parent658fbf4314dae41e8926672985527dbc21ca98e0 (diff)
Adding license tab to about dialog
svn path=/trunk/; revision=19601
Diffstat (limited to 'gtk')
-rw-r--r--gtk/about_dlg.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/gtk/about_dlg.c b/gtk/about_dlg.c
index 3cd0ffe747..358ecfe3f3 100644
--- a/gtk/about_dlg.c
+++ b/gtk/about_dlg.c
@@ -20,7 +20,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
@@ -268,6 +268,19 @@ about_folders_page_new(void)
return scrolledwindow;
}
+#if GTK_MAJOR_VERSION >= 2 || GTK_MINOR_VERSION >= 3
+static GtkWidget *
+about_license_page_new(void)
+{
+ GtkWidget *page;
+ char *absolute_path;
+
+ absolute_path = get_datafile_path("COPYING");
+ page = text_page_new(absolute_path);
+
+ return page;
+}
+#endif
void
about_wireshark_cb( GtkWidget *w _U_, gpointer data _U_ )
@@ -276,7 +289,7 @@ about_wireshark_cb( GtkWidget *w _U_, gpointer data _U_ )
GtkWidget *page_lb, *about_page, *folders_page, *plugins_page;
#if GTK_MAJOR_VERSION >= 2 || GTK_MINOR_VERSION >= 3
- GtkWidget *authors_page;
+ GtkWidget *authors_page, *license_page;
#endif
if (about_wireshark_w != NULL) {
@@ -331,6 +344,12 @@ about_wireshark_cb( GtkWidget *w _U_, gpointer data _U_ )
gtk_notebook_append_page(GTK_NOTEBOOK(main_nb), plugins_page, page_lb);
#endif
+#if GTK_MAJOR_VERSION >= 2 || GTK_MINOR_VERSION >= 3
+ license_page = about_license_page_new();
+ page_lb = gtk_label_new("License");
+ gtk_notebook_append_page(GTK_NOTEBOOK(main_nb), license_page, page_lb);
+#endif
+
/* Button row */
bbox = dlg_button_row_new(GTK_STOCK_OK, NULL);
gtk_box_pack_start(GTK_BOX(main_vb), bbox, FALSE, FALSE, 0);