[librsvg] Remove XEMBED support from rsvg-view
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Remove XEMBED support from rsvg-view
- Date: Sun, 27 Jun 2010 17:42:35 +0000 (UTC)
commit fb09ff11cccf3ac08ed14b4aa8a2ddf5a57174ef
Author: Christian Persch <chpe gnome org>
Date: Sat Jun 26 13:18:05 2010 +0200
Remove XEMBED support from rsvg-view
Makefile.am | 3 +--
configure.in | 19 -------------------
test-display.c | 39 ++++-----------------------------------
3 files changed, 5 insertions(+), 56 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 9da9c7a..2dd9149 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -82,7 +82,6 @@ INCLUDES = \
$(LIBCROCO_CFLAGS) \
$(LIBRSVG_CFLAGS) \
$(GTK_CFLAGS) \
- $(GDK_X11_CFLAGS) \
-DG_LOG_DOMAIN=\"librsvg\" \
-DLIBRSVG_DATADIR="\"$(datadir)\""
@@ -108,7 +107,7 @@ rsvg_view_ RSVG_API_MAJOR_VERSION@_SOURCES = \
test-display.c
rsvg_view_ RSVG_API_MAJOR_VERSION@_LDFLAGS =
rsvg_view_ RSVG_API_MAJOR_VERSION@_DEPENDENCIES = $(DEPS)
-rsvg_view_ RSVG_API_MAJOR_VERSION@_LDADD = $(GTK_LIBS) $(GDK_X11_LIBS) $(libm) $(LDADDS)
+rsvg_view_ RSVG_API_MAJOR_VERSION@_LDADD = $(GTK_LIBS) $(libm) $(LDADDS)
EXTRA_DIST = \
MAINTAINERS \
diff --git a/configure.in b/configure.in
index e6450dc..f311ade 100644
--- a/configure.in
+++ b/configure.in
@@ -261,25 +261,6 @@ AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_BINARY_VERSION)
AM_CONDITIONAL(HAVE_GTK, test "x$have_gtk" = "xyes")
-have_gdk_x11=no
-PKG_CHECK_MODULES(GDK_X11, gdk-x11-$GTK_API_VERSION >= $GTK_X11_REQUIRED, have_gdk_x11=yes, have_gdk_x11=no)
-
-if test "x$have_gdk_x11" = "xyes"; then
- AC_PATH_XTRA
-
- if test "x$have_x" != "xyes"; then
- GDK_X11_LIBS=""
- GDK_X11_CFLAGS=""
- else
- GDK_X11_LIBS="$GDK_X11_LIBS $X_LIBS -lX11"
- GDK_X11_CFLAGS="$GDK_X11_CFLAGS $X_CFLAGS"
- AC_DEFINE(ENABLE_XEMBED, 1, [Is XEmbed available])
- fi
-fi
-
-AC_SUBST(GDK_X11_CFLAGS)
-AC_SUBST(GDK_X11_LIBS)
-
AC_ARG_ENABLE(gtk-theme,
[ --enable-gtk-theme Enable a RSVG based GTK+ theme engine [default=auto]],,
enable_gtk_theme=yes)
diff --git a/test-display.c b/test-display.c
index dae658d..ff12945 100644
--- a/test-display.c
+++ b/test-display.c
@@ -31,10 +31,6 @@
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
-#ifdef ENABLE_XEMBED
-#include <gdk/gdkx.h>
-#endif /* ENABLE_XEMBED */
-
#define DEFAULT_WIDTH 640
#define DEFAULT_HEIGHT 480
@@ -671,25 +667,10 @@ view_pixbuf (ViewerCbInfo * info, int xid, const char *color)
/* create toplevel window and set its title */
-#ifdef ENABLE_XEMBED
- if (xid > 0) {
- GdkWindow *gdk_parent;
-
- win = gtk_plug_new (0);
-
- gdk_parent = gdk_window_foreign_new (xid);
- gdk_window_get_geometry (gdk_parent, NULL, NULL, &win_width, &win_height, NULL);
-
- /* so that button and key presses get registered */
- gtk_widget_add_events (win, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
- } else
-#endif
- {
- win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- win_width = DEFAULT_WIDTH;
- win_height = DEFAULT_HEIGHT;
- }
+ win_width = DEFAULT_WIDTH;
+ win_height = DEFAULT_HEIGHT;
populate_window (win, info, xid, win_width, win_height);
@@ -721,16 +702,7 @@ view_pixbuf (ViewerCbInfo * info, int xid, const char *color)
gtk_widget_show_all (win);
-#ifdef ENABLE_XEMBED
- if (xid > 0) {
- XReparentWindow (GDK_WINDOW_XDISPLAY (gtk_widget_get_window(win)),
- GDK_WINDOW_XID (gtk_widget_get_window(win)), xid, 0, 0);
- XMapWindow (GDK_WINDOW_XDISPLAY (gtk_widget_get_window(win)), GDK_WINDOW_XID (gtk_widget_get_window(win)));
- } else
-#endif
- {
- set_window_title (info);
- }
+ set_window_title (info);
}
int
@@ -760,9 +732,6 @@ main (int argc, char **argv)
gint n_args = 0;
GOptionEntry options_table[] = {
-#ifdef ENABLE_XEMBED
- {"xid", 'i', 0, G_OPTION_ARG_INT, &xid, N_("XWindow ID [for X11 embedding]"), N_("<int>")},
-#endif
{"stdin", 's', 0, G_OPTION_ARG_NONE, &from_stdin, N_("Read from stdin instead of a file"),
NULL},
{"dpi-x", 'd', 0, G_OPTION_ARG_DOUBLE, &dpi_x, N_("Set the # of Pixels Per Inch"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]