diff options
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/gtkutil.c | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 5c9efee320f..2d88ba25092 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-03-13 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-13 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char * | ||
| 4 | to unsigned char * to avoid compiler diagnostic. | ||
| 5 | |||
| 3 | * xgselect.c (xg_select): Remove unused var. | 6 | * xgselect.c (xg_select): Remove unused var. |
| 4 | 7 | ||
| 5 | * image.c (four_corners_best): Mark locals as initialized. | 8 | * image.c (four_corners_best): Mark locals as initialized. |
diff --git a/src/gtkutil.c b/src/gtkutil.c index b1ea6336eb6..8ab41fdefd1 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -76,7 +76,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 76 | #ifndef HAVE_GTK3 | 76 | #ifndef HAVE_GTK3 |
| 77 | #define gdk_window_get_screen(w) gdk_drawable_get_screen (w) | 77 | #define gdk_window_get_screen(w) gdk_drawable_get_screen (w) |
| 78 | #define gdk_window_get_geometry(w, a, b, c, d) \ | 78 | #define gdk_window_get_geometry(w, a, b, c, d) \ |
| 79 | gdk_window_get_geometry (w, a, b, c, d, 0) | 79 | gdk_window_get_geometry (w, a, b, c, d, 0) |
| 80 | #define gdk_x11_window_lookup_for_display(d, w) \ | 80 | #define gdk_x11_window_lookup_for_display(d, w) \ |
| 81 | gdk_xid_table_lookup_for_display (d, w) | 81 | gdk_xid_table_lookup_for_display (d, w) |
| 82 | #define GDK_KEY_g GDK_g | 82 | #define GDK_KEY_g GDK_g |
| @@ -258,7 +258,7 @@ xg_get_pixbuf_from_pixmap (FRAME_PTR f, Pixmap pix) | |||
| 258 | ~0, XYPixmap); | 258 | ~0, XYPixmap); |
| 259 | if (!xim) return 0; | 259 | if (!xim) return 0; |
| 260 | 260 | ||
| 261 | tmp_buf = gdk_pixbuf_new_from_data (xim->data, | 261 | tmp_buf = gdk_pixbuf_new_from_data ((guchar *) xim->data, |
| 262 | GDK_COLORSPACE_RGB, | 262 | GDK_COLORSPACE_RGB, |
| 263 | FALSE, | 263 | FALSE, |
| 264 | xim->bitmap_unit, | 264 | xim->bitmap_unit, |
| @@ -287,7 +287,7 @@ xg_get_pixbuf_from_pix_and_mask (FRAME_PTR f, | |||
| 287 | 287 | ||
| 288 | width = gdk_pixbuf_get_width (icon_buf); | 288 | width = gdk_pixbuf_get_width (icon_buf); |
| 289 | height = gdk_pixbuf_get_height (icon_buf); | 289 | height = gdk_pixbuf_get_height (icon_buf); |
| 290 | 290 | ||
| 291 | if (mask) | 291 | if (mask) |
| 292 | { | 292 | { |
| 293 | GdkPixbuf *mask_buf = xg_get_pixbuf_from_pixmap (f, mask); | 293 | GdkPixbuf *mask_buf = xg_get_pixbuf_from_pixmap (f, mask); |
| @@ -393,7 +393,7 @@ xg_get_image_for_pixmap (FRAME_PTR f, | |||
| 393 | Gtk+ assumes the pixmap is always there. */ | 393 | Gtk+ assumes the pixmap is always there. */ |
| 394 | icon_buf = xg_get_pixbuf_from_pix_and_mask (f, img->pixmap, img->mask); | 394 | icon_buf = xg_get_pixbuf_from_pix_and_mask (f, img->pixmap, img->mask); |
| 395 | 395 | ||
| 396 | if (icon_buf) | 396 | if (icon_buf) |
| 397 | { | 397 | { |
| 398 | if (! old_widget) | 398 | if (! old_widget) |
| 399 | old_widget = GTK_IMAGE (gtk_image_new_from_pixbuf (icon_buf)); | 399 | old_widget = GTK_IMAGE (gtk_image_new_from_pixbuf (icon_buf)); |