[Frugalware-darcs] fw-control-center: gnetconfig: reuse error dialog.

Priyank priyank at frugalware.org
Sun Jun 10 21:18:46 CEST 2007


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

[gnetconfig: reuse error dialog.
Priyank <priyank at frugalware.org>**20070610191725
 * Use gn_error() wherever possible.
] {
hunk ./gnetconfig/src/gnetconfig.c 53
-		GtkWidget *dlg;
-		dlg = gtk_message_dialog_new (NULL,
-						GTK_DIALOG_DESTROY_WITH_PARENT,
-						GTK_MESSAGE_ERROR,
-						GTK_BUTTONS_CLOSE,
-						_("Gnetconfig should be run as root."));
-		gtk_dialog_run (GTK_DIALOG(dlg));
-		gtk_widget_destroy (dlg);
+		gn_error (_("Gnetconfig should be run as root."), ERROR_GUI);
}


More information about the Frugalware-darcs mailing list