diff options
author | Federico Mena Quintero <federico@nuclecu.unam.mx> | 1998-04-02 16:10:50 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-04-02 16:10:50 +0800 |
commit | d4f096e0ca0ec461d5ab7a3369aaa95480561d92 (patch) | |
tree | b20d04d47a4e57825d53074c07067b887ab4ed17 /calendar/gncal-day-view.c | |
parent | f865d886f5aae9279d44f726a0b8093316a40e09 (diff) | |
download | gsoc2013-evolution-d4f096e0ca0ec461d5ab7a3369aaa95480561d92.tar.gz gsoc2013-evolution-d4f096e0ca0ec461d5ab7a3369aaa95480561d92.tar.zst gsoc2013-evolution-d4f096e0ca0ec461d5ab7a3369aaa95480561d92.zip |
New customization function. We can't decide on a stupid border type :-)
1998-04-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-day-view.c (gncal_day_view_set_shadow): New customization
function. We can't decide on a stupid border type :-)
(gncal_day_view_init): Made GTK_SHADOW_ETCHED_IN be the default
shadow type. Looks good.
svn path=/trunk/; revision=94
Diffstat (limited to 'calendar/gncal-day-view.c')
-rw-r--r-- | calendar/gncal-day-view.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/calendar/gncal-day-view.c b/calendar/gncal-day-view.c index aae6107b98..ce0b363c62 100644 --- a/calendar/gncal-day-view.c +++ b/calendar/gncal-day-view.c @@ -77,6 +77,8 @@ gncal_day_view_init (GncalDayView *dview) dview->lower = 0; dview->upper = 0; + + dview->shadow_type = GTK_SHADOW_ETCHED_IN; } static void @@ -202,7 +204,7 @@ gncal_day_view_expose (GtkWidget *widget, GdkEventExpose *event) event->area.width, event->area.height); gtk_draw_shadow (widget->style, widget->window, - GTK_STATE_NORMAL, GTK_SHADOW_IN, + GTK_STATE_NORMAL, dview->shadow_type, 0, 0, widget->allocation.width, widget->allocation.height); @@ -305,3 +307,16 @@ gncal_day_view_set_bounds (GncalDayView *dview, time_t lower, time_t upper) gncal_day_view_update (dview); } } + +void +gncal_day_view_set_shadow (GncalDayView *dview, GtkShadowType shadow_type) +{ + g_return_if_fail (dview != NULL); + g_return_if_fail (GNCAL_IS_DAY_VIEW (dview)); + + if (shadow_type != dview->shadow_type) { + dview->shadow_type = shadow_type; + + gtk_widget_draw (GTK_WIDGET (dview), NULL); + } +} |