diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-07-13 08:42:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-07-13 08:42:12 -0700 |
commit | 5f8f9cc26998b1b74d9ac5c8b68000d53aae31cc (patch) | |
tree | b6a9b6968b2d8bd80f7401ab634b3c918f1bd898 /src/gtkutil.c | |
parent | 89bfafe5d3e767c2f014b2738196411f8ba39d28 (diff) | |
download | emacs-5f8f9cc26998b1b74d9ac5c8b68000d53aae31cc.tar.gz |
* gtkutil.c: Omit integer casts.
(xg_get_pixbuf_from_pixmap): Remove unnecessary cast.
(xg_set_toolkit_scroll_bar_thumb): Rewrite to avoid need for cast.
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r-- | src/gtkutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index 35b366222de..8826b08851a 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -269,8 +269,8 @@ xg_get_pixbuf_from_pixmap (FRAME_PTR f, Pixmap pix) GDK_COLORSPACE_RGB, FALSE, xim->bitmap_unit, - (int) width, - (int) height, + width, + height, xim->bytes_per_line, NULL, NULL); @@ -3646,7 +3646,7 @@ xg_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, gtk_adjustment_set_page_size (adj, size); gtk_adjustment_set_step_increment (adj, new_step); /* Assume a page increment is about 95% of the page size */ - gtk_adjustment_set_page_increment (adj,(int) (0.95*size)); + gtk_adjustment_set_page_increment (adj, size - size / 20); changed = 1; } } |