summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.h
Commit message (Collapse)AuthorAgeFilesLines
* Convert headers to #pragma onceMatthias Clasen2023-03-311-3/+1
| | | | The conversion was done by guard2one.
* Annotate gtk_get_default_language as constMatthias Clasen2021-09-141-1/+1
|
* Move version-related functions to gtkversion.cMatthias Clasen2020-09-131-22/+3
| | | | | This is just an internal cleanup, to make gtkmain.c a bit less messy.
* Replace "gchar" with "char"Benjamin Otte2020-07-251-1/+1
|
* Drop gtk_get_current_ apisMatthias Clasen2020-04-111-9/+0
| | | | | | | | We have event controller apis to replace these. There is one remaining use of gtk_get_current_event_time in gtkwindow.c, so we can't drop the implementation yet. Add a section in the migration guide for this.
* Drop gtk_grab_add/remove from public apiMatthias Clasen2020-02-281-5/+0
| | | | | The only form in which we still allow grabs to take place is with modal toplevels.
* Drop gtk_grab_get_currentMatthias Clasen2020-02-281-2/+0
| | | | Another grab-related api that we are not using.
* Drop device grabsMatthias Clasen2020-02-281-8/+0
| | | | We were not using this api at all, so lets drop it.
* Stop exporting gtk_get_event_widgetMatthias Clasen2020-02-211-2/+0
| | | | | This is non-essential convenience API, and we don't really expose events to applications anymore.
* Strip const from GdkEventMatthias Clasen2020-02-211-1/+1
| | | | | Events are refcounted structs, and we generally don't pass these as const.
* main: Drop gtk_get_event_targetMatthias Clasen2020-02-211-8/+0
| | | | This is no longer used.
* Drop gtk_get_main_threadMatthias Clasen2020-02-091-3/+0
| | | | | | This is not a very useful api, and if you need it, you can just as easily keep track yourself which thread called gtk_init().
* Drop gtk_main and gtk_main_quitMatthias Clasen2020-02-091-5/+0
| | | | | The alternatives are to use GtkApplication, or use GMainContext.
* Drop gtk_main_levelMatthias Clasen2020-02-091-2/+0
| | | | | This api isn't useful without gtk_main, which is also on the way out.
* Drop gtk_main_iterationMatthias Clasen2020-02-091-4/+0
| | | | | | This function and its cousin, gtk_main_iteration_do, are thin wrappers around GMainContext api that should just be used directly.
* Drop gtk_events_pendingMatthias Clasen2020-02-091-2/+0
| | | | | This was just a thin wrapper around gtk_main_context_pending, which should be used directly instead.
* Remove gtk_propagate_event from public APIMatthias Clasen2020-02-091-4/+0
| | | | | This is not a function that can be safely called outside of GTK.
* Remove gtk_main_do_event from public APIMatthias Clasen2020-02-091-2/+0
|
* Use normal event propagation for DND eventsMatthias Clasen2020-01-081-1/+1
| | | | | | | This works just fine, now that drop targets are event controllers. There is only a very vestigial gtk_drag_dest_handle_event() left that deals with corner cases.
* Annotate values of PRIORITY constantsTomasz Miąsko2018-12-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | g-ir-scanner incorrectly evaluates macro definition that include references to other macro definitions. Provide a correct value as an annotation. Differences in generated gir files: ```diff @@ -19017 +19017 @@ - <constant name="PRIORITY_REDRAW" value="20" c:type="GDK_PRIORITY_REDRAW"> + <constant name="PRIORITY_REDRAW" value="120" c:type="GDK_PRIORITY_REDRAW"> @@ -74229,3 +74229,3 @@ </constant> - <constant name="PRIORITY_RESIZE" value="10" c:type="GTK_PRIORITY_RESIZE"> + <constant name="PRIORITY_RESIZE" value="110" c:type="GTK_PRIORITY_RESIZE"> <doc xml:space="preserve">Use this priority for functionality related to size allocation. @@ -106786,3 +106786,3 @@ <constant name="TEXT_VIEW_PRIORITY_VALIDATE" - value="5" + value="125" c:type="GTK_TEXT_VIEW_PRIORITY_VALIDATE"> ``` See !472
* gtkmain: Add gtk_get_main_thread()Philippe Normand2018-06-081-0/+3
| | | | | This utility function can be useful to know which thread was initialized for GTK+.
* gtkmain: Add gtk_is_initialized()Philippe Normand2018-06-081-0/+3
| | | | | This utility function can be useful to check whether GTK+ was already initialized or not.
* The big versioning cleanupMatthias Clasen2018-02-061-3/+3
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* Drop gtk_true and gtk_falseMatthias Clasen2018-01-161-5/+0
| | | | | | These functions are entirely trivial, their documentation is much longer than their implementation, and it contains an example that is annotated as "don't do this"...
* gdk/gtk: Fix more AVAILABLE_IN annotations to 3_92Daniel Boles2017-05-281-2/+2
|
* Constify GdkEvent parameters in gtk_get_event_widget and _event_targetTimm Bäder2017-05-251-2/+2
|
* gtkmain: Add API to get the target of a GdkEventCarlos Garnacho2017-05-251-0/+7
| | | | | This can be used on grabbing situations to determine the target of the event. This mainly matters for GtkMenu.
* gtkmain: Fix build on WindowsChun-wei Fan2017-01-201-8/+4
| | | | | | | | | gtk_init() removed its support for supporting arguments, so we ought to do likewise for Windows, which actually defines items that call gtk_init() the old way (and also get rid of argument support in those functions, since the direction is to not support them). https://bugzilla.gnome.org/show_bug.cgi?id=773299
* Drop arguments from gtk_initMatthias Clasen2017-01-191-4/+2
| | | | | This is our ultimate goal: no more commandline argument handling. Lots of callers will have to be updated.
* Don't export gtk_get_option_groupMatthias Clasen2017-01-191-3/+0
| | | | | We want to get rid of commandline option handling in GTK+. This is a step in that direction.
* Stop exporting gtk_parse_argsMatthias Clasen2017-01-191-4/+0
| | | | | We want to stop handling commandline arguments, and that is the sole purpose of this function. So it has to go
* Drop gtk_init_with_argsMatthias Clasen2017-01-191-8/+0
| | | | | | We want to simplify our initialization code and remove all commandline argument handling from it. The first stop for this is to reduce the number of gtk_init variants we have.
* Drop macro wrappers for get_version functionsMatthias Clasen2016-11-191-6/+0
| | | | | These are not really useful, and were added long ago as a clutch for transitioning to the new names.
* gtkmain: Remove deprecated key snooper APITimm Bäder2016-10-181-21/+0
|
* 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