[vinagre] Make "Add to bookmarks" work again
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Subject: [vinagre] Make "Add to bookmarks" work again
- Date: Mon, 27 Jul 2009 12:04:37 +0000 (UTC)
commit 09603fd71a9b9f333c2a202a96d1ad485d8d9e09
Author: Jonh Wendell <jwendell gnome org>
Date: Fri Jul 24 10:22:06 2009 -0300
Make "Add to bookmarks" work again
vinagre/vinagre-commands.c | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/vinagre/vinagre-commands.c b/vinagre/vinagre-commands.c
index 4965c56..1cc573c 100644
--- a/vinagre/vinagre-commands.c
+++ b/vinagre/vinagre-commands.c
@@ -309,29 +309,27 @@ void
vinagre_cmd_bookmarks_add (GtkAction *action,
VinagreWindow *window)
{
- GtkWidget *tab;
+ VinagreTab *tab;
VinagreConnection *conn;
- gchar *name;
g_return_if_fail (VINAGRE_IS_WINDOW (window));
- //tab = window->priv->active_tab;
- conn = vinagre_tab_get_conn (VINAGRE_TAB (tab));
- //g_return_if_fail (VINAGRE_IS_CONNECTION (conn));
+ tab = vinagre_window_get_active_tab (window);
+ g_return_if_fail (VINAGRE_IS_TAB (tab));
+
+ conn = vinagre_tab_get_conn (tab);
+ g_return_if_fail (VINAGRE_IS_CONNECTION (conn));
vinagre_bookmarks_add (vinagre_bookmarks_get_default (),
conn,
GTK_WINDOW (window));
-/*
- if (window->priv->active_tab == tab)
+ if (vinagre_window_get_active_tab (window) == tab)
{
- name = vinagre_connection_get_best_name (conn);
- vinagre_tab_set_title (VINAGRE_TAB (window->priv->active_tab),
- name);
+ gchar *name = vinagre_connection_get_best_name (conn);
+ vinagre_tab_set_title (tab, name);
g_free (name);
}
-*/
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]