openbsd-ports/x11/gnome/moserial/patches/patch-src_MainWindow_c
jasper af530959b2 import moserial 2.32.1
moserial is a clean, friendly gtk-based serial terminal for the gnome
desktop. It is written in Vala for extra goodness.

 - ASCII and HEX views of incoming and outgoing data
 - Logging to file of incoming and/or outgoing data
 - Support for x, y, and z-modem file send and receive
 - Support for profile files, to load/save common configurations
 - Easier to use than the alternatives
 - Supports i18n

feedback/ok aja@
2011-07-04 10:00:38 +00:00

16 lines
1.2 KiB
Plaintext

$OpenBSD: patch-src_MainWindow_c,v 1.1.1.1 2011/07/04 10:00:38 jasper Exp $
Tweak message if the device can't be opened.
--- src/MainWindow.c.orig Thu May 19 17:13:24 2011
+++ src/MainWindow.c Sat Jul 2 18:24:05 2011
@@ -1347,7 +1347,7 @@ static gboolean moserial_main_window_startConnection (
GtkMessageDialog* _tmp1_;
GtkMessageDialog* dialog;
gtk_toggle_tool_button_set_active (self->priv->connectButton, FALSE);
- dialog = (_tmp1_ = g_object_ref_sink ((GtkMessageDialog*) gtk_message_dialog_new (self->priv->gtkWindow, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _tmp0_ = g_strdup_printf ("%s: %s", _ ("Error: Could not open device"), settings_get_device (self->priv->currentSettings)))), _g_free0 (_tmp0_), _tmp1_);
+ dialog = (_tmp1_ = g_object_ref_sink ((GtkMessageDialog*) gtk_message_dialog_new (self->priv->gtkWindow, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _tmp0_ = g_strdup_printf ("%s: %s\n%s", _ ("Error: Could not open device"), settings_get_device (self->priv->currentSettings), _ ("Make sure you are a member of the dialer group")))), _g_free0 (_tmp0_), _tmp1_);
gtk_dialog_run ((GtkDialog*) dialog);
gtk_object_destroy ((GtkObject*) dialog);
result = FALSE;