openbsd-ports/x11/gnome/moserial/patches/patch-src_MainWindow_c
2011-10-05 16:55:43 +00:00

25 lines
1.0 KiB
Plaintext

$OpenBSD: patch-src_MainWindow_c,v 1.3 2011/10/05 16:55:43 jasper Exp $
Tweak message if the device can't be opened.
--- src/MainWindow.c.orig Wed Oct 5 17:06:42 2011
+++ src/MainWindow.c Wed Oct 5 17:08:12 2011
@@ -1381,6 +1381,7 @@ void moserial_main_window_startRecording (moserialMain
{
GError * e;
const gchar* _tmp3_ = NULL;
+ const gchar* _tmp31_ = NULL;
gchar* _tmp4_ = NULL;
gchar* _tmp5_;
GtkMessageDialog* _tmp6_ = NULL;
@@ -1389,7 +1390,8 @@ void moserial_main_window_startRecording (moserialMain
e = _inner_error_;
_inner_error_ = NULL;
_tmp3_ = _ ("Error: Could not open file");
- _tmp4_ = g_strdup_printf ("%s: %s\n%s", _tmp3_, filename, e->message);
+ _tmp31_ = _ ("Make sure you are a member of the dialer group");
+ _tmp4_ = g_strdup_printf ("%s: %s\n%s\n%s", _tmp3_, filename, e->message, _tmp31_);
_tmp5_ = _tmp4_;
_tmp6_ = (GtkMessageDialog*) gtk_message_dialog_new (self->priv->gtkWindow, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _tmp5_);
_tmp7_ = g_object_ref_sink (_tmp6_);