[Xfce4-commits] <midori:master> Remove the description field from bookmark dialog

Christian Dywan noreply at xfce.org
Tue May 31 00:46:01 CEST 2011


Updating branch refs/heads/master
         to ac162e11d2896405a4ec57954c22930523809f01 (commit)
       from e73fa8d24cef78cd8276810c717e8b1e2c7c31df (commit)

commit ac162e11d2896405a4ec57954c22930523809f01
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue May 31 00:43:39 2011 +0200

    Remove the description field from bookmark dialog
    
    Fixes: https://bugs.launchpad.net/midori/+bug/790262

 midori/midori-browser.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 9bc80aa..1bf2a7e 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -704,7 +704,6 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
     GtkWidget* label;
     const gchar* value;
     GtkWidget* entry_title;
-    GtkWidget* entry_desc;
     GtkWidget* entry_uri;
     GtkWidget* combo_folder;
     GtkWidget* check_toolbar;
@@ -766,22 +765,6 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
     gtk_container_add (GTK_CONTAINER (content_area), hbox);
     gtk_widget_show_all (hbox);
 
-    hbox = gtk_hbox_new (FALSE, 8);
-    gtk_container_set_border_width (GTK_CONTAINER (hbox), 4);
-    label = gtk_label_new_with_mnemonic (_("_Description:"));
-    gtk_size_group_add_widget (sizegroup, label);
-    gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
-    entry_desc = gtk_entry_new ();
-    gtk_entry_set_activates_default (GTK_ENTRY (entry_desc), TRUE);
-    if (bookmark)
-    {
-        value = katze_item_get_text (bookmark);
-        gtk_entry_set_text (GTK_ENTRY (entry_desc), value ? value : "");
-    }
-    gtk_box_pack_start (GTK_BOX (hbox), entry_desc, TRUE, TRUE, 0);
-    gtk_container_add (GTK_CONTAINER (content_area), hbox);
-    gtk_widget_show_all (hbox);
-
     entry_uri = NULL;
     if (!is_folder)
     {
@@ -907,8 +890,6 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
 
         katze_item_set_name (bookmark,
             gtk_entry_get_text (GTK_ENTRY (entry_title)));
-        katze_item_set_text (bookmark,
-            gtk_entry_get_text (GTK_ENTRY (entry_desc)));
         katze_item_set_meta_integer (bookmark, "toolbar",
             gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check_toolbar)));
         if (!is_folder)



More information about the Xfce4-commits mailing list