projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
possible fix for SF bug #1186144 (only VC tested)
[wxWidgets.git]
/
src
/
gtk
/
statbox.cpp
diff --git
a/src/gtk/statbox.cpp
b/src/gtk/statbox.cpp
index 9d489265d8f5fb291d620add559eb12d6473af5d..5b09be49d10a699b15db1fc5a32e78f652edf28d 100644
(file)
--- a/
src/gtk/statbox.cpp
+++ b/
src/gtk/statbox.cpp
@@
-78,7
+78,7
@@
bool wxStaticBox::Create( wxWindow *parent,
xalign = 0.0;
if ( xalign )
xalign = 0.0;
if ( xalign )
- gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.
0
);
+ gtk_frame_set_label_align(GTK_FRAME( m_widget ), xalign, 0.
5
);
return TRUE;
}
return TRUE;
}
@@
-89,7
+89,14
@@
void wxStaticBox::SetLabel( const wxString &label )
gtk_frame_set_label( GTK_FRAME( m_widget ),
m_label.empty() ? (char *)NULL : (const char*) wxGTK_CONV( m_label ) );
gtk_frame_set_label( GTK_FRAME( m_widget ),
m_label.empty() ? (char *)NULL : (const char*) wxGTK_CONV( m_label ) );
- PostSetLabel();
+}
+
+void wxStaticBox::DoApplyWidgetStyle(GtkRcStyle *style)
+{
+ gtk_widget_modify_style(m_widget, style);
+#ifdef __WXGTK20__
+ gtk_widget_modify_style(GTK_FRAME(m_widget)->label_widget, style);
+#endif
}
// static
}
// static