Home | History | Annotate | Download | only in patches
      1 --- control-center-2.16.0/config.h.in-orig	2006-09-05 14:38:47.724266000 -0500
      2 +++ control-center-2.16.0/config.h.in	2006-09-05 14:39:07.362578000 -0500
      3 @@ -45,6 +45,9 @@
      4  /* Defined when evolution-data-server libebook-1.2 is detected */
      5  #undef HAVE_LIBEBOOK
      6  
      7 +/* Defined when libxklavier is detected */
      8 +#undef HAVE_LIBXKLAVIER
      9 +
     10  /* Define to 1 if you have the <locale.h> header file. */
     11  #undef HAVE_LOCALE_H
     12  
     13 --- control-center-2.16.0/configure.in-orig	2006-09-05 14:23:13.639863000 -0500
     14 +++ control-center-2.16.0/configure.in	2006-09-05 14:56:41.467141000 -0500
     15 @@ -109,9 +109,19 @@ PKG_CHECK_MODULES(GNOME_DESKTOP, gnome-d
     16  PKG_CHECK_MODULES(DEFAULT_APPLICATIONS_CAPPLET, libxml-2.0)
     17  PKG_CHECK_MODULES(SOUND_CAPPLET, esound gstreamer-0.10)
     18  PKG_CHECK_MODULES(METACITY, libmetacity-private)
     19 -PKG_CHECK_MODULES(LIBXKLAVIER, libxklavier >= 2.91,,
     20 -    AC_MSG_ERROR([gnome-control-center depends on libxklavier >= 2.91.
     21 -The latest release is available from http://prdownloads.sourceforge.net/gswitchit], 1))
     22 +
     23 +AC_ARG_ENABLE(libxklavier,
     24 +  AC_HELP_STRING([--disable-xklavier],
     25 +                 [Do not build with libxklavier support]),,
     26 +                 enable_libxklavier=yes)
     27 +
     28 +if test x$enable_libxklavier = xyes; then
     29 +   PKG_CHECK_MODULES(LIBXKLAVIER, libxklavier >= 2.91,,
     30 +       AC_MSG_ERROR([gnome-control-center depends on libxklavier >= 2.91.
     31 +   The latest release is available from http://prdownloads.sourceforge.net/gswitchit], 1))
     32 +   AC_DEFINE([HAVE_LIBXKLAVIER], 1, [Defined when libxklavier is detected])
     33 +fi
     34 +AM_CONDITIONAL(HAVE_LIBXKLAVIER, [test $enable_libxklavier = yes])
     35  
     36  dnl
     37  dnl Check for Xft version 2; we build in extra functionality to the font capplet
     38 --- control-center-2.16.0/Makefile.am-orig	2006-09-05 14:27:01.521538000 -0500
     39 +++ control-center-2.16.0/Makefile.am	2006-09-05 14:42:22.605183000 -0500
     40 @@ -1,4 +1,11 @@
     41 -SUBDIRS = po libsounds libbackground libwindow-settings libgswitchit libkbdraw gnome-settings-daemon capplets control-center help vfs-methods idl schemas $(TYPING_BREAK)
     42 +
     43 +SUBDIRS = po libsounds libbackground libwindow-settings 
     44 +
     45 +if HAVE_LIBXKLAVIER
     46 +SUBDIRS += libgswitchit
     47 +endif
     48 +
     49 +SUBDIRS += libkbdraw gnome-settings-daemon capplets control-center help vfs-methods idl schemas $(TYPING_BREAK)
     50  
     51  ACLOCAL_AMFLAGS = -I m4
     52  
     53 --- control-center-2.16.0/capplets/keyboard/Makefile.am-orig	2005-08-26 05:39:16.000000000 -0500
     54 +++ control-center-2.16.0/capplets/keyboard/Makefile.am	2006-09-05 16:23:02.519745000 -0500
     55 @@ -1,16 +1,23 @@
     56  bin_PROGRAMS = gnome-keyboard-properties
     57  
     58 +if HAVE_LIBXKLAVIER
     59 +LIBXKLAVIER_FILES = \
     60 +		     gnome-keyboard-properties-xkb.c \
     61 +		     gnome-keyboard-properties-xkbmc.c \
     62 +		     gnome-keyboard-properties-xkblt.c \
     63 +		     gnome-keyboard-properties-xkbot.c \
     64 +		     gnome-keyboard-properties-xkbpv.c \
     65 +		     gnome-keyboard-properties-xkb.h
     66 +SWITCHIT_LIB = ../../libgswitchit/libgswitchit.a
     67 +endif
     68 +
     69 +
     70  gnome_keyboard_properties_SOURCES = gnome-keyboard-properties.c \
     71 -                                    gnome-keyboard-properties-xkb.c \
     72 -                                    gnome-keyboard-properties-xkbmc.c \
     73 -                                    gnome-keyboard-properties-xkblt.c \
     74 -                                    gnome-keyboard-properties-xkbot.c \
     75 -                                    gnome-keyboard-properties-xkbpv.c \
     76 -                                    gnome-keyboard-properties-xkb.h
     77 +                                    $(LIBXKLAVIER_FILES)
     78  gnome_keyboard_properties_LDADD =				\
     79  	../accessibility/keyboard/libaccessibility-keyboard.a 	\
     80  	$(GNOMECC_CAPPLETS_LIBS) $(LIBXKLAVIER_LIBS) \
     81 -	../../libgswitchit/libgswitchit.a \
     82 +	$(SWITCHIT_LIB) \
     83  	../../libkbdraw/libkbdraw.a
     84  
     85  @INTLTOOL_DESKTOP_RULE@
     86 --- control-center-2.16.0/gnome-settings-daemon/Makefile.am-orig	2006-09-05 14:31:50.705975000 -0500
     87 +++ control-center-2.16.0/gnome-settings-daemon/Makefile.am	2006-09-05 15:03:27.781221000 -0500
     88 @@ -9,6 +9,14 @@ INCLUDES=$(DBUS_CFLAGS) $(LIBXKLAVIER_CF
     89  
     90  libexec_PROGRAMS=gnome-settings-daemon
     91  
     92 +if HAVE_LIBXKLAVIER
     93 +LIBXKLAVIER_FILES = \
     94 +        gnome-settings-keyboard-xkb.h   \
     95 +        gnome-settings-keyboard-xkb.c
     96 +SWITCHIT_LIB = \
     97 +	$(top_builddir)/libgswitchit/libgswitchit.a
     98 +endif
     99 +
    100  gnome_settings_daemon_SOURCES =	\
    101  	factory.c			\
    102  	eggaccelerators.h		\
    103 @@ -21,8 +29,7 @@ gnome_settings_daemon_SOURCES =	\
    104  	gnome-settings-mouse.c		\
    105  	gnome-settings-multimedia-keys.h \
    106  	gnome-settings-multimedia-keys.c \
    107 -	gnome-settings-keyboard-xkb.h	\
    108 -	gnome-settings-keyboard-xkb.c	\
    109 +	$(LIBXKLAVIER_FILES)		\
    110  	gnome-settings-keyboard.h	\
    111  	gnome-settings-keyboard.c	\
    112  	gnome-settings-background.h	\
    113 @@ -71,7 +78,7 @@ gnome_settings_daemon_LDADD = \
    114  	$(LIBXKLAVIER_LIBS)						\
    115  	$(top_builddir)/libbackground/libbackground.la			\
    116  	$(top_builddir)/libsounds/libsounds.a				\
    117 -	$(top_builddir)/libgswitchit/libgswitchit.a			\
    118 +	$(SWITCHIT_LIB)							\
    119  	$(top_builddir)/libwindow-settings/libgnome-window-settings.la 	\
    120  	$(top_builddir)/gnome-settings-daemon/actions/libacme.la	\
    121  	$(GNOME_SETTINGS_DAEMON_LIBS)					\
    122 --- control-center-2.16.0/gnome-settings-daemon/gnome-settings-daemon.c-orig	2006-09-05 14:33:13.786899000 -0500
    123 +++ control-center-2.16.0/gnome-settings-daemon/gnome-settings-daemon.c	2006-09-05 15:01:11.257424000 -0500
    124 @@ -46,7 +46,9 @@
    125  #include "gnome-settings-font.h"
    126  #include "gnome-settings-xsettings.h"
    127  #include "gnome-settings-mouse.h"
    128 +#ifdef HAVE_LIBXKLAVIER
    129  #include "gnome-settings-keyboard-xkb.h"
    130 +#endif
    131  #include "gnome-settings-keyboard.h"
    132  #include "gnome-settings-background.h"
    133  #include "gnome-settings-sound.h"
    134 @@ -325,9 +327,11 @@ gnome_settings_daemon_new (void)
    135    gnome_settings_font_init (client);
    136    gnome_settings_xsettings_init (client);
    137    gnome_settings_mouse_init (client);
    138 +#ifdef HAVE_LIBXKLAVIER
    139  /* Essential - xkb initialization should happen before */
    140    gnome_settings_keyboard_xkb_set_post_activation_callback ((PostActivationCallback)gnome_settings_load_modmap_files, NULL);
    141    gnome_settings_keyboard_xkb_init (client);
    142 +#endif
    143    gnome_settings_keyboard_init (client);
    144    gnome_settings_multimedia_keys_init (client);
    145  /* */
    146 @@ -380,8 +384,10 @@ gnome_settings_daemon_new (void)
    147    gnome_settings_font_load (client);
    148    gnome_settings_xsettings_load (client);
    149    gnome_settings_mouse_load (client);
    150 +#ifdef HAVE_LIBXKLAVIER
    151  /* Essential - xkb initialization should happen before */
    152    gnome_settings_keyboard_xkb_load (client);
    153 +#endif
    154    gnome_settings_keyboard_load (client);
    155    gnome_settings_multimedia_keys_load (client);
    156  /* */
    157 --- control-center-2.16.0/capplets/keyboard/gnome-keyboard-properties.c-orig	2006-09-05 14:29:11.146860000 -0500
    158 +++ control-center-2.16.0/capplets/keyboard/gnome-keyboard-properties.c	2006-09-05 15:55:44.488954000 -0500
    159 @@ -38,7 +38,9 @@
    160  #include "capplet-stock-icons.h"
    161  #include <../accessibility/keyboard/accessibility-keyboard.h>
    162  
    163 +#ifdef HAVE_LIBXKLAVIER
    164  #include "gnome-keyboard-properties-xkb.h"
    165 +#endif
    166  
    167  enum
    168  {
    169 @@ -169,7 +171,9 @@ setup_dialog (GladeXML       *dialog,
    170  	
    171  	gtk_label_set_use_markup (GTK_LABEL (GTK_BIN (WID ("break_enabled_toggle"))->child), TRUE);
    172  	
    173 +#ifdef HAVE_LIBXKLAVIER
    174          setup_xkb_tabs(dialog,changeset);
    175 +#endif
    176  }
    177  
    178  static void
    179 @@ -250,8 +254,19 @@ main (int argc, char **argv) 
    180  		changeset = NULL;
    181  		dialog = create_dialog ();
    182  		setup_dialog (dialog, changeset);
    183 +
    184 +#ifndef HAVE_LIBXKLAVIER
    185 +		/* Do not display Layout tabs if libxklavier is not enabled */
    186 +		gtk_notebook_remove_page (GTK_NOTEBOOK (WID ("keyboard_notebook")), 2);
    187 +		gtk_notebook_remove_page (GTK_NOTEBOOK (WID ("keyboard_notebook")), 1);
    188 +#endif
    189 +
    190  		if (switch_to_typing_break_page) {
    191 +#ifdef HAVE_LIBXKLAVIER
    192  			gtk_notebook_set_current_page (GTK_NOTEBOOK (WID ("keyboard_notebook")), 3);
    193 +#else
    194 +			gtk_notebook_set_current_page (GTK_NOTEBOOK (WID ("keyboard_notebook")), 1);
    195 +#endif
    196  		}
    197  		capplet_set_icon (WID ("keyboard_dialog"),
    198  				  "gnome-dev-keyboard");
    199