summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.h
Commit message (Collapse)AuthorAgeFilesLines
* gtk: fix many callback annotations to include closure informationEvan Nemerson2014-05-271-1/+1
| | | | | | | | | Without this information introspection-based consumers don't realize they can include context information, but instead think that they receive an extra gpointer argument (which they don't know how to handle). https://bugzilla.gnome.org/show_bug.cgi?id=730745
* Drop unimplemented functionsMatthias Clasen2014-02-191-5/+0
| | | | | | These were added to the header by mistake in a recent commit. They have no implementation, so dropping them won't cause any harm.
* Add a function to determine the text directionMatthias Clasen2013-12-101-0/+7
| | | | | | | | This function can be used in the rare cases where the locale has to be changed after gtk_init(). Based on a patch by Jehan <jehan@girinstud.io>. https://bugzilla.gnome.org/show_bug.cgi?id=720096
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+35
| | | | Add annotations to all exported functions in GTK+ headers.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-4/+4
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use versioned deprecationsMatthias Clasen2012-02-271-2/+2
| | | | | | | This patch changes all uses of GDK_DEPRECATED(_FOR) in gtk headers by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions in 3.2 and 3.4.
* gtkmain.h: Used GDK_DEPRECATEDMurray Cumming2012-01-091-2/+2
| | | | | If we use just G_GNUC_DEPRECATED then it cannot be disabled by an ifdef.
* API: Deprecate key snoopingBenjamin Otte2012-01-061-0/+2
| | | | | You really shouldn't be doing this. If you have to, you can use gdk_window_add_filter() or listen to raw events on XI2.
* Fix win32 buildFridrich Štrba2011-01-111-1/+1
|
* Move docs for gtkmain inlineMatthias Clasen2011-01-041-58/+61
| | | | | | | | 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
* Remove gtktypeutils altogetherMatthias Clasen2011-01-041-1/+0
| | | | | | Based on patches by Javier Jardón. https://bugzilla.gnome.org/show_bug.cgi?id=629955
* Remove deprecated gtk_quit_* APIJavier Jardón2011-01-041-15/+0
|
* Drop g[dt]k_set_localeMatthias Clasen2010-12-211-1/+0
| | | | | | These functions were essentially just calling setlocale anyway. The X11 version was also setting a gdk_use_mb variable that is not used anywhere.
* gtkmain: Remove deprecated gtk_init_add() functionJavier Jardón2010-11-161-2/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=629955
* Deprecate gtk_init_add, gtk_remove_add and friendsMatthias Clasen2010-10-151-0/+2
| | | | | | This functions are going to be removed in GTK+ 3. https://bugzilla.gnome.org/show_bug.cgi?id=629955
* Remove GtkObject completelyMatthias Clasen2010-09-261-1/+2
|
* Don't use the same name for a function that used to be a variableTor Lillqvist2010-09-091-5/+11
| | | | | | | | Rename the gtk_major_version() etc functions I introduced yesterday to start with gtk_get. Avoids misleading results in client programs whose developers that don't notice the change or the compiler warnings, and when recompiling against gtk3 then use the function addresses as the version numbers.
* Turn the gtk version and age variables into functionsTor Lillqvist2010-09-081-14/+5
| | | | | | Having variables exported from a DLL is slightly painful and potentially error-prone on Windows, so let's try get rid of them now when we can. Starting with these.
* constify gtk_init_with_args()'s GOptionEntry argumentJavier Jardón2010-06-101-7/+7
| | | | | Reported by Nick Schermer in bug https://bugzilla.gnome.org/show_bug.cgi?id=621111
* Merge the xi2-for-master branchMatthias Clasen2010-05-251-0/+7
|
* Remove all deprecated stuff from gtkmainMichael Natterer2010-05-031-49/+0
|
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* gtk_init_with_args() arguments should be const gchar*Nick Schermer2009-10-261-2/+2
| | | | | | | | The translation_domain argument should be const gchar * to allow compilation with -Wwrite-strings. It only passes the argument to g_option_context_add_main_entries() which is already const gchar*. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=583305
* 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
* deprecate GtkDestroyNotify.Michael Natterer2008-06-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-18 Michael Natterer <mitch@imendio.com> * gtk/gtktypeutils.h: deprecate GtkDestroyNotify. * gtk/gtkactiongroup.[ch] * gtk/gtkcombobox.[ch] * gtk/gtkcontainer.[ch] * gtk/gtkliststore.[ch] * gtk/gtkmain.[ch] * gtk/gtkmenu.c * gtk/gtkstock.[ch] * gtk/gtktreedatalist.[ch] * gtk/gtktreemodelfilter.[ch] * gtk/gtktreemodelsort.[ch] * gtk/gtktreeprivate.h * gtk/gtktreeselection.[ch] * gtk/gtktreesortable.[ch] * gtk/gtktreestore.[ch] * gtk/gtktreeview.[ch] * gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g. svn path=/trunk/; revision=20448
* whitespace cleanup: remove trailing whitespace and excess newlines andMichael Natterer2008-05-281-1/+1
| | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk*.h: whitespace cleanup: remove trailing whitespace and excess newlines and sprinkled some newlines where needed. Zero code or formatting changes included. svn path=/trunk/; revision=20225
* define __GTK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk.h: define __GTK_H_INSIDE__ around including all other headers. * gtk/gtktypebuiltins.h.template * gtk/gtkversion.h.in * gtk/gtk*.h: add single-include guards that #error out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. * gtk/gtkprintbackend.h * gtk/gtkprinter-private.h * gtk/gtktextlayout.h * gtk/gtktexttagprivate.h * gtk/gtktexttypes.h * gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual headers in these private or semi-private headers. * gtk/gtkimmodule.h: also here because it's not in gtk.h. * gtk/gtkpagesetupunixdialog.h * gtk/gtkprinter.h * gtk/gtkprintjob.h * gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers. * gtk/gtkclist.h * gtk/gtkcombo.h * gtk/gtkctree.h * gtk/gtkfilesel.h * gtk/gtkitemfactory.h * gtk/gtklist.h * gtk/gtklistitem.h * gtk/gtkoldeditable.h * gtk/gtkoptionmenu.h * gtk/gtkpixmap.h * gtk/gtkpreview.h * gtk/gtksignal.h * gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h> instead of individual headers in these deprecated headers. They don't get included at all when GTK_DISABLE_DEPRECATED is defined, so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED and include them individually, which should continue to work. * gtk/gtkclist.c: include "gtkctree.h" because of the change above. svn path=/trunk/; revision=20221
* Make gtk_check_version() return const. (#496734, Nicolas Joseph)Matthias Clasen2007-11-191-3/+3
| | | | | | | | | | | 2007-11-19 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmain.[hc]: Make gtk_check_version() return const. (#496734, Nicolas Joseph) svn path=/trunk/; revision=19000
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-7/+2
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Make gtk argument parsing use goption. Add gtk_get_option_group andAnders Carlsson2004-09-051-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-09-05 Anders Carlsson <andersca@gnome.org> * gdk/gdk.c: (gdk_arg_class_cb), (gdk_arg_name_cb), (gdk_add_option_entries_libgtk_only), (gdk_pre_parse_libgtk_only), (gdk_parse_args): * gdk/gdk.h: * gdk/gdkinternals.h: * gdk/linux-fb/gdkmain-fb.c: (_gdk_windowing_init): * gdk/win32/gdkmain-win32.c: (_gdk_windowing_init): * gdk/x11/gdkdisplay-x11.c: (gdk_display_open): * gdk/x11/gdkmain-x11.c: (_gdk_windowing_init): * gtk/gtkmain.c: (gtk_arg_debug_cb), (gtk_arg_no_debug_cb), (gtk_arg_module_cb), (gtk_arg_warnings_cb), (do_pre_parse_initialization), (do_post_parse_initialization), (pre_parse_hook), (post_parse_hook), (gtk_get_option_group), (gtk_init_with_args), (gtk_parse_args): * gtk/gtkmain.h: Make gtk argument parsing use goption. Add gtk_get_option_group and gtk_init_with_args. * tests/testtreemodel.c: (main): Use gtk_init_with_args.
* Make it possible to specify additional modules to load via a setting.Matthias Clasen2004-09-011-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Ugh, forgotten ;Matthias Clasen2004-07-131-1/+1
|
* Add gtk_parse_args()Matthias Clasen2004-07-131-0/+3
|
* Change the return value from gint to gboolean. (#130718, reported byMatthias Clasen2004-01-071-1/+1
| | | | | | | | Wed Jan 7 23:07:28 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkmain.h: * gtk/gtkmain.c (gtk_events_pending): Change the return value from gint to gboolean. (#130718, reported by Johannes Weißl)
* Don't use zip -r on the etc directory, to avoid including editor backupTor Lillqvist2003-09-201-0/+2
| | | | | | | | | | | | | | | | | | | 2003-09-20 Tor Lillqvist <tml@iki.fi> * gtk-zip.sh.in: Don't use zip -r on the etc directory, to avoid including editor backup files. List files we want explicitly. * gtk/gtkmain.c (_gtk_get_lc_ctype): New function. On Unix, just calls setlocale (LC_CTYPE, NULL). On Windows, looks for the LC_ALL, LC_CTYPE and LANG environment variables, than calls g_win32_getlocale(). (gtk_get_default_language): Code snippet moved to above function, call it. * gtk/gtkimmulticontext.c (gtk_im_multicontext_get_slave) * gtk/gtkrc.c (gtk_rc_context_parse_file): Call _gtk_get_lc_ctype() instead of setlocale().
* Replace uses of gtk_timeout_* and gtk_idle_* by their non-deprecatedMatthias Clasen2003-02-051-2/+2
| | | | GLib counterparts. Fully deprecate gtk_timeout_* and gtk_idle_*.
* Deprecate gtk_paned_computed_position(). (#97077)Matthias Clasen2003-01-311-1/+2
| | | | | | | | | | | | | | | | | | | | | | 2003-01-31 Matthias Clasen <maclas@gmx.de> * gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077) * gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_* and gtk_input_* functions. (#71596) * gtk/gtkentry.c (gtk_entry_move_cursor): * gtk/gtklabel.c (gtk_label_move_cursor): Handle GTK_MOVEMENT_HORIZONTAL_PAGES in switches. * gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803) * gtk/gtkitemfactory.h: * gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate. (#69244) * gtk/tmpl/gtkmain.sgml: Deprecate the gtk_timeout_*, gtk_idle_* and gtk_input_* functions. (#71596)
* Include gtkbox.h and gtkwindow.h on Win32, as the defines for structTor Lillqvist2002-08-241-1/+4
| | | | | | | | 2002-08-25 Tor Lillqvist <tml@iki.fi> * gtk/gtkmain.h: Include gtkbox.h and gtkwindow.h on Win32, as the defines for struct packing checks use sizeof() on stuff from these. (#84211, Andreas Holzmann)
* Add a singleton object that we can use to get notification when displaysOwen Taylor2002-06-201-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Thu Jun 20 16:49:00 2002 Owen Taylor <otaylor@redhat.com> * gdk/gdkdisplaymanager.[ch] gdk/gdk.[ch] gdk/gdkdisplay.c gdk/gdkinternals.h gdk/x11/gdkdisplay-x11.c gdk/win32/gdkdisplay-win32.c: Add a singleton object that we can use to get notification when displays appear / disappear or the default display changes. gdk_set_default_display() => gdk_display_manager_set_default_display() gdk_list_displays() => gdk_display_manager_list_displays(). (#85696) * gdk/Makefile.am gdk/gdkmarshalers.list: Add marshaler generation. * gdk/gdkintl.h: Add this. * gtk/gtkmain.c: Add gtk_parse_args() that initializes GTK+ without opening a display. * gtk/gtkmain.c: Set things up so if a module exports gtk_module_init() and gtk_module_display_init(), then we treat it as multihead aware, otherwise, we only initialize it after the default display is set.
* gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib) Fix typo, thanks toTor Lillqvist2002-04-181-4/+6
| | | | | | | | | | | | | | | | 2002-04-18 Tor Lillqvist <tml@iki.fi> * gdk-pixbuf/Makefile.am (uninstall-libtool-import-lib) * gdk/Makefile.am (uninstall-libtool-import-lib): Fix typo, thanks to David Sterba for noticing. * gtk/gtkmain.h * gtk/gtkmain.c (gtk_init_abi_check, gtk_init_check_abi_check): In GTK+ 2.0 the GtkWindow struct actually is the same size in gcc on Win32 whether compiled with -fnative-struct or not. Unfortunately this wan't noticed until now. So, from now on, check some other struct, too, for which the use of -fnative-struct still matters. GtkBox is one such.
* fix typo in gtk_init_check macro, which caused crashes if argc != 0Hans Breuer2002-03-291-1/+1
| | | | | | | | | 2002-03-29 Hans Breuer <hans@breuer.org> * gtk/gtkmain.h : fix typo in gtk_init_check macro, which caused crashes if argc != 0 * gtk/stock-icons/makefile.msc : added new icons
* Add routines _gtk_find_module(), _gtk_get_module_path() to look up aOwen Taylor2002-02-191-0/+3
| | | | | | | | | | | | | | | | | Mon Feb 18 23:16:16 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.[ch]: Add routines _gtk_find_module(), _gtk_get_module_path() to look up a module of an arbitrary type in a standard fashion. (#68474) * gtk/gtkrc.c: Make module_path keyword warn and do nothing. Remove the im_module_path keyword. * gtk/gtkrc.c (gtk_rc_get_im_module_path): Fix to return the standard path instead of one determined from im_module_path and GTK_IM_MODULE_PATH. * gtk+-2.0.pc.in: Add gtk_host to go along with gtk_binary_version.
* Version 1.3.11, interface, binary age 0.Owen Taylor2001-11-211-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Nov 21 15:21:26 2001 Owen Taylor <otaylor@redhat.com> * configure.in (GTK_MICRO_VERSION): Version 1.3.11, interface, binary age 0. * NEWS: Updates * gtk/gtktreemodel.c gtk/gtkrc.c gtk/gtkentry.c: SGML fixes in docs. * gtk/gtkmain.h: Remove unused and misnamespaced get_gtk_win32_directory() prototype. * gdk/gdkimage.c (gdk_image_get): Fix parameter names to match header. * gdk/gdkwindow.h: Fix parameters to gdk_window_shape_combine_mask(), gdk_window_set_transient_for(), gdk_window_set_geometry_hints(), to match docs. * gdk/gdkevents.c (gdk_event_get_coords) gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_active) gtk/gtkdnd.c (gtk_drag_set_icon_stock): Fix parameter names in docs. * docs/faq/Makefile.am (FAQ_FILES): Add missing files. (#64961, Akira Tagoh)
* Deprecate gtk_entry_set_editable. (#58768, Vitaly Tishkov)GTK_MULTIHEAD_MERGEPOINT_22_10_01Owen Taylor2001-10-221-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.h: Deprecate gtk_entry_set_editable. (#58768, Vitaly Tishkov) * gtk/gtkobject.h: Deprecate with abandon. (#61942, Vitaly Tishkov, Matthias Clasen) * gtk/gtksignal.h: Deprecate everything. * gtk/gtkmain.h (GTK_PRIORITY_INTERNAL): Deprecate all GTK_PRIORITY_* defines other than GKT_PRIORITY_RESIZE> (#61942, Matthias Clasen) * gtk/gtkstyle.h: Deprecate gtk_draw_*. (#61140, Havoc Pennington) * gtk/gtkitemfactory.h: Deprecate compat functions for GtkMenuFactory code. (#62071) * gdk/gdkdrawable.h: Deprecate gdk_draw_string, gdk_draw_text,gdk_draw_text_wc. (#62071) * gtk/{gtkentry.c,gtklabel.c,gtkoldeditable.c,gtktextview.c}: Use GDK_SELECTION_CLIPBOARD instead of GDK_NONE in calls to gtk_clipboard_get().
* Actually export gtk_disable_setlocale(). (Caught by Sven Neumann)Owen Taylor2001-10-191-0/+2
| | | | | | | Fri Oct 19 11:24:58 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.[ch] (gtk_disable_setlocale): Actually export gtk_disable_setlocale(). (Caught by Sven Neumann)
* updated externalsHans Breuer2001-09-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-21 Hans Breuer <hans@breuer.org> * gdk/gdk.def : * gtk/gtk.def : updated externals * gtk/gtkmain.h : define get_gtk_win32_directoty () * gtk/gtkmain.c (find_module) : don't use module_name after freeing it. Also handle that Win32 pathes cann't be hard-coded * gtk/gtkrc.c : use get_gtk_win32_directoty () to cleanup the various module, themes etc directory calculations * gdk/win32/gdkgeometry-win32.c : some more hacking to get coordinates >16 bit right. The size limit within Win9x appears _not_ to be 32767 but slightly smaller ... * gdk/win32/gdkwindow-win32.c : use impl->position_info to avoid >16 bit clipping. Added dummy body for gdk_window_set_icon_list () * gdk/win32/gdkdrawable-win32.c : implement gdk_win32_drawable_get_handle () * gdk/win32/gdkevents-win32.c : some tweaking to get better expose handling. I'm not sure if it is better now, but at least not worse * gdk/win32/makefile.msc : define INSIDE_GDK_WIN32, some cleanup * gdk/win32/gdkwin32.h : reflect recent API restrictions
* Add missing gdk_rectangle_get_type() prototype.Owen Taylor2001-06-141-5/+3
| | | | | | | | | | | | | | | | | Mon Jun 11 18:15:16 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdk.h: Add missing gdk_rectangle_get_type() prototype. * gtk/gtk[hv]scale.c: Include math.h, stdlib.h * gdk/gdkpango.h gtk/gtkclist.c gtk/gtkentry.c gtk/gtkmain.[ch] gtk/gtkspinbutton.c gtk/gtkstyle.c gtk/gtktextbuffer.c gtk/gtktextdisplay.c gtk/gtktextiter.[ch] gtk/gtktextlayout.c gtk/gtktexttag.[ch] gtk/gtkwidget.c: Adapt to recent changes in Pango. * tests/testgtk.c: Set language tags with gtk_label_set_markup() to test whether the basic engine honors them.
* Applied patch from Ron Steinke to add signal accumulators so that signalsOwen Taylor2001-04-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Mon Apr 2 16:41:08 2001 Owen Taylor <otaylor@redhat.com> * Applied patch from Ron Steinke to add signal accumulators so that signals with the convention 'TRUE return means handled' stop emission on a TRUE return. * gtk/gtkmain.[ch]: Add private accumulator _gtk_boolean_handled_accumulator, used throughout GTK+. * gtk/gtkspinbutton.c: Add accumulator for ::output. * gtk/gtktipsquery.c: Add accumulator for ::widget_selected * gtk/gtkwidget.c: Add accumulators for event signals, ::drag_motion, ::drag_drop. Use _gtk_boolean_handled_accumator for ::mnemonic-activate. * gtk/gtkwindow.c: Add accumulator for ::frame_event Mon Apr 2 16:24:21 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.c: Add missing include.