summaryrefslogtreecommitdiff
path: root/gtk/gtkmodules.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove some unused codeMatthias Clasen2018-02-181-74/+0
| | | | No more callers of _gtk_find_module.
* Move the mixed module check functionMatthias Clasen2018-02-181-28/+0
| | | | This is only called in one place, move the function there.
* Remove gtkmodules.hMatthias Clasen2018-02-181-1/+0
| | | | | | We don't use these definitions anymore. Also clean up the docs wrt to modules.
* Stop loading modulesMatthias Clasen2018-02-181-317/+0
| | | | | | We no longer look at the GTK_MODULES environment variables. With this commit, we stop loading general-purpose modules altogether.
* Stop using settings for modulesMatthias Clasen2018-02-181-64/+0
| | | | | | | | The Wayland backend was already not supporting this setting since it is an XSetting that is not backed by a GSetting. Drop this setting altogether, since we will stop supporting general-purpose modules.
* modules: Avoid GdkScreen apiMatthias Clasen2017-10-301-7/+2
| | | | No need for this here either.
* gtk: Avoid using gdk_screen_get_settingMatthias Clasen2017-10-301-5/+3
| | | | We can get the setting from the display instead.
* modules: Add a check for GTK3 symbolsBenjamin Otte2016-11-201-0/+2
| | | | This way, we can warn if GTK2 or GTK3 are linked into libgtk4.
* gtk: Update path references from gtk-3.0 to gtk-4.0Rico Tzschichholz2016-10-231-2/+2
|
* Stop using pango_split_file_listMatthias Clasen2016-03-261-7/+4
| | | | | Add a copy of this deprecated utility in gtkutils.c and use it instead of the pango API.
* Don't use g_print for debug outputMatthias Clasen2016-02-281-6/+6
| | | | | | The g_print documentation explicitly says not to do this, since g_print is meant to be redirected by applications. Instead use g_message for logging that can be triggered via GTK_DEBUG.
* gdk: Deprecate gdk_display_get_screenRobert Ancell2015-10-271-2/+2
|
* gtk: Add deprecation guards for newest pango deprecationsBenjamin Otte2015-05-281-0/+4
|
* Revert "Add private api to load a single module"Matthias Clasen2014-05-141-7/+0
| | | | This reverts commit 7f9a0dbe164f7c731d24c4890dde51391787e966.
* Add private api to load a single moduleMatthias Clasen2014-05-101-0/+7
| | | | | In the following commits, this function will be used to load the gtkparasite module.
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of Return value:
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* 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().