[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src ChangeLog xterm.c
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] emacs/src ChangeLog xterm.c |
Date: |
Mon, 22 Jun 2009 04:09:16 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 09/06/22 04:09:16
Modified files:
src : ChangeLog xterm.c
Log message:
* xterm.c (xg_default_icon_file): New variable.
(syms_of_xterm): Initialize it to the Emacs SVG icon file.
(x_bitmap_icon): Under GTK, use xg_default_icon_file.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/ChangeLog?cvsroot=emacs&r1=1.7590&r2=1.7591
http://cvs.savannah.gnu.org/viewcvs/emacs/src/xterm.c?cvsroot=emacs&r1=1.1029&r2=1.1030
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/src/ChangeLog,v
retrieving revision 1.7590
retrieving revision 1.7591
diff -u -b -r1.7590 -r1.7591
--- ChangeLog 22 Jun 2009 02:01:56 -0000 1.7590
+++ ChangeLog 22 Jun 2009 04:09:14 -0000 1.7591
@@ -7,6 +7,9 @@
* xterm.c (x_draw_glyph_string): Use the glyph string's width
rather than its background_width for drawing the overline and
underline (Bug#489).
+ (xg_default_icon_file): New variable.
+ (syms_of_xterm): Initialize it to the Emacs SVG icon file.
+ (x_bitmap_icon): Under GTK, use xg_default_icon_file.
* xdisp.c (Qbefore_string, Qafter_string): Add externs.
(load_overlay_strings): Remove externs.
Index: xterm.c
===================================================================
RCS file: /sources/emacs/emacs/src/xterm.c,v
retrieving revision 1.1029
retrieving revision 1.1030
diff -u -b -r1.1029 -r1.1030
--- xterm.c 22 Jun 2009 02:01:58 -0000 1.1029
+++ xterm.c 22 Jun 2009 04:09:15 -0000 1.1030
@@ -320,6 +320,11 @@
static Lisp_Object Qvendor_specific_keysyms;
static Lisp_Object Qlatin_1;
+#ifdef USE_GTK
+/* The name of the Emacs icon file. */
+static Lisp_Object xg_default_icon_file;
+#endif
+
/* Used in x_flush. */
extern Lisp_Object Vinhibit_redisplay;
@@ -7617,16 +7622,19 @@
{
int rc = -1;
-#if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS)
#ifdef USE_GTK
- if (xg_set_icon_from_xpm_data (f, gnu_xpm_bits))
+
+ if (xg_set_icon (f, xg_default_icon_file)
+ || xg_set_icon_from_xpm_data (f, gnu_xpm_bits))
return 0;
-#else
+
+#elif defined (HAVE_XPM) && defined (HAVE_X_WINDOWS)
+
rc = x_create_bitmap_from_xpm_data (f, gnu_xpm_bits);
if (rc != -1)
FRAME_X_DISPLAY_INFO (f)->icon_bitmap_id = rc;
-#endif /* USE_GTK */
-#endif /* defined (HAVE_XPM) && defined (HAVE_X_WINDOWS) */
+
+#endif
/* If all else fails, use the (black and white) xbm image. */
if (rc == -1)
@@ -10914,6 +10922,11 @@
staticpro (&last_mouse_press_frame);
last_mouse_press_frame = Qnil;
+#ifdef USE_GTK
+ xg_default_icon_file = build_string
("icons/hicolor/scalable/apps/emacs.svg");
+ staticpro (&xg_default_icon_file);
+#endif
+
DEFVAR_BOOL ("x-use-underline-position-properties",
&x_use_underline_position_properties,
doc: /* *Non-nil means make use of UNDERLINE_POSITION font properties.
- [Emacs-diffs] emacs/src ChangeLog xterm.c,
Chong Yidong <=