aboutsummaryrefslogtreecommitdiff
path: root/src/idoscalemenuitem.c
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-03-15 09:07:37 -0500
committerCody Russell <crussell@canonical.com>2010-03-15 09:07:37 -0500
commitd6a2f217fe40c40baee2f9660554647d8c89d38e (patch)
treea91cb01623a16ef7f984f1364be202cb1dbaed89 /src/idoscalemenuitem.c
parent7561ce13586a6d1549aec43dba138473d50b480b (diff)
downloadayatana-ido-d6a2f217fe40c40baee2f9660554647d8c89d38e.tar.gz
ayatana-ido-d6a2f217fe40c40baee2f9660554647d8c89d38e.tar.bz2
ayatana-ido-d6a2f217fe40c40baee2f9660554647d8c89d38e.zip
Don't capture up/down keys. Compile fixes for latest gtk+.
Diffstat (limited to 'src/idoscalemenuitem.c')
-rw-r--r--src/idoscalemenuitem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/idoscalemenuitem.c b/src/idoscalemenuitem.c
index 7d16ec9..dc57479 100644
--- a/src/idoscalemenuitem.c
+++ b/src/idoscalemenuitem.c
@@ -135,8 +135,8 @@ ido_scale_menu_item_size_allocate (GtkWidget *widget,
"horizontal-padding", &horizontal_padding,
NULL);
- primary_padding = GTK_WIDGET_VISIBLE (priv->primary_image) ? primary_image_req.width : 0;
- secondary_padding = GTK_WIDGET_VISIBLE (priv->secondary_image) ? secondary_image_req.width : 0;
+ primary_padding = gtk_widget_get_visible (priv->primary_image) ? primary_image_req.width : 0;
+ secondary_padding = gtk_widget_get_visible (priv->secondary_image) ? secondary_image_req.width : 0;
priv->left_padding = gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR ? primary_padding : secondary_padding;
@@ -297,7 +297,7 @@ ido_scale_menu_item_expose (GtkWidget *widget,
{
IdoScaleMenuItemPrivate *priv = GET_PRIVATE (widget);
- if (GTK_WIDGET_DRAWABLE (widget))
+ if (gtk_widget_is_drawable (widget))
{
GdkPixbuf *pixbuf = gtk_offscreen_window_get_pixbuf (GTK_OFFSCREEN_WINDOW (priv->offscreen));