[spicy PATCH 6/6 v5] spicy: Enable recent chooser on windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Recent chooser is working correctly in windows.
---
Changes since v3
 - Reworded commit message
    - Old one suggested, recent chooser doesn't work in gtk2 on windows

Changes since v3
 - New patch
---
 src/spicy-connect.c | 6 ------
 src/spicy.c         | 4 ----
 2 files changed, 10 deletions(-)

diff --git a/src/spicy-connect.c b/src/spicy-connect.c
index a3a22d3..3771deb 100644
--- a/src/spicy-connect.c
+++ b/src/spicy-connect.c
@@ -104,7 +104,6 @@ static gboolean key_pressed_cb(GtkWidget *widget, GdkEvent *event, gpointer data
     return FALSE;
 }

-#ifndef G_OS_WIN32
 static void recent_selection_changed_dialog_cb(GtkRecentChooser *chooser, gpointer data)
 {
     GtkRecentInfo *info;
@@ -130,7 +129,6 @@ static void recent_selection_changed_dialog_cb(GtkRecentChooser *chooser, gpoint

     gtk_recent_info_unref(info);
 }
-#endif

 static void connect_cb(gpointer data)
 {
@@ -219,7 +217,6 @@ gboolean spicy_connect_dialog(SpiceSession *session)
     g_signal_connect_swapped(cancel_button, "clicked",
                              G_CALLBACK(close_cb), &info);

-#ifndef G_OS_WIN32
     GtkRecentFilter *rfilter;
     GtkWidget *recent;

@@ -235,17 +232,14 @@ gboolean spicy_connect_dialog(SpiceSession *session)
                      G_CALLBACK(recent_selection_changed_dialog_cb), session);
     g_signal_connect_swapped(recent, "item-activated",
                              G_CALLBACK(connect_cb), &info);
-#endif

     for (i = 0; i < SPICE_N_ELEMENTS(connect_entries); i++) {
         g_signal_connect_swapped(connect_entries[i].entry, "activate",
                                  G_CALLBACK(connect_cb), &info);
         g_signal_connect(connect_entries[i].entry, "changed",
                          G_CALLBACK(entry_changed_cb), connect_button);
-#ifndef G_OS_WIN32
         g_signal_connect(connect_entries[i].entry, "focus-in-event",
                          G_CALLBACK(entry_focus_in_cb), recent);
-#endif
     }

     /* show and wait for response */
diff --git a/src/spicy.c b/src/spicy.c
index 3442db0..15ef377 100644
--- a/src/spicy.c
+++ b/src/spicy.c
@@ -810,7 +810,6 @@ static gboolean is_gtk_session_property(const gchar *property)
     return FALSE;
 }

-#ifndef G_OS_WIN32
 static void recent_item_activated_cb(GtkRecentChooser *chooser, gpointer data)
 {
     GtkRecentInfo *info;
@@ -827,7 +826,6 @@ static void recent_item_activated_cb(GtkRecentChooser *chooser, gpointer data)
     gtk_recent_info_unref(info);
     connection_connect(conn);
 }
-#endif

 static gboolean configure_event_cb(GtkWidget         *widget,
                                    GdkEventConfigure *event,
@@ -910,7 +908,6 @@ static SpiceWindow *create_spice_window(spice_connection *conn, SpiceChannel *ch
     win->ritem  = gtk_ui_manager_get_widget
         (win->ui, "/MainMenu/FileMenu/FileRecentMenu");

-#ifndef G_OS_WIN32
     GtkRecentFilter  *rfilter;

     win->rmenu = gtk_recent_chooser_menu_new();
@@ -922,7 +919,6 @@ static SpiceWindow *create_spice_window(spice_connection *conn, SpiceChannel *ch
     gtk_menu_item_set_submenu(GTK_MENU_ITEM(win->ritem), win->rmenu);
     g_signal_connect(win->rmenu, "item-activated",
                      G_CALLBACK(recent_item_activated_cb), win);
-#endif

     /* spice display */
     win->spice = GTK_WIDGET(spice_display_new_with_monitor(conn->session, id, monitor_id));
--
2.4.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]