diff options
author | mouse <[email protected]> | 2019-06-25 17:57:18 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2019-06-25 17:57:18 +0800 |
commit | dcadc0ec7ce7ec5a7f4b42a6b07ee76922ba5569 (patch) | |
tree | 4aa44934d0eb2146a72016d16b088bd5032271cd /capplets/time-admin/src/time-share.c | |
parent | 7fa0dd119d4bad38fed214e84514ee85516a0c7d (diff) | |
parent | eb8e9e5da59603d47ee62567d3da5698560b827e (diff) | |
download | mate-control-center-dcadc0ec7ce7ec5a7f4b42a6b07ee76922ba5569.tar.bz2 mate-control-center-dcadc0ec7ce7ec5a7f4b42a6b07ee76922ba5569.tar.xz |
Merge pull request #471 from mate-desktop/markup
time-admin: theming
Diffstat (limited to 'capplets/time-admin/src/time-share.c')
-rw-r--r-- | capplets/time-admin/src/time-share.c | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/capplets/time-admin/src/time-share.c b/capplets/time-admin/src/time-share.c index 1bbea7d1..379134e3 100644 --- a/capplets/time-admin/src/time-share.c +++ b/capplets/time-admin/src/time-share.c @@ -91,25 +91,14 @@ int MessageReport(const char *Title,const char *Msg,int nType) break; } - gtk_message_dialog_format_secondary_markup(GTK_MESSAGE_DIALOG(dialog), - TYPEMSG, - Msg); - gtk_window_set_title(GTK_WINDOW(dialog),("Message")); + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG(dialog), + "%s", Msg); 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 +113,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); } |