[epiphany/wip/bookmarks: 5/17] bookmarks: Save changes to disk when modifying the 'Add bookmark popover'
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/bookmarks: 5/17] bookmarks: Save changes to disk when modifying the 'Add bookmark popover'
- Date: Sun, 11 Sep 2016 16:58:48 +0000 (UTC)
commit 6de95d9a80eb6b717f08cdaa9af47c819c311fe6
Author: Iulian Radu <iulian radu67 gmail com>
Date: Sat Aug 13 13:12:32 2016 +0300
bookmarks: Save changes to disk when modifying the 'Add bookmark popover'
src/ephy-bookmarks-popover.c | 4 ++--
src/ephy-toolbar.c | 10 ++++++++++
2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-bookmarks-popover.c b/src/ephy-bookmarks-popover.c
index 91558ac..d437968 100644
--- a/src/ephy-bookmarks-popover.c
+++ b/src/ephy-bookmarks-popover.c
@@ -171,10 +171,10 @@ create_tag_row (const char *tag)
image = gtk_image_new_from_icon_name ("user-bookmarks-symbolic", GTK_ICON_SIZE_MENU);
else
image = gtk_image_new_from_icon_name ("ephy-bookmark-tag-symbolic", GTK_ICON_SIZE_MENU);
- gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 6);
+ gtk_box_pack_start (GTK_BOX (box), image, FALSE, FALSE, 0);
label = gtk_label_new (tag);
- gtk_box_pack_start (GTK_BOX (box),label, TRUE, FALSE, 6);
+ gtk_box_pack_start (GTK_BOX (box),label, TRUE, FALSE, 0);
gtk_container_add (GTK_CONTAINER (row), box);
gtk_widget_show_all (row);
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index 114c993..826f89e 100644
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -600,6 +600,13 @@ update_bookmarked_status_cb (EphyBookmarksManager *manager,
}
static void
+popover_closed_cb (GtkPopover *popover,
+ EphyBookmarksManager *manager)
+{
+ ephy_bookmarks_manager_save_to_file_async (manager, NULL, NULL, NULL);
+}
+
+static void
add_bookmark_button_clicked_cb (EphyLocationEntry *entry,
gpointer *user_data)
{
@@ -637,6 +644,9 @@ add_bookmark_button_clicked_cb (EphyLocationEntry *entry,
ephy_bookmark_properties_grid_new (bookmark,
EPHY_BOOKMARK_PROPERTIES_GRID_TYPE_POPOVER,
popover));
+ g_signal_connect_object (popover, "closed",
+ G_CALLBACK (popover_closed_cb),
+ manager, 0);
gtk_widget_show (popover);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]