Skip to content

Commit

Permalink
Fix the is_keyword bug
Browse files Browse the repository at this point in the history
The is_keyword would be new set when placing the radio buttons. This
Patch fix it by setting the variable afterwards.
  • Loading branch information
mowgli committed Apr 6, 2009
1 parent 80f4d7e commit 81bcaee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/bar_keywords.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,6 @@ static void bar_pane_keywords_edit_dialog(PaneKeywordsData *pkd, gboolean edit_e
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",
Expand Down Expand Up @@ -898,11 +897,14 @@ static void bar_pane_keywords_edit_dialog(PaneKeywordsData *pkd, gboolean edit_e
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);
Expand Down

0 comments on commit 81bcaee

Please sign in to comment.