summaryrefslogtreecommitdiff
path: root/gtk/gtkmodules.c
Commit message (Collapse)AuthorAgeFilesLines
* gdk: Remove new gdk_display_manager_peek() APIBenjamin Otte2013-05-021-11/+8
| | | | | | It's not necessary anymore because gdk_display_manager_get() always succeeds and the value is independant of when it was called as it's no longer backend specific.
* gtk: Simplify code for reduced screen countBenjamin Otte2013-04-061-24/+13
|
* Make gtk_init_check work as expectedMatthias Clasen2013-03-231-19/+23
| | | | | | | | | | When no GDK backend can be initialized (either because GDK_BACKEND has been set to the wrong value, or the backends are simply not included), the expectation is that gtk_init_check should return FALSE, not error out. This commit makes it so, by using gdk_display_manager_peek instead of gdk_display_manager_get in code paths that are used during initialization.
* gtk: Always load the atk-bridgeBastien Nocera2012-06-151-2/+3
| | | | | | Slightly modified by Alejandro Piñeiro https://bugzilla.gnome.org/show_bug.cgi?id=677491
* Don't load binary modules from the home directory by defaultWilliam Jon McCann2012-04-301-14/+1
| | | | | | | We should rely on the module path environment variables being set correctly for the architecture rather than load from .gtk-3.0 https://bugzilla.gnome.org/show_bug.cgi?id=646631
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Move gtkstyle and gtkrc to deprecated/Matthias Clasen2011-11-021-1/+0
| | | | | | This required a somewhat more substantial include reshuffling. Some typedefs have been moved to gtkiconfactory.h and to gtksettings.h.
* gtk: move _gtk_modules_has_mixed_deps() to gtkmodlesprivate.hMichael Natterer2011-10-231-1/+27
| | | | and remove gtkmainprivate.h completely.
* gtk: clean up the private horrorMichael Natterer2011-10-221-2/+3
| | | | | | | | | | | - add gtkmodulesprivate.h and move stuff there from gtkprivate.h - add gtkprivate.c and move stuff there from gtkmain.c - add gtkwin32.c and move stuff there from gtkmain.c - don't redefine GTK_DATADIR and friends in gtkprivate.h - have _gtk_get_datadir() and friends on all platforms - remove the horrid hacks where gtkprivate.h can't be included, or must be included later due to redefinition of the compile-time directories
* Use G_VALUE_INITJavier Jardón2011-10-151-1/+1
| | | | Instead of an explicit { 0, } when declaring the variable.
* Fix module blacklistingMatthias Clasen2011-09-231-0/+2
| | | | | | | | | | | | The handling of the module lists is a bit confusing here. There is a global list that is populated with initial modules from GTK_MODULES, and then there is a second list that is suppposed to hold the modules loaded from the gtk-modules xsetting, which we attach to the GtkSettings object. The blacklisting caused us to put the wrong modules into the second list, and mess up the module refcounts, eventually double-freeing memory when the setting changes repeatedly. https://bugzilla.gnome.org/show_bug.cgi?id=659966
* gtkmodules: don't append NULL to module list for blacklisted moduleDan Winship2011-09-081-1/+1
| | | | fixes a crash when removing "gail" from gtksettings-specified modules
* Make the gail blacklisting more quietMatthias Clasen2011-09-051-6/+12
| | | | Don't mention blacklisted modules at all if they are not found.
* modules: Blacklist gailBenjamin Otte2011-07-061-1/+20
| | | | | And print a message when somebody has it enabled that indicates that something is wrong but doesn't sound too scary.
* Extend the mixed-dependency check to modules as wellMatthias Clasen2011-02-081-6/+21
| | | | This helps prevent accidents with GTK_PATH.
* Move docs for gtkmain inlineMatthias Clasen2011-01-041-1/+1
| | | | | | | | At the same time, introduce a gtkmainprivate.h header and various other cleanups. Based on a patch by Tadej Borovšak. https://bugzilla.gnome.org/show_bug.cgi?id=617471
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-1/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Make 3.0 parallel-installable to 2.xMatthias Clasen2010-05-081-3/+3
| | | | | | | | | | | | | | | In particular, rename - libraries to lib*-3.0.so - pc files to *-3.0.pc - include paths to /usr/include/gtk-3.0/* - module paths to /usr/lib/gtk-3.0/* - rc files names to gtk-3.0/gtkrc - commandline utilities to *-3.0 - adjust documentation Also change the install location for unix-print headers to /usr/include/gtk-3.0/unix-print/gtk.
* Fix casting problem in gmodule code.Brian Cameron2009-04-241-2/+9
| | | | | | | This fixes bug 579884. Previously the return value of g_slist_find_custom was being recasted as type (GtkModuleInfo *). This patch sets the return value to a temporary variable of type (GSList *), and sets info to temp->data. This avoids a crashing problem.
* Add some debug output.Matthias Clasen2008-10-041-0/+2
| | | | | | | | | | | 2008-10-03 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmodules.c (_gtk_modules_settings_changed): Add some debug output. svn path=/trunk/; revision=21583
* Bug 552153 – GtkModules loading with XSettings doesn't work if theCosimo Cecchi2008-09-131-5/+7
| | | | | | | | | | | | | | 2008-09-13 Cosimo Cecchi <cosimoc@gnome.org> Bug 552153 – GtkModules loading with XSettings doesn't work if the GTK_MODULES env var isn't set. * gtk/gtkmain.c: (do_post_parse_initialization): * gtk/gtkmodules.c: (_gtk_modules_init): Call _gtk_modules_init () even if gtk_modules_string is NULL, so that GtkModules specified with XSettings could be loaded. svn path=/trunk/; revision=21380
* Don't do funny casts to avoid compiler warningsFederico Mena Quintero2008-07-181-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-18 Federico Mena Quintero <federico@novell.com> * demos/gtk-demo/changedisplay.c (find_toplevel_at_pointer): Don't do funny casts to avoid compiler warnings. * demos/gtk-demo/textview.c (easter_egg_callback): Likewise. * gtk/gtkmain.c (rewrite_event_for_grabs, gtk_get_event_widget): Likewise. * gtk/gtkmodules.c (load_module): Likewise. * gtk/gtkselection.c (gtk_selection_convert): Likewise. * gtk/gtktipsquery.c (gtk_tips_query_event): Likewise. * gtk/queryimmodules.c (query_module): Likewise. * tests/testgtk.c (create_gridded_geometry, create_key_lookup) (find_widget_at_pointer): Likewise. Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=20862
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* include <pango/pango.h> instead of <pango/pango-layout.h>.Michael Natterer2008-04-251-1/+0
| | | | | | | | | | | | | | | | | | | | 2008-04-25 Michael Natterer <mitch@imendio.com> * gtk/gtkprintcontext.h: include <pango/pango.h> instead of <pango/pango-layout.h>. * gtk/gtkiconfactory.c * gtk/gtkimmodule.c * gtk/gtkmain.c * gtk/gtkmodules.c * gtk/queryimmodules.c: remove inclusion of single files from pango, none of them was actually needed. * modules/input/gtkimcontextime.c: include <pango/pango.h> instead of <pango/pango-utils.h>. svn path=/trunk/; revision=20042
* added missing \n to g_print() in GTK_NOTE().Michael Natterer2007-09-041-2/+2
| | | | | | | | | 2007-09-04 Michael Natterer <mitch@imendio.com> * gtk/gtkmodules.c: added missing \n to g_print() in GTK_NOTE(). svn path=/trunk/; revision=18720
* Set default_display_opened before loading modules. (#393102, BrianMatthias Clasen2007-01-081-0/+1
| | | | | | | | | | | 2007-01-08 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmodules.c (_gtk_modules_init): Set default_display_opened before loading modules. (#393102, Brian Cameron) svn path=/trunk/; revision=17114
* Commit a patch by Behdad to fix typos, omissions and other errors in theMatthias Clasen2006-09-101-0/+1
| | | | | | | | 2006-09-10 Matthias Clasen <mclasen@redhat.com> * Commit a patch by Behdad to fix typos, omissions and other errors in the symbol aliasing, and add checks for local PLT entries. (#354687, Behdad Esfahbod)
* Use local binding when loading modules. (#351868)Matthias Clasen2006-08-261-1/+1
| | | | | | | 2006-08-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmodules.c (find_module): Use local binding when loading modules. (#351868)
* revert a change that causes a11y regressions in OOoMatthias Clasen2006-08-171-1/+1
|
* Use G_MODULE_BIND_LAZY when opening modules.Matthias Clasen2005-12-161-1/+1
| | | | | | | | | | 2005-12-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilesystem.c (gtk_file_system_module_load): * gtk/gtkimmodule.c (gtk_im_module_load): * gtk/gtkthemes.c (gtk_theme_engine_load): * gtk/gtkmodules.c (find_module): Use G_MODULE_BIND_LAZY when opening modules.
* Intern some more strings.Matthias Clasen2005-09-011-2/+3
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Also intern static strings passed to g_object_set_data()Matthias Clasen2005-08-311-2/+2
|
* Don't reverse the order of modules when putting them in gtk_modules.Matthias Clasen2005-01-201-1/+1
| | | | | | | | 2005-01-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmodules.c (load_module): Don't reverse the order of modules when putting them in gtk_modules. (#162676, Dennis Cranston, patch by Remus Draica)
* gtk/gtkmodules.c (get_module_path) With g_getenv() now returning UTF-8 onTor Lillqvist2005-01-011-14/+0
| | | | | | | | | | 2005-01-01 Tor Lillqvist <tml@iki.fi> * gtk/gtkmodules.c (get_module_path) * gtk/gtkrc.c (gtk_rc_make_default_dir, gtk_rc_get_im_module_file, gtk_rc_get_theme_dir, gtk_rc_add_initial_default_files): With g_getenv() now returning UTF-8 on Win32, no need to call g_locale_to_utf8().
* gtk/gtkaccelmap.[ch] gtk/gtkfilechooser.[ch] gtk/gtkfilesel.cTor Lillqvist2004-12-121-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-12-12 Tor Lillqvist <tml@iki.fi> * gtk/gtkaccelmap.[ch] * gtk/gtkfilechooser.[ch] * gtk/gtkfilesel.c * gtk/gtkfilesystemwin32.c * gtk/gtkiconfactory.[ch] * gtk/gtkicontheme.[ch] * gtk/gtkimage.[ch] * gtk/gtkimmodule.c * gtk/gtkmodules.c * gtk/gtkrc.[ch] * gtk/gtkuimanager.[ch] * gtk/gtkwindow.[ch] * gtk/updateiconcache.c * gtk/gtk.symbols: Use gstdio wrappers. On Windows, convert environment variables referring to pathnames from locale encoding to UTF-8. As in GLib, in order to preserve Windows DLL ABI stability, add binary compatibility versions of functions that take file names as arguments, or return file names. Add a _utf8 suffix to the "real" such functions on Windows. The ABI compatibility versions keep the old name. * gtk/Makefile.am: Strip PRIVATE symbols from the GNU import library. * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Implement file mapping on Win32. * gtk/updateiconcache.c: Don't crash if invoked without argument. Use binary mode when opening file. * modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am: Install gtkrc in correct place, in <datadir>/themes/MS-Windows/gtk-2.0.
* updatedHans Breuer2004-10-291-0/+1
| | | | | | | | | | | 2004-10-29 Hans Breuer <hans@breuer.org> * gdk/makefile.msc gtk/makefile.msc.in : updated * gdk/win32/gdkdisplay-win32.c : dummy implementations for gdk_display_supports_clipboard_persistence, gdk_display_store_clipboard * gtk/gtkmodules.c : #include "gtkprivate.h" for GTK_LIBDIR
* Make it possible to specify additional modules to load via a setting.Matthias Clasen2004-09-011-0/+540
2004-09-01 Matthias Clasen <mclasen@redhat.com> Make it possible to specify additional modules to load via a setting. (#117236, Alex Graveley) * gtk/gtkmodules.h: * gtk/gtkmodules.c: New files which contain the module handling code which was previously in gtkmain.[hc]. Additionally, the code now looks for the gtk-modules setting, which can specify additional modules to load. * gtk/gtkmain.c: * gtk/gtkmain.h: Remove all the module handling code. * gtk/gtkdebug.h: Add a debug flag for modules. * gtk/gtk.h: Include gtkmodules.h * gtk/Makefile.am (gtk_public_h_sources): Add gtkmodules.h (gtk_c_sources): Add gtkmodules.c * gtk/gtksettings.c: Add the gtk-modules setting. * gdk/x11/gdkevents-x11.c: Add the Gtk/Modules XSetting.