aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-01 04:18:14 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-01 04:18:14 +0800
commit0c751ff6dbc9a50d4d956f765334e1a6d0d6bf80 (patch)
tree413e7e73d5770853ddc88d0827e6de552f9df016 /widgets
parent1533c155164fbba27308b99f33760897544b33ea (diff)
downloadgsoc2013-evolution-0c751ff6dbc9a50d4d956f765334e1a6d0d6bf80.tar
gsoc2013-evolution-0c751ff6dbc9a50d4d956f765334e1a6d0d6bf80.tar.gz
gsoc2013-evolution-0c751ff6dbc9a50d4d956f765334e1a6d0d6bf80.tar.bz2
gsoc2013-evolution-0c751ff6dbc9a50d4d956f765334e1a6d0d6bf80.tar.lz
gsoc2013-evolution-0c751ff6dbc9a50d4d956f765334e1a6d0d6bf80.tar.xz
gsoc2013-evolution-0c751ff6dbc9a50d4d956f765334e1a6d0d6bf80.tar.zst
gsoc2013-evolution-0c751ff6dbc9a50d4d956f765334e1a6d0d6bf80.zip
ECellText: Simplify fetching vertical-spacing style property.
Call gtk_widget_style_get(). No need to get GtkStyle involved.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-cell-text.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index e871ac1dc0..6ad47b4c50 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -673,7 +673,6 @@ show_pango_rectangle (CellEdit *edit,
static gint
get_vertical_spacing (GtkWidget *canvas)
{
- GtkStyle *style;
GtkWidget *widget;
gint vspacing = 0;
@@ -681,11 +680,8 @@ get_vertical_spacing (GtkWidget *canvas)
/* The parent should be either an ETable or ETree. */
widget = gtk_widget_get_parent (canvas);
- style = gtk_widget_get_style (widget);
- gtk_style_get (
- style, G_OBJECT_TYPE (widget),
- "vertical-spacing", &vspacing, NULL);
+ gtk_widget_style_get (widget, "vertical-spacing", &vspacing, NULL);
return vspacing;
}