Fix bookmark folder properties dialog

This commit is contained in:
Alexander Butenko 2010-06-30 21:19:15 -04:00 committed by Christian Dywan
parent 791c38ae3e
commit 090a16f664
2 changed files with 5 additions and 5 deletions

View file

@ -788,7 +788,7 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
gtk_widget_show_all (hbox);
entry_uri = NULL;
if (!KATZE_IS_ARRAY (bookmark))
if (!is_folder)
{
hbox = gtk_hbox_new (FALSE, 8);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 4);
@ -891,7 +891,7 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
gtk_widget_show_all (hbox);
check_app = NULL;
if (!KATZE_IS_ARRAY (bookmark))
if (!is_folder)
{
hbox = gtk_hbox_new (FALSE, 8);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 1);
@ -917,7 +917,7 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
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 (!KATZE_IS_ARRAY (bookmark))
if (!is_folder)
{
katze_item_set_uri (bookmark,
gtk_entry_get_text (GTK_ENTRY (entry_uri)));

View file

@ -355,7 +355,7 @@ midori_bookmarks_edit_clicked_cb (GtkWidget* toolitem,
g_assert (!ITEM_IS_SEPARATOR (item));
browser = midori_browser_get_for_widget (toolitem);
midori_browser_edit_bookmark_dialog_new (browser, item, FALSE, FALSE);
midori_browser_edit_bookmark_dialog_new (browser, item, FALSE, ITEM_IS_FOLDER (item));
g_object_unref (item);
}
@ -750,7 +750,7 @@ midori_bookmarks_edit_activate_cb (GtkWidget* menuitem,
g_assert (!ITEM_IS_SEPARATOR (item));
browser = midori_browser_get_for_widget (GTK_WIDGET (bookmarks));
midori_browser_edit_bookmark_dialog_new (browser, item, FALSE, FALSE);
midori_browser_edit_bookmark_dialog_new (browser, item, FALSE, ITEM_IS_FOLDER (item));
}
static void