xchat-gnome r2657 - in trunk: . src/fe-gnome
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: xchat-gnome r2657 - in trunk: . src/fe-gnome
- Date: Sun, 7 Sep 2008 13:59:08 +0000 (UTC)
Author: chpe
Date: Sun Sep 7 13:59:07 2008
New Revision: 2657
URL: http://svn.gnome.org/viewvc/xchat-gnome?rev=2657&view=rev
Log:
Bug 503871 â press Ctrl+o opens a browser with a url
'http://www.(null).com/'
* src/fe-gnome/conversation-panel.c: (open_url): Don't do anything
when nothing it selected.
Modified:
trunk/ChangeLog
trunk/src/fe-gnome/conversation-panel.c
Modified: trunk/src/fe-gnome/conversation-panel.c
==============================================================================
--- trunk/src/fe-gnome/conversation-panel.c (original)
+++ trunk/src/fe-gnome/conversation-panel.c Sun Sep 7 13:59:07 2008
@@ -666,8 +666,13 @@
static void
open_url (GtkAction *action, ConversationPanel *panel)
{
+ ConversationPanelPriv *priv = panel->priv;
+
+ if (!priv->selected_word || !priv->selected_word[0])
+ return;
+
char *command;
- command = g_strdup_printf ("URL %s", panel->priv->selected_word);
+ command = g_strdup_printf ("URL %s", priv->selected_word);
handle_command (gui.current_session, command, 1);
g_free (command);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]