GTK3: remove the top and bottom margin from GTKToggleButton in statusbar
- this makes the statusbar smaller and follows GTK2 style
This commit is contained in:
parent
e1b2a4e298
commit
627201d5a0
|
@ -110,6 +110,11 @@ pluma_statusbar_init (PlumaStatusbar *statusbar)
|
||||||
|
|
||||||
statusbar->priv = PLUMA_STATUSBAR_GET_PRIVATE (statusbar);
|
statusbar->priv = PLUMA_STATUSBAR_GET_PRIVATE (statusbar);
|
||||||
|
|
||||||
|
#if GTK_CHECK_VERSION (3, 0, 0)
|
||||||
|
gtk_widget_set_margin_top (GTK_WIDGET (statusbar), 0);
|
||||||
|
gtk_widget_set_margin_bottom (GTK_WIDGET (statusbar), 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
statusbar->priv->overwrite_mode_label = gtk_label_new (NULL);
|
statusbar->priv->overwrite_mode_label = gtk_label_new (NULL);
|
||||||
gtk_label_set_width_chars (GTK_LABEL (statusbar->priv->overwrite_mode_label),
|
gtk_label_set_width_chars (GTK_LABEL (statusbar->priv->overwrite_mode_label),
|
||||||
get_overwrite_mode_length ());
|
get_overwrite_mode_length ());
|
||||||
|
|
Loading…
Reference in New Issue