summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/application.c
Commit message (Collapse)AuthorAgeFilesLines
* Stop using gtk_widget_get_surfaceMatthias Clasen2019-05-281-3/+3
| | | | | Replace all uses of gtk_widget_get_surface by gtk_native_get_surface.
* gtk-demo: Rename to org.gtk.Demo4Matthias Clasen2019-04-021-5/+5
|
* app icons: use new styleJakub Steiner2019-02-061-1/+1
| | | | | | | - update symbolic and fullcolor icons to use the new style See https://gitlab.gnome.org/GNOME/Initiatives/issues/2 for more info. Fixes issue #1658
* demos: Drop the '+' from GTKEmmanuele Bassi2019-02-051-5/+5
| | | | | The demos have user-visible text that should refer to "GTK", not "GTK+" any more.
* widget: Don't pass a position to ->size_allocateTimm Bäder2018-11-131-4/+7
| | | | | The values have been 0/0 for a long time now, so just drop the GtkAllocation argument and replace it with width and height.
* widget: Remove clip from size-allocate vfuncBenjamin Otte2018-04-051-3/+2
| | | | As the clip is no longer needed, get rid of it.
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-3/+3
| | | | | | | | | | | | | | | This is an automated change doing these command: git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface git sed -f g gtk_widget_set_window gtk_widget_set_surface git sed -f g gtk_widget_get_window gtk_widget_get_surface git sed -f g gtk_widget_register_window gtk_widget_register_surface git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface git checkout NEWS*
* GdkSurface: Rename various functions and variablesAlexander Larsson2018-03-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an automatic rename of various things related to the window->surface rename. Public symbols changed by this is: GDK_MODE_WINDOW gdk_device_get_window_at_position gdk_device_get_window_at_position_double gdk_device_get_last_event_window gdk_display_get_monitor_at_window gdk_drag_context_get_source_window gdk_drag_context_get_dest_window gdk_drag_context_get_drag_window gdk_draw_context_get_window gdk_drawing_context_get_window gdk_gl_context_get_window gdk_synthesize_window_state gdk_surface_get_window_type gdk_x11_display_set_window_scale gsk_renderer_new_for_window gsk_renderer_get_window gtk_text_view_buffer_to_window_coords gtk_tree_view_convert_widget_to_bin_window_coords gtk_tree_view_convert_tree_to_bin_window_coords The commands that generated this are: git sed -f g "GDK window" "GDK surface" git sed -f g window_impl surface_impl (cd gdk; git sed -f g impl_window impl_surface) git sed -f g WINDOW_IMPL SURFACE_IMPL git sed -f g GDK_MODE_WINDOW GDK_MODE_SURFACE git sed -f g gdk_draw_context_get_window gdk_draw_context_get_surface git sed -f g gdk_drawing_context_get_window gdk_drawing_context_get_surface git sed -f g gdk_gl_context_get_window gdk_gl_context_get_surface git sed -f g gsk_renderer_get_window gsk_renderer_get_surface git sed -f g gsk_renderer_new_for_window gsk_renderer_new_for_surface (cd gdk; git sed -f g window_type surface_type) git sed -f g gdk_surface_get_window_type gdk_surface_get_surface_type git sed -f g window_at_position surface_at_position git sed -f g event_window event_surface git sed -f g window_coord surface_coord git sed -f g window_state surface_state git sed -f g window_cursor surface_cursor git sed -f g window_scale surface_scale git sed -f g window_events surface_events git sed -f g monitor_at_window monitor_at_surface git sed -f g window_under_pointer surface_under_pointer (cd gdk; git sed -f g for_window for_surface) git sed -f g window_anchor surface_anchor git sed -f g WINDOW_IS_TOPLEVEL SURFACE_IS_TOPLEVEL git sed -f g native_window native_surface git sed -f g source_window source_surface git sed -f g dest_window dest_surface git sed -f g drag_window drag_surface git sed -f g input_window input_surface git checkout NEWS* po-properties po docs/reference/gtk/migrating-3to4.xml
* GdkWindow -> GdkSurface initial type renameAlexander Larsson2018-03-201-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This renames the GdkWindow class and related classes (impl, backend subclasses) to surface. Additionally it renames related types: GdkWindowAttr, GdkWindowPaint, GdkWindowWindowClass, GdkWindowType, GdkWindowTypeHint, GdkWindowHints, GdkWindowState, GdkWindowEdge This is an automatic conversion using the below commands: git sed -f g GdkWindowWindowClass GdkSurfaceSurfaceClass git sed -f g GdkWindow GdkSurface git sed -f g "gdk_window\([ _\(\),;]\|$\)" "gdk_surface\1" # Avoid hitting gdk_windowing git sed -f g "GDK_WINDOW\([ _\(]\|$\)" "GDK_SURFACE\1" # Avoid hitting GDK_WINDOWING git sed "GDK_\([A-Z]*\)IS_WINDOW\([_ (]\|$\)" "GDK_\1IS_SURFACE\2" git sed GDK_TYPE_WINDOW GDK_TYPE_SURFACE git sed -f g GdkPointerWindowInfo GdkPointerSurfaceInfo git sed -f g "BROADWAY_WINDOW" "BROADWAY_SURFACE" git sed -f g "broadway_window" "broadway_surface" git sed -f g "BroadwayWindow" "BroadwaySurface" git sed -f g "WAYLAND_WINDOW" "WAYLAND_SURFACE" git sed -f g "wayland_window" "wayland_surface" git sed -f g "WaylandWindow" "WaylandSurface" git sed -f g "X11_WINDOW" "X11_SURFACE" git sed -f g "x11_window" "x11_surface" git sed -f g "X11Window" "X11Surface" git sed -f g "WIN32_WINDOW" "WIN32_SURFACE" git sed -f g "win32_window" "win32_surface" git sed -f g "Win32Window" "Win32Surface" git sed -f g "QUARTZ_WINDOW" "QUARTZ_SURFACE" git sed -f g "quartz_window" "quartz_surface" git sed -f g "QuartzWindow" "QuartzSurface" git checkout NEWS* po-properties
* gtk-demo: Stop using GdkEventWindowStateMatthias Clasen2017-12-141-11/+23
| | | | Use GdkWindow::state instead - the event is going away.
* gtk-demo: Use GdkEvent APIMatthias Clasen2017-09-191-2/+4
|
* widget: Add baseline and out_clip parameters to size-allocateTimm Bäder2017-07-191-3/+6
| | | | | | | | | | | Since setting a clip is mandatory for almost all widgets, we can as well change the size-allocate signature to include a out_clip parameter, just like GtkCssGadget did. And since we now always propagate baselines, we might as well pass that one on to size-allocate. This way we can also make sure to transform the clip returned from size-allocate to parent-coordinates, i.e. the same coordinate space priv->allocation is in.
* Remove GtkWindow::hide-titlebar-when-maximizedMatthias Clasen2017-05-011-14/+0
| | | | | | | | This was only every implemented under X11, and with CSD, this is clearly in the application realm. We should not pretend that we can support it on the toolkit level. https://bugzilla.gnome.org/show_bug.cgi?id=775061
* demos/application: Call the right programChun-wei Fan2016-11-021-1/+1
| | | | | We need to update the call to gtk4-application-demo, plus include the correct icon file for this.
* gtk-demo: Streamline applicationMatthias Clasen2016-02-141-99/+2
| | | | | Avoid the odd #ifdef STANDALONE construction; we can show multiple source files nowadays.
* gtk-demo: Fix the size saving for CSDMatthias Clasen2016-02-141-4/+1
| | | | | | We need to use gtk_window_get_size to get the correct size that we can pass to gtk_window_set_default_size regardless of CSD or not.
* gtk-demo: Add window size saving exampleMatthias Clasen2016-02-131-16/+135
| | | | | | Implement the recommendations from https://wiki.gnome.org/HowDoI/SaveWindowState in the Application Class example.
* gtk-demo: modernize the application demoMatthias Clasen2016-02-131-95/+90
| | | | | Subclass GtkApplication and GtkApplicationWindow and use a template.
* Add gtk_native_dialog_destroy()Alexander Larsson2015-11-111-0/+1
| | | | | | | Its very easy to get extra references to the NativeDialog so that when you release your last reference any visible dialog is not hidden. We handle this by adding a destroy method similar to how you destroy regular toplevels.
* gtk3-demo: Add open file to the application demowip/native-file-chooserAlexander Larsson2015-11-051-3/+87
|
* gtk-demo: Use title case consistentlyMatthias Clasen2013-12-121-1/+1
|
* demo: change application name of inner demoWilliam Jon McCann2013-12-031-4/+4
|
* Update copyright yearMatthias Clasen2013-11-091-1/+1
|
* demo: use the installed named iconWilliam Jon McCann2013-11-051-5/+1
|
* Remove usage of stock APIs in demoWilliam Jon McCann2013-06-241-36/+0
| | | | With the exception of GtkAction.
* gtk-demo: Remove file lists from demo dataBenjamin Otte2013-02-011-1/+1
| | | | | We can get it from parsing resources now, so no need to manually add them.
* gtk-demo: Don't use subfolders for resourcesBenjamin Otte2013-02-011-4/+4
| | | | This confuses the notebook that is displaying them.
* gtk-demo move application demo resources into a namespaceBenjamin Otte2012-05-301-4/+4
|
* gtk-demo: Show data files as wellMatthias Clasen2012-05-181-1/+1
| | | | | Several demos use .ui files and the like. The demos are much more useful if these files can be inspected in the ui as well.
* gtk-demo: Find gtk-demo-application.exe on win32Alexander Larsson2012-04-201-2/+8
| | | | | We need to append the ".exe" extension when looking for the application file on windows.
* gtk-demo: Use gdk-pixbuf resource apiMatthias Clasen2012-02-091-8/+2
| | | | This is nicer than manual stream manipulation.
* gtk3-demo-application: add an example for the new apiMatthias Clasen2012-01-241-0/+8
| | | | Turn the menutoolbutton menu into one that is gmenu/gaction backed.
* Add an example for settings<>action integrationMatthias Clasen2012-01-241-1/+7
| | | | | Turn the 'color' action in gtk3-demo-application into an action that is backed by a setting.
* gtk-demo: Improve the GtkApplication demoMatthias Clasen2012-01-161-13/+23
| | | | Following suggestions in bug 667968
* Add a GtkApplication example to gtk3-demoMatthias Clasen2012-01-141-0/+461