File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -459,13 +459,13 @@ static void
459459font_button_font_set_cb (GtkWidget * font_button ,
460460 GdictPrefDialog * dialog )
461461{
462- const gchar * font ;
462+ const char * font ;
463463
464- font = gtk_font_button_get_font_name ( GTK_FONT_BUTTON (font_button ));
464+ font = gtk_font_chooser_get_font ( GTK_FONT_CHOOSER (font_button ));
465465 if (!font || font [0 ] == '\0' )
466466 return ;
467467
468- if (dialog -> print_font && ( strcmp ( dialog -> print_font , font ) == 0 ) )
468+ if (g_strcmp0 ( dialog -> print_font , font ) == 0 )
469469 return ;
470470
471471 g_free (dialog -> print_font );
@@ -657,7 +657,7 @@ gdict_pref_dialog_init (GdictPrefDialog *dialog)
657657
658658 font = g_settings_get_string (dialog -> settings , GDICT_SETTINGS_PRINT_FONT_KEY );
659659 dialog -> font_button = GTK_WIDGET (gtk_builder_get_object (dialog -> builder , "print_font_button" ));
660- gtk_font_button_set_font_name ( GTK_FONT_BUTTON (dialog -> font_button ), font );
660+ gtk_font_chooser_set_font ( GTK_FONT_CHOOSER (dialog -> font_button ), font );
661661 gtk_widget_set_tooltip_text (dialog -> font_button ,
662662 _ ("Set the font used for printing the definitions" ));
663663 g_signal_connect (dialog -> font_button , "font-set" ,
You can’t perform that action at this time.
0 commit comments