@@ -545,7 +545,7 @@ static void create_dialog_find_file(void)
545
545
size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL );
546
546
547
547
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 );
549
549
gtk_size_group_add_widget (size_group , label );
550
550
551
551
s_ft_dialog .combo = gtk_combo_box_text_new_with_entry ();
@@ -557,13 +557,13 @@ static void create_dialog_find_file(void)
557
557
ui_entry_add_clear_icon (GTK_ENTRY (entry ));
558
558
gtk_entry_set_activates_default (GTK_ENTRY (entry ), TRUE);
559
559
560
- ebox = gtk_hbox_new (FALSE , 6 );
560
+ ebox = gtk_box_new ( GTK_ORIENTATION_HORIZONTAL , 6 );
561
561
gtk_box_pack_start (GTK_BOX (ebox ), label , FALSE, FALSE, 0 );
562
562
gtk_box_pack_start (GTK_BOX (ebox ), s_ft_dialog .combo , TRUE, TRUE, 0 );
563
563
gtk_box_pack_start (GTK_BOX (vbox ), ebox , TRUE, FALSE, 0 );
564
564
565
565
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 );
567
567
gtk_size_group_add_widget (size_group , label );
568
568
569
569
s_ft_dialog .combo_match = gtk_combo_box_text_new ();
@@ -573,16 +573,16 @@ static void create_dialog_find_file(void)
573
573
gtk_combo_box_set_active (GTK_COMBO_BOX (s_ft_dialog .combo_match ), 1 );
574
574
gtk_label_set_mnemonic_widget (GTK_LABEL (label ), s_ft_dialog .combo_match );
575
575
576
- ebox = gtk_hbox_new (FALSE , 6 );
576
+ ebox = gtk_box_new ( GTK_ORIENTATION_HORIZONTAL , 6 );
577
577
gtk_box_pack_start (GTK_BOX (ebox ), label , FALSE, FALSE, 0 );
578
578
gtk_box_pack_start (GTK_BOX (ebox ), s_ft_dialog .combo_match , TRUE, TRUE, 0 );
579
579
gtk_box_pack_start (GTK_BOX (vbox ), ebox , TRUE, FALSE, 0 );
580
580
581
581
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);
583
583
584
584
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);
586
586
587
587
g_object_unref (G_OBJECT (size_group )); /* auto destroy the size group */
588
588
0 commit comments