This is an automated email from the git hooks/post-receive script. landry pushed a commit to branch master in repository panel-plugins/xfce4-datetime-plugin.
commit 27ef426315d1f65cf5e6d29d3391c906e190cc39 Author: Landry Breuil <[email protected]> Date: Sun May 1 11:41:42 2016 +0200 Use GtkFontChooserDialog insead of GtkFontSelectionDialog --- panel-plugin/datetime-dialog.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/panel-plugin/datetime-dialog.c b/panel-plugin/datetime-dialog.c index 15c1489..982e7fc 100644 --- a/panel-plugin/datetime-dialog.c +++ b/panel-plugin/datetime-dialog.c @@ -128,13 +128,14 @@ static void datetime_font_selection_cb(GtkWidget *widget, t_datetime *dt) previewtext = gtk_label_get_text(GTK_LABEL(dt->time_label)); } - dialog = gtk_font_selection_dialog_new(_("Select font")); - gtk_font_selection_dialog_set_font_name(GTK_FONT_SELECTION_DIALOG(dialog), + dialog = gtk_font_chooser_dialog_new(_("Select font"), + GTK_WINDOW(gtk_widget_get_toplevel(widget))); + gtk_font_chooser_set_font(GTK_FONT_CHOOSER(dialog), fontname); if (G_LIKELY (previewtext != NULL)) { - gtk_font_selection_dialog_set_preview_text(GTK_FONT_SELECTION_DIALOG(dialog), + gtk_font_chooser_set_preview_text(GTK_FONT_CHOOSER(dialog), previewtext); } @@ -142,7 +143,7 @@ static void datetime_font_selection_cb(GtkWidget *widget, t_datetime *dt) if (result == GTK_RESPONSE_OK || result == GTK_RESPONSE_ACCEPT) { font_name = - gtk_font_selection_dialog_get_font_name(GTK_FONT_SELECTION_DIALOG(dialog)); + gtk_font_chooser_get_font(GTK_FONT_CHOOSER(dialog)); if (font_name != NULL) { -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce4-commits
