[epiphany/wip/chergert/completion] Fix build with recent WebKitGTK+



commit 104bc990d8c84bf2c678a1659679840c2b2eae5d
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Aug 27 15:47:03 2017 -0500

    Fix build with recent WebKitGTK+
    
    Apparently namespace violations are a bad idea

 src/ephy-window.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 1bedad3..b738e35 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1268,9 +1268,9 @@ action_activate_cb (GtkAction *action, gpointer user_data)
 }
 
 static WebKitContextMenuItem *
-webkit_context_menu_item_new_from_gaction_with_parameter (GAction    *action,
-                                                          const char *label,
-                                                          GVariant   *parameter)
+ephy_webkit_context_menu_item_new_from_gaction_with_parameter (GAction    *action,
+                                                               const char *label,
+                                                               GVariant   *parameter)
 {
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
@@ -1302,10 +1302,10 @@ webkit_context_menu_item_new_from_gaction_with_parameter (GAction    *action,
 }
 
 static WebKitContextMenuItem *
-webkit_context_menu_item_new_from_gaction (GAction    *action,
-                                           const char *label)
+ephy_webkit_context_menu_item_new_from_gaction (GAction    *action,
+                                                const char *label)
 {
-  return webkit_context_menu_item_new_from_gaction_with_parameter (action, label, NULL);
+  return ephy_webkit_context_menu_item_new_from_gaction_with_parameter (action, label, NULL);
 }
 
 static char *
@@ -1380,14 +1380,14 @@ add_action_to_context_menu (WebKitContextMenu *context_menu,
   action = g_action_map_lookup_action (G_ACTION_MAP (action_group), name);
   label = g_hash_table_lookup (window->action_labels, name);
   if (strcmp (label, "search-selection-placeholder") != 0) {
-    webkit_context_menu_append (context_menu, webkit_context_menu_item_new_from_gaction (action, _(label)));
+    webkit_context_menu_append (context_menu, ephy_webkit_context_menu_item_new_from_gaction (action, 
_(label)));
   } else {
     search_term = g_variant_get_string (target, NULL);
     search_label = format_search_label (search_term);
     webkit_context_menu_append (context_menu,
-                                webkit_context_menu_item_new_from_gaction_with_parameter (action,
-                                                                                          search_label,
-                                                                                          
g_variant_new_string (search_term)));
+                                ephy_webkit_context_menu_item_new_from_gaction_with_parameter (action,
+                                                                                               search_label,
+                                                                                               
g_variant_new_string (search_term)));
     g_free (search_label);
   }
 }


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