Matthias Clasen
75c92ba867
gtk-demo: Stop using ::button-press-event
...
Use gestures instead.
2018-01-16 14:14:10 -05:00
Benjamin Otte
4658d7ea54
dnd: Remove x/y coordinates from drag-data-received
...
This is in preparation of using input streams to show that these
coordinates aren't needed most of the time and can otherwise be saved
during GtkWidget::drag-drop.
2017-12-05 05:29:00 +01:00
Benjamin Otte
c833b47b21
gtk-demo: Port to GdkClipboard
2017-12-03 05:46:49 +01:00
Benjamin Otte
c146132a4a
gtk-demo: Port clipboards example to new clipboard
2017-12-03 05:46:48 +01:00
Benjamin Otte
a59572f96d
widget: gtk_widget_get_clipboard => gtk_widget_get_old_clipboard
...
Just rename the function, so the previous one can be used for the
new clipboard.
2017-12-03 05:46:47 +01:00
Benjamin Otte
3f5178dc21
selection: Remove the info uint
...
Instead of allowing people to pass a uint user-data, insist on them
comparing mime types.
The user data was a uint instead of a pointer anyway, so uniqueness
could not be guaranteed and it caused more issues than it was worth.
And that's ignoring the fact that it basically wasn't used.
2017-11-16 22:59:43 +01:00
Matthias Clasen
0d23606653
Drop gtk_icon_size_lookup
...
Add a new, private gtk_image_get_image_size to replace it, and
update the remaining callers in a suitable way.
2017-11-15 14:22:17 -05:00
Matthias Clasen
2301d8d90b
enums: Change GtkIconSize values
...
The new values are the ones we intend to keep. The old ones had
duplicated meanings and nobody knew which one to take.
2017-11-15 14:22:17 -05:00
Matthias Clasen
dbfaa99107
image: Remove icon-size argument from icon setters
...
Instead, add a function gtk_image_set_icon_size() for the cases where
overriding the icon size is necessary.
Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear()
no longer unsets the icon size.
2017-11-15 14:22:17 -05:00
Benjamin Otte
049cc6aa01
image: Change getters
...
Instead of returning the icon size with them, make
gtk_image_get_icon_name() and gtk_image_get_gicon() only return the icon
itself.
As a benefit, we can turn them into regular getters that return values
instead of requiring out parameters.
Instead, provide gtk_image_get_icon_size() to query the icon size.
2017-11-15 14:22:17 -05:00
Benjamin Otte
5a1a11bcde
dnd: Make GtkDragDest and GtkDragSource use GtkTargetList
...
This gets rid of GtkTargetEntry in the API and consistently uses
GtkTargetList.
2017-11-15 19:07:17 +01:00
Benjamin Otte
7efc5a1558
clipboard: Consistently use GtkTargetList
...
Some code was using GtkTargetList, some used GtkTargetEntry and some
GtkTargetPair.
2017-11-15 19:07:16 +01:00
Benjamin Otte
07164e098a
window: Turn gtk_window_set_screen() into gtk_window_set_display()
...
And have a priv->display instead of a priv->screen.
Includes turning gtk_menu_set_screen() into gtk_menu_set_display(),
because that function just forwards to its window.
2017-10-31 08:25:37 +01:00
Benjamin Otte
ecd5b399a4
icontheme: Use GdkDisplay instead of GdkScreen
2017-10-31 03:05:55 +01:00
Matthias Clasen
ff6698cf5f
gtk-demo: Use surface apis in the clipboard demo
...
Stop using gtk_drag_set_icon_pixbuf.
This api is going away.
2017-10-23 05:58:54 +02:00
Matthias Clasen
25ab8f7c6b
gtk-demo: Use GdkEvent API
2017-09-19 18:39:03 +02:00
Benjamin Otte
5be94c1fd7
gtk-demo: Get rid of GtkEventBox
2017-08-02 14:05:02 +01:00
Timm Bäder
c92b7d4224
box: Remove fill child property
...
GtkWidget:halign and GtkWidget:valign are sufficient
2017-04-25 20:30:37 +02:00
Timm Bäder
5729ea7744
box: Remove expand child property
...
GtkWidget already has hexpand/vexpand properties.
2017-04-25 20:30:37 +02:00
Timm Bäder
ea897c6df4
Remove gtk_widget_show_all
2017-01-20 21:37:04 +01:00
Matthias Clasen
76aeb706ef
gtk-demo: Start to fix up the spacing
...
Replace some cases of lost border-width with margins.
2016-10-26 15:03:04 -04:00
Benjamin Otte
4df6ddad54
API: container: Remove gtk_container_set_border_width()
2016-10-16 18:18:58 +02:00
Timm Bäder
f45dadadd0
box: Remove 'padding' child property
2016-10-16 18:17:21 +02:00
William Hua
8701e34f74
port to new gtk_menu_popup_at_* () functions
...
https://bugzilla.gnome.org/show_bug.cgi?id=756579
2016-07-19 09:38:54 -04:00
Matthias Clasen
609e04ddcf
gtk-demo: Cosmetic changes
...
Clean up the code of many examples in minor ways, fix some memory
leaks, and avoid the use of dialogs where a regular toplevel works
just as well.
2015-06-28 17:41:35 -04:00
Matthias Clasen
0a601b093c
gtk-demo: Many cosmetic fixes
...
Mostly update window titles, and some addition to descriptions.
2015-06-19 21:59:15 -04:00
Benjamin Otte
7e69eb8ffd
gtk-demo: Fix compile warnings
2013-06-26 15:51:31 +02:00
William Jon McCann
708dd8cc52
Remove usage of stock APIs in demo
...
With the exception of GtkAction.
2013-06-24 14:50:01 -04:00
Carlos Garcia Campos
f7c6c97710
gtk-demo: Use symbolic names for button numbers
2012-01-27 09:47:44 +01:00
Javier Jardón
a66f095b62
demos/gtk-demo/clipboard.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Benjamin Otte
e77ce71caa
gtk-demo: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Michael Natterer
3a0afce509
gtk: remove "gboolean homogeneous" from gtk_box_new()
...
Because it's FALSE in virtually all use cases.
2010-10-31 19:22:28 +01:00
Javier Jardón
a9894d4cf4
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 05:22:58 +02:00
Javier Jardón
214a023e91
Deprecate widget flag: GTK_WIDGET_VISIBLE
...
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-03-01 07:52:07 +01:00
Matthias Clasen
953d391a34
Cosmetic fixes
2009-08-31 01:08:31 -04:00
Sven Neumann
092187e99c
demos/gtk-demo/changedisplay.c demos/gtk-demo/clipboard.c
...
2008-08-11 Sven Neumann <sven@gimp.org>
* demos/gtk-demo/changedisplay.c
* demos/gtk-demo/clipboard.c
* demos/gtk-demo/drawingarea.c
* demos/gtk-demo/iconview.c
* demos/gtk-demo/images.c
* demos/gtk-demo/pixbufs.c: use canonical signal names in the
demos.
svn path=/trunk/; revision=21074
2008-08-11 19:12:58 +00:00
Matthias Clasen
bc41f73c4c
Only set the text if it is not NULL. ( #319930 , Thomas Klausner)
...
2005-10-27 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/clipboard.c (paste_received): Only set the
text if it is not NULL. (#319930 , Thomas Klausner)
* gtk/gtkselection.c (gtk_selection_data_get_pixbuf): Close the
loader before trying to get the pixbuf. (#319930 , Thomas Klausner)
2005-10-27 04:31:33 +00:00
Matthias Clasen
844ab25ea4
Demonstrate image copy-and-paste and DND, and clipboard persistency.
...
2005-05-25 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/clipboard.c: Demonstrate image copy-and-paste
and DND, and clipboard persistency.
2005-05-25 15:22:43 +00:00
Matthias Clasen
f01ebf5c79
Don't include config.h in the examples.
...
2004-11-16 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/*.c: Don't include config.h in the examples.
2004-11-16 15:49:17 +00:00
Anders Carlsson
705a7066c3
Add clipboard demo.
...
2004-07-29 Anders Carlsson <andersca@gnome.org>
* demos/gtk-demo/Makefile.am:
* demos/gtk-demo/clipboard.c: (copy_button_clicked),
(paste_received), (paste_button_clicked), (do_clipboard):
Add clipboard demo.
2004-07-29 15:40:35 +00:00