diff options
author | raveit65 <[email protected]> | 2015-09-02 21:49:10 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-06 13:08:32 +0200 |
commit | 185c587fc8c05319de9d0d4978bf5c6bbbf9115f (patch) | |
tree | 1c11ef3ca1282f5e079bd330dd42d196ea20bd3a /plugins/statusbar-date | |
parent | b5665137c55d97c4c01d658371b9a0a997165bbe (diff) | |
download | eom-185c587fc8c05319de9d0d4978bf5c6bbbf9115f.tar.bz2 eom-185c587fc8c05319de9d0d4978bf5c6bbbf9115f.tar.xz |
GTK3 Date-plugin: set top/bottom margin to zero to avoid redraws
This avoids redraws of the image if date-plugin bump in the statusbar
Diffstat (limited to 'plugins/statusbar-date')
-rw-r--r-- | plugins/statusbar-date/eom-statusbar-date-plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/statusbar-date/eom-statusbar-date-plugin.c b/plugins/statusbar-date/eom-statusbar-date-plugin.c index 9e405b4..178c518 100644 --- a/plugins/statusbar-date/eom-statusbar-date-plugin.c +++ b/plugins/statusbar-date/eom-statusbar-date-plugin.c @@ -125,6 +125,10 @@ static void impl_activate(EomPlugin* plugin, EomWindow* window) data = g_new(WindowData, 1); data->statusbar_date = gtk_statusbar_new(); gtk_widget_set_size_request(data->statusbar_date, 200, 10); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_set_margin_top (GTK_WIDGET (data->statusbar_date), 0); + gtk_widget_set_margin_bottom (GTK_WIDGET (data->statusbar_date), 0); +#endif gtk_box_pack_end(GTK_BOX(statusbar), data->statusbar_date, FALSE, FALSE, 0); data->signal_id = g_signal_connect_after(G_OBJECT(thumbview), "selection_changed", G_CALLBACK(selection_changed_cb), data); |