summaryrefslogtreecommitdiff
path: root/gtk/gtkvscale.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-02-13 13:21:10 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-02-13 13:21:10 +0000
commit634850fdf9978beda07f5e341876ba541c50158b (patch)
tree32b8f58cfd9d9295ced48a9f0a47e136e3d84844 /gtk/gtkvscale.c
parent7054daac80b26caf71bee4543b3303c3a36a3d93 (diff)
downloadgdk-pixbuf-634850fdf9978beda07f5e341876ba541c50158b.tar.gz
Fix various compilation problems (#134312, David Hawthorne)
Fri Feb 13 08:17:43 2004 Owen Taylor <otaylor@redhat.com> Fix various compilation problems (#134312, David Hawthorne) * gtk/gtkscale.c (gtk_scale_get_layout_offsets): Use g_return_if_fail(), not g_return_val_if_fail(). * gtk/gtkvscale.c (gtk_vscale_get_layout_offsets): * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Use g_return_if_reached(), not g_return_val_if_reached(). * gtk/gtkvscale.c (gtk_vscale_expose): Fix the types of some parameters. * gtk/gtkhscale.c (gtk_hscale_get_layout_offsets): Remove extra 'scale' parameter.
Diffstat (limited to 'gtk/gtkvscale.c')
-rw-r--r--gtk/gtkvscale.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtkvscale.c b/gtk/gtkvscale.c
index 86a4d93d4..c7b8b9e5c 100644
--- a/gtk/gtkvscale.c
+++ b/gtk/gtkvscale.c
@@ -171,8 +171,8 @@ gtk_vscale_expose (GtkWidget *widget,
gint x, y;
GtkStateType state_type;
- layout = gtk_scale_get_layout (widget);
- gtk_scale_get_layout_offsets (widget, &x, &y);
+ layout = gtk_scale_get_layout (scale);
+ gtk_scale_get_layout_offsets (scale, &x, &y);
state_type = GTK_STATE_NORMAL;
if (!GTK_WIDGET_IS_SENSITIVE (scale))
@@ -200,7 +200,6 @@ gtk_vscale_get_layout_offsets (GtkScale *scale,
{
GtkWidget *widget;
GtkRange *range;
- GtkScale *scale;
PangoLayout *layout;
PangoRectangle logical_rect;
gint value_spacing;
@@ -248,7 +247,7 @@ gtk_vscale_get_layout_offsets (GtkScale *scale,
break;
default:
- g_return_val_if_reached (FALSE);
+ g_return_if_reached ();
*x = 0;
*y = 0;
break;