Merge lp:~kalikiana/midori/importexportmenu into lp:midori

Proposed by Cris Dywan
Status: Merged
Approved by: Cody Garver
Approved revision: 6178
Merged at revision: 6186
Proposed branch: lp:~kalikiana/midori/importexportmenu
Merge into: lp:midori
Diff against target: 46 lines (+19/-3)
1 file modified
midori/midori-browser.c (+19/-3)
To merge this branch: bzr merge lp:~kalikiana/midori/importexportmenu
Reviewer Review Type Date Requested Status
gue5t gue5t Approve
Review via email: mp+165941@code.launchpad.net

Commit message

Move Import and Export into menu Bookmarks

Description of the change

Move Import and Export into menu Bookmarks

To post a comment you must log in.
Revision history for this message
gue5t gue5t (gue5t) wrote :

It would be nice to have a separator only if there are bookmarks in the menu below the import/export items. Looks fine otherwise.

Revision history for this message
Cris Dywan (kalikiana) wrote :

I looked at it again - you will see "Empty" when there're no bookmarks so I don't agree that the separator is unneeded then, for consistency it makes sense to always be there.

Revision history for this message
gue5t gue5t (gue5t) wrote :

Ah, my mistake. Carry on, I was thinking of old code without "Empty".

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'midori/midori-browser.c'
--- midori/midori-browser.c 2013-05-21 19:59:59 +0000
+++ midori/midori-browser.c 2013-05-27 22:21:29 +0000
@@ -3105,6 +3105,21 @@
3105 gtk_container_foreach (GTK_CONTAINER (menu),3105 gtk_container_foreach (GTK_CONTAINER (menu),
3106 (GtkCallback)(gtk_widget_destroy), NULL);3106 (GtkCallback)(gtk_widget_destroy), NULL);
31073107
3108 /* "Import Bookmarks" and "Export Bookmarks" at the top */
3109 if (id == NULL)
3110 {
3111 GtkWidget* menuitem;
3112 menuitem = gtk_action_create_menu_item (_action_by_name (browser, "BookmarksImport"));
3113 gtk_menu_shell_append (menu, menuitem);
3114 gtk_widget_show (menuitem);
3115 menuitem = gtk_action_create_menu_item (_action_by_name (browser, "BookmarksExport"));
3116 gtk_menu_shell_append (menu, menuitem);
3117 gtk_widget_show (menuitem);
3118 menuitem = gtk_separator_menu_item_new ();
3119 gtk_menu_shell_append (menu, menuitem);
3120 gtk_widget_show (menuitem);
3121 }
3122
3108 if (katze_array_is_empty (bookmarks))3123 if (katze_array_is_empty (bookmarks))
3109 {3124 {
3110 GtkWidget* menuitem = gtk_image_menu_item_new_with_label (_("Empty"));3125 GtkWidget* menuitem = gtk_image_menu_item_new_with_label (_("Empty"));
@@ -5697,8 +5712,6 @@
5697 "<menuitem action='WindowClose'/>"5712 "<menuitem action='WindowClose'/>"
5698 "<separator/>"5713 "<separator/>"
5699 "<menuitem action='Print'/>"5714 "<menuitem action='Print'/>"
5700 "<menuitem action='BookmarksImport'/>"
5701 "<menuitem action='BookmarksExport'/>"
5702 "<separator/>"5715 "<separator/>"
5703 "<menuitem action='Quit'/>"5716 "<menuitem action='Quit'/>"
5704 "</menu>"5717 "</menu>"
@@ -5761,7 +5774,10 @@
5761 "<menuitem action='Search'/>"5774 "<menuitem action='Search'/>"
5762 "<menuitem action='Trash'/>"5775 "<menuitem action='Trash'/>"
5763 "</menu>"5776 "</menu>"
5764 "<menuitem action='Bookmarks'/>"5777 "<menu action='Bookmarks'>"
5778 "<menuitem action='BookmarksImport'/>"
5779 "<menuitem action='BookmarksExport'/>"
5780 "</menu>"
5765 "<menuitem action='Tools'/>"5781 "<menuitem action='Tools'/>"
5766 "<menuitem action='Window'/>"5782 "<menuitem action='Window'/>"
5767 "<menu action='Help'>"5783 "<menu action='Help'>"

Subscribers

People subscribed via source and target branches

to all changes: