aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-editor.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-05-11 01:28:07 +0800
committerXan Lopez <xan@src.gnome.org>2003-05-11 01:28:07 +0800
commit62bd43f7d8a97b9a8b84f71cfefdb69f303638aa (patch)
tree68f6080b530f4489fe904e2a454263c116ee3f07 /src/bookmarks/ephy-bookmarks-editor.c
parent477a3fa1f329ab95464c9078f6f33c06774e18c1 (diff)
downloadgsoc2013-epiphany-62bd43f7d8a97b9a8b84f71cfefdb69f303638aa.tar
gsoc2013-epiphany-62bd43f7d8a97b9a8b84f71cfefdb69f303638aa.tar.gz
gsoc2013-epiphany-62bd43f7d8a97b9a8b84f71cfefdb69f303638aa.tar.bz2
gsoc2013-epiphany-62bd43f7d8a97b9a8b84f71cfefdb69f303638aa.tar.lz
gsoc2013-epiphany-62bd43f7d8a97b9a8b84f71cfefdb69f303638aa.tar.xz
gsoc2013-epiphany-62bd43f7d8a97b9a8b84f71cfefdb69f303638aa.tar.zst
gsoc2013-epiphany-62bd43f7d8a97b9a8b84f71cfefdb69f303638aa.zip
Alphabetical sort of bookmarks menu elements, fixes #111315. Also create
Alphabetical sort of bookmarks menu elements, fixes #111315. Also create ephy-node-common.h with some general enums.
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-editor.c')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 7427b3075..964fd301c 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -32,6 +32,7 @@
#include "ephy-bookmarks-editor.h"
#include "ephy-bookmark-properties.h"
+#include "ephy-node-common.h"
#include "ephy-node-view.h"
#include "ephy-window.h"
#include "ephy-dnd.h"
@@ -390,7 +391,7 @@ cmd_delete (EggAction *action,
}
else if (ephy_node_view_is_target (EPHY_NODE_VIEW (editor->priv->key_view)))
{
- EphyNodeViewPriority priority;
+ EphyNodePriority priority;
GList *selected;
EphyNode *node;
@@ -398,9 +399,9 @@ cmd_delete (EggAction *action,
node = EPHY_NODE (selected->data);
priority = ephy_node_get_property_int (node, EPHY_NODE_KEYWORD_PROP_PRIORITY);
- if (priority == -1) priority = EPHY_NODE_VIEW_NORMAL_PRIORITY;
+ if (priority == -1) priority = EPHY_NODE_NORMAL_PRIORITY;
- if (priority == EPHY_NODE_VIEW_NORMAL_PRIORITY)
+ if (priority == EPHY_NODE_NORMAL_PRIORITY)
{
ephy_node_view_remove (EPHY_NODE_VIEW (editor->priv->key_view));
}
@@ -703,7 +704,7 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
if (key_focus && selected)
{
EphyNode *node = EPHY_NODE (selected->data);
- EphyNodeViewPriority priority;
+ EphyNodePriority priority;
gulong id;
id = ephy_node_get_id (node);
@@ -712,8 +713,8 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
priority = ephy_node_get_property_int
(node, EPHY_NODE_KEYWORD_PROP_PRIORITY);
- if (priority == -1) priority = EPHY_NODE_VIEW_NORMAL_PRIORITY;
- key_normal = (priority == EPHY_NODE_VIEW_NORMAL_PRIORITY);
+ if (priority == -1) priority = EPHY_NODE_NORMAL_PRIORITY;
+ key_normal = (priority == EPHY_NODE_NORMAL_PRIORITY);
g_list_free (selected);
}