Skip to content

Commit a8f26ab

Browse files
authored
Merge pull request #1317 from techee/ctags-fixes
geanyctags: eliminate some warnings and update the readtags library
2 parents db2698c + f89952d commit a8f26ab

File tree

3 files changed

+281
-118
lines changed

3 files changed

+281
-118
lines changed

geanyctags/src/geanyctags.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ static void create_dialog_find_file(void)
545545
size_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
546546

547547
label = gtk_label_new_with_mnemonic(_("_Search for:"));
548-
gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
548+
gtk_label_set_xalign(GTK_LABEL(label), 0.0);
549549
gtk_size_group_add_widget(size_group, label);
550550

551551
s_ft_dialog.combo = gtk_combo_box_text_new_with_entry();
@@ -557,13 +557,13 @@ static void create_dialog_find_file(void)
557557
ui_entry_add_clear_icon(GTK_ENTRY(entry));
558558
gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE);
559559

560-
ebox = gtk_hbox_new(FALSE, 6);
560+
ebox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
561561
gtk_box_pack_start(GTK_BOX(ebox), label, FALSE, FALSE, 0);
562562
gtk_box_pack_start(GTK_BOX(ebox), s_ft_dialog.combo, TRUE, TRUE, 0);
563563
gtk_box_pack_start(GTK_BOX(vbox), ebox, TRUE, FALSE, 0);
564564

565565
label = gtk_label_new_with_mnemonic(_("_Match type:"));
566-
gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
566+
gtk_label_set_xalign(GTK_LABEL(label), 0.0);
567567
gtk_size_group_add_widget(size_group, label);
568568

569569
s_ft_dialog.combo_match = gtk_combo_box_text_new();
@@ -573,16 +573,16 @@ static void create_dialog_find_file(void)
573573
gtk_combo_box_set_active(GTK_COMBO_BOX(s_ft_dialog.combo_match), 1);
574574
gtk_label_set_mnemonic_widget(GTK_LABEL(label), s_ft_dialog.combo_match);
575575

576-
ebox = gtk_hbox_new(FALSE, 6);
576+
ebox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
577577
gtk_box_pack_start(GTK_BOX(ebox), label, FALSE, FALSE, 0);
578578
gtk_box_pack_start(GTK_BOX(ebox), s_ft_dialog.combo_match, TRUE, TRUE, 0);
579579
gtk_box_pack_start(GTK_BOX(vbox), ebox, TRUE, FALSE, 0);
580580

581581
s_ft_dialog.case_sensitive = gtk_check_button_new_with_mnemonic(_("C_ase sensitive"));
582-
gtk_button_set_focus_on_click(GTK_BUTTON(s_ft_dialog.case_sensitive), FALSE);
582+
gtk_widget_set_focus_on_click(s_ft_dialog.case_sensitive, FALSE);
583583

584584
s_ft_dialog.declaration = gtk_check_button_new_with_mnemonic(_("_Declaration"));
585-
gtk_button_set_focus_on_click(GTK_BUTTON(s_ft_dialog.declaration), FALSE);
585+
gtk_widget_set_focus_on_click(s_ft_dialog.declaration, FALSE);
586586

587587
g_object_unref(G_OBJECT(size_group)); /* auto destroy the size group */
588588

0 commit comments

Comments
 (0)