[PATCH] small xfdiff4 patch to use XfceAboutDialog

Joshua Cummings jrac at tsn.cc
Tue May 11 16:20:43 CEST 2004


I've written a patch that converts the xfdiff4 about dialog to
XfceAboutDialog. I wasn't sure about the current version number of
xfdiff, so that might need to be changed. Might also want to change the
description if it's not to anyones liking.

The only thing lacking is an icon. Any gimp gurus out there are welcome
to whip one up ;)

(patch attached)

--
Joshua Cummings

-------------- next part --------------
--- xfdiff_gui.c.org	2003-09-05 13:24:14.000000000 +1000
+++ xfdiff_gui.c	2004-05-11 23:43:22.000000000 +1000
@@ -33,6 +33,8 @@
 #include <gtk/gtk.h>
 #include <gdk/gdkx.h>
 
+#include <libxfcegui4/libxfcegui4.h>
+
 #include "../src/glade_support.h"
 
 #include "xfdiff_dlg.h"
@@ -828,9 +830,27 @@
 }
 
 static void
-cb_about (GtkWidget * item, GtkWidget * ctree)
+cb_about (GtkWidget * widget, gpointer data)
 {
-  xf_dlg_warning(diff,("This is XFDiff " XFDIFF_VERSION " (xffm-" VERSION ")\n(c) by Edscott Wilson Garcia under GNU-GPL"));
+    XfceAboutInfo *info;
+    GtkWidget *dialog;
+
+    info = xfce_about_info_new(
+	    "XFDiff",
+	    "0.1",
+	    "A patch manager for Xfce4",
+	    XFCE_COPYRIGHT_TEXT("2004", "Edscott Wilson Garcia"),
+	    XFCE_LICENSE_GPL);
+    xfce_about_info_set_homepage(info, "http://www.xfce.org");
+
+    dialog = xfce_about_dialog_new(NULL, info, NULL);
+
+    xfce_about_info_free(info);
+
+    gtk_dialog_run(GTK_DIALOG(dialog));
+
+    gtk_widget_destroy(dialog);
+
 }
 
 void


More information about the Xfce4-dev mailing list