Don't use bold, borderless frames on Win32
This commit is contained in:
parent
143ec96581
commit
e8ffec6b28
1 changed files with 4 additions and 0 deletions
|
@ -519,12 +519,16 @@ sokoke_hig_frame_new (const gchar* title)
|
||||||
{
|
{
|
||||||
/* Create a frame with no actual frame but a bold label and indentation */
|
/* Create a frame with no actual frame but a bold label and indentation */
|
||||||
GtkWidget* frame = gtk_frame_new (NULL);
|
GtkWidget* frame = gtk_frame_new (NULL);
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
gtk_frame_set_label (GTK_FRAME (frame), title);
|
||||||
|
#else
|
||||||
gchar* title_bold = g_strdup_printf ("<b>%s</b>", title);
|
gchar* title_bold = g_strdup_printf ("<b>%s</b>", title);
|
||||||
GtkWidget* label = gtk_label_new (NULL);
|
GtkWidget* label = gtk_label_new (NULL);
|
||||||
gtk_label_set_markup (GTK_LABEL (label), title_bold);
|
gtk_label_set_markup (GTK_LABEL (label), title_bold);
|
||||||
g_free (title_bold);
|
g_free (title_bold);
|
||||||
gtk_frame_set_label_widget (GTK_FRAME (frame), label);
|
gtk_frame_set_label_widget (GTK_FRAME (frame), label);
|
||||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
|
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
|
||||||
|
#endif
|
||||||
return frame;
|
return frame;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue