Mercurial > geeqie
diff src/bar_keywords.c @ 1526:51b9d42ed79b
Fix the is_keyword bug
The is_keyword would be new set when placing the radio buttons. This
Patch fix it by setting the variable afterwards.
author | mow |
---|---|
date | Mon, 06 Apr 2009 23:59:38 +0000 |
parents | bd8001efdccc |
children | 12b0eeb5d528 |
line wrap: on
line diff
--- a/src/bar_keywords.c Mon Apr 06 23:39:27 2009 +0000 +++ b/src/bar_keywords.c Mon Apr 06 23:59:38 2009 +0000 @@ -870,7 +870,6 @@ cdd->pkd =pkd; cdd->click_tpath = pkd->click_tpath; pkd->click_tpath = NULL; - cdd->is_keyword = is_keyword; cdd->edit_existing = edit_existing; cdd->gd = gd = generic_dialog_new(name ? _("Edit keyword") : _("Add keywords"), "keyword_edit", @@ -898,11 +897,14 @@ group = pref_group_new(gd->vbox, FALSE, _("Keyword type:"), GTK_ORIENTATION_VERTICAL); button = pref_radiobutton_new(group, NULL, _("Active keyword"), - (cdd->is_keyword), + (is_keyword), G_CALLBACK(bar_pane_keywords_conf_set_kw), cdd); button = pref_radiobutton_new(group, button, _("Helper"), - (!cdd->is_keyword), + (!is_keyword), G_CALLBACK(bar_pane_keywords_conf_set_helper), cdd); + + cdd->is_keyword = is_keyword; + g_free(name); gtk_widget_grab_focus(cdd->edit_widget);