diff options
author | rbuj <[email protected]> | 2019-06-22 10:44:09 +0200 |
---|---|---|
committer | rbuj <[email protected]> | 2019-06-24 11:37:02 +0200 |
commit | 5f299dbf83d7d8f49c9e73f8c2cec9a4cce42cfb (patch) | |
tree | f9cb9812c4f7755116708ea0a6fa741a7f9d976a /capplets/time-admin/src/time-share.c | |
parent | 39028e317750bcc4c81d762c25f2c88f5c8f3f56 (diff) | |
download | mate-control-center-5f299dbf83d7d8f49c9e73f8c2cec9a4cce42cfb.tar.bz2 mate-control-center-5f299dbf83d7d8f49c9e73f8c2cec9a4cce42cfb.tar.xz |
time-admin: Don't set font size/color for regular controls
Themes and Appearance
Diffstat (limited to 'capplets/time-admin/src/time-share.c')
-rw-r--r-- | capplets/time-admin/src/time-share.c | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/capplets/time-admin/src/time-share.c b/capplets/time-admin/src/time-share.c index 1bbea7d1..9e19ee9d 100644 --- a/capplets/time-admin/src/time-share.c +++ b/capplets/time-admin/src/time-share.c @@ -91,25 +91,15 @@ int MessageReport(const char *Title,const char *Msg,int nType) break; } - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog), - TYPEMSG, - Msg); + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG(dialog), + "%s", Msg); gtk_window_set_title(GTK_WINDOW(dialog),("Message")); nRet = gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_destroy(dialog); return nRet; } -void SetLableFontType(GtkWidget *Lable,int FontSzie,const char *Word) -{ - char LableTypeBuf[200] = { 0 }; - - sprintf(LableTypeBuf, - "<span font_desc=\'%d\'>%s</span>", - FontSzie,Word); - gtk_label_set_markup(GTK_LABEL(Lable),LableTypeBuf); -} void QuitApp(TimeAdmin *ta) { if(ta->UpdateTimeId > 0) @@ -124,15 +114,8 @@ void QuitApp(TimeAdmin *ta) gtk_main_quit(); } -void SetTooltip(GtkWidget*box,gboolean mode) +void SetTooltip(GtkWidget *box, gboolean mode) { - if(!mode) - { - gtk_widget_set_tooltip_markup(box, - _("Network time synchronization has been set up. Manual time/date setting is disabled.")); - } - else - { - gtk_widget_set_tooltip_markup(box,NULL); - } + gchar *text = mode ? NULL : _("Network time synchronization has been set up. Manual time/date setting is disabled."); + gtk_widget_set_tooltip_text (box, text); } |