mousetweaks r156 - in trunk: . src
- From: gerdk svn gnome org
- To: svn-commits-list gnome org
- Subject: mousetweaks r156 - in trunk: . src
- Date: Sat, 17 May 2008 12:23:58 +0100 (BST)
Author: gerdk
Date: Sat May 17 11:23:58 2008
New Revision: 156
URL: http://svn.gnome.org/viewvc/mousetweaks?rev=156&view=rev
Log:
2008-05-17 Gerd Kohlberger <gerdk svn gnome org>
* src/dwell-click-applet.c:
Show a warning if we can't launch gnome-mouse-properties.
Fix minor HIG issue in warning strings.
Modified:
trunk/ChangeLog
trunk/src/dwell-click-applet.c
Modified: trunk/src/dwell-click-applet.c
==============================================================================
--- trunk/src/dwell-click-applet.c (original)
+++ trunk/src/dwell-click-applet.c Sat May 17 11:23:58 2008
@@ -32,7 +32,6 @@
GtkWidget *box;
GtkWidget *button;
GdkPixbuf *click[4];
-
gint button_width;
gint button_height;
gint cct;
@@ -203,12 +202,21 @@
gpointer data,
const char *cname)
{
- g_spawn_command_line_async ("gnome-mouse-properties -p accessibility",
- NULL);
+ GError *error = NULL;
+
+ if (!g_spawn_command_line_async ("gnome-mouse-properties -p accessibility",
+ &error)) {
+ mt_common_show_dialog (_("Failed to Launch Mouse Preferences"),
+ error->message,
+ MT_MESSAGE_WARNING);
+ g_error_free (error);
+ }
}
static void
-help_dialog (BonoboUIComponent *component, gpointer data, const char *cname)
+help_dialog (BonoboUIComponent *component,
+ gpointer data,
+ const char *cname)
{
GError *error = NULL;
@@ -217,7 +225,7 @@
"mousetweaks",
NULL,
&error)) {
- mt_common_show_dialog (_("Couldn't display help"),
+ mt_common_show_dialog (_("Failed to Display Help"),
error->message,
MT_MESSAGE_WARNING);
g_error_free (error);
@@ -225,23 +233,21 @@
}
static void
-about_dialog (BonoboUIComponent *component, gpointer data, const char *cname)
+about_dialog (BonoboUIComponent *component,
+ gpointer data,
+ const char *cname)
{
- DwellData *dd = (DwellData *) data;
+ DwellData *dd = data;
GtkWidget *about;
about = glade_xml_get_widget (dd->xml, "about");
-
- if (GTK_WIDGET_VISIBLE (about))
- gtk_window_present (GTK_WINDOW (about));
- else
- gtk_widget_show (about);
+ gtk_window_present (GTK_WINDOW (about));
}
static void
about_response (GtkWidget *about, gint response, gpointer data)
{
- DwellData *dd = (DwellData *) data;
+ DwellData *dd = data;
gtk_widget_hide (glade_xml_get_widget (dd->xml, "about"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]