[Frugalware-darcs] fw-control-center: gnetconfig: display a gui error when gnetconfig is not run as root.

Priyank priyank at frugalware.org
Sun Jun 10 16:06:43 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=fw-control-center;a=darcs_commitdiff;h=20070610111317-5ce2c-0d1441a6d47c0fe81adc5362bde82b04bbe078fd.gz;

[gnetconfig: display a gui error when gnetconfig is not run as root.
Priyank <priyank at frugalware.org>**20070610111317] {
hunk ./gnetconfig/src/gnetconfig.c 51
-	/* FIX ME */	
hunk ./gnetconfig/src/gnetconfig.c 53
-		g_error (_("Gnetconfig should be run as root."));
+		GtkWidget *dlg;
+		dlg = gtk_message_dialog_new (NULL,
+						GTK_DIALOG_DESTROY_WITH_PARENT,
+						GTK_MESSAGE_ERROR,
+						GTK_BUTTONS_CLOSE,
+						s_("Gnetconfig should be run as root."));
+		gtk_dialog_run (GTK_DIALOG(dlg));
+		gtk_widget_destroy (dlg);
}


More information about the Frugalware-darcs mailing list