Matthias Clasen
5c97f09796
tests: Stop using menus
2019-12-29 20:31:58 -05:00
Matthias Clasen
7447abb52b
Stop using gtk_widget_get_toplevel
...
All uses of it can be replaced by gtk_widget_get_root.
2019-05-28 20:25:16 +00:00
Matthias Clasen
2bf1561b48
Port widgets to the root focus API
2019-03-16 21:24:44 -04:00
Timm Bäder
bd71e744d2
Stop using gtk_box_pack_end
...
It might soon go away!
2019-01-23 19:30:46 -05:00
Jonas Ådahl
af21583d4d
tests: Stop using legacy gtk_menu_popup API
...
Use the new portable APIs, so that menus will be positioned properly on
all backends.
2018-07-27 17:16:44 +02:00
Benjamin Otte
b00609c21c
dnd: Make drag-motion and drag-drop signals use GdkDrop
2018-06-18 23:49:52 +02:00
Benjamin Otte
314eaf7d10
widget: Make GtkWidgetClass::drag_leave() take a GdkDrop
...
Drag Contexts are on their way out!
2018-06-18 23:49:20 +02:00
Emmanuele Bassi
c655759cef
Replace gdk_threads_add_timeout* with g_timeout_add()
...
The main GDK thread lock is not portable and deprecated.
The only reason why gdk_threads_add_timeout() and
gdk_threads_add_timeout_full() exist is to allow invoking a callback
with the GDK lock held, in case 3rd party libraries still use the
deprecated gdk_threads_enter()/gdk_threads_leave() API.
Since we're removing the GDK lock, and we're releasing a new major API,
such code cannot exist any more; this means we can use the GLib API for
installing timeout callbacks.
https://bugzilla.gnome.org/show_bug.cgi?id=793124
2018-02-03 12:06:58 +01:00
Matthias Clasen
41e4c93443
Replace all remaining uses of delete-event
2018-01-16 14:14:09 -05:00
Benjamin Otte
9a6ec4e959
contentformats: Rename GtkTargetList
...
It's now called GdkContentsFormat
2017-11-20 23:12:33 +01:00
Benjamin Otte
c863ac0f90
dnd: Remove GtkTargetEntry and GtkTargetFlags
...
warning: We don't do any same-app checks anymore so you currently can
copy local data into external apps.
This will be fixed later.
2017-11-20 23:12:33 +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
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
a7754a14b5
toolbar: Remove icon sizes
2017-11-15 14:22:16 -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
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
2c7e567f05
Update callers
...
Adapt all our tests and examples to the new initialization api.
2017-01-19 13:50:17 -05: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
Benjamin Otte
8756c03885
testtoolbar: Don't expand rows that shouldn't be expanded
2015-07-08 05:48:59 +02:00
Matthias Clasen
39ccbe6549
tests: Drop manual property editor
...
No need for this anymore, now that we have the inspector everywhere.
2014-05-22 08:32:48 -04:00
Matthias Clasen
e245fd8e68
Fix testtoolbar
...
The conversion from stock to icon names left some items without
a label, which in turn shows up as empty menuitems in the overflow
menu.
2013-11-09 13:23:47 -05:00
William Jon McCann
fc71cbe5a6
Remove most of the stock API usage from the tests
...
With the exception of GtkActions and the tests for stock items.
2013-06-24 19:53:08 -04:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Benjamin Otte
638cb9e11a
testtoolbar: Fix test to use GtkGrid
...
The conversion in commit 7724f14dfa
was
incomplete. Redo it.
2011-09-29 01:51:46 +02:00
Cosimo Cecchi
5cf0450c69
toolbutton: don't force the icon widget to be a GtkMisc
...
There's really no reason the icon widget must be a GtkMisc. You might
want to use e.g. a GtkSpinner.
2011-09-27 17:31:11 -04:00
Benjamin Otte
7724f14dfa
tests: Convert testtoolbar to use a box instead of a table
2011-09-27 05:37:14 +02:00
Benjamin Otte
040b21e7d7
tests: Remove refreh button from testtoolbar test
...
It didn't work and did that by using APIs that are about to go away.
2011-02-01 06:33:02 +01:00
Michael Natterer
260ccdfebe
gtk: remove "gboolean homogeneous" from gtk_box_new()
...
Because it's FALSE in virtually all use cases.
2010-11-02 12:04:35 +09:00
Javier Jardón
c15ef6405c
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 17:37:03 +09:00
Matthias Clasen
5e0451de3a
Use correct icon name in testtoolbar
2010-10-30 17:35:20 +09:00
Javier Jardón
e7f51ef6a4
Use the new GtkComboBoxText API
...
Also remove mentions of the old text convenience API from the docs,
and point to GtkComboBoxText instead.
2010-10-15 16:58:27 -04:00
Javier Jardón
374d5094a3
Use accessor functions to access GtkToolbar
2010-08-14 02:25:33 +02:00
Javier Jardón
cc8dcf738a
Remove deprecated GtkToolbar code
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=616817
2010-05-24 20:16:07 +02:00
Christian Dywan
b4188f876f
Use GtkComboBox, GtkOrientable and no GtkObject in testtoolbar
2010-05-03 01:51:23 +02:00
Christian Persch
9497a198f7
Correctly clone the toolbutton's icon-name image widget
...
Bug #608162 .
2010-02-09 15:08:56 +01:00
Matthias Clasen
b87add630e
Properly create a menu proxy from a GIcon. Patch by Christian Persch
...
* gtk/gtktoolbutton.c: Properly create a menu proxy from a GIcon.
Patch by Christian Persch
* tests/testtoolbar.c: Add an example with a GIcon
svn path=/trunk/; revision=22084
2009-01-11 05:44:18 +00:00
Johan Dahlin
d97cdbdf53
Include "config.h" instead of <config.h> Command used: find -name
...
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
2008-06-22 14:28:52 +00:00
Matthias Clasen
721c3bc101
Replace a lot of idle and timeout calls by the new gdk_threads api.
...
2006-12-22 Matthias Clasen <mclasen@redhat.com>
* *.c: Replace a lot of idle and timeout calls by
the new gdk_threads api.
2006-12-22 19:10:43 +00:00
Matthias Clasen
24a55633ce
Add some more tests for menu placement.
...
2005-08-15 Matthias Clasen <mclasen@redhat.com>
* tests/testtoolbar.c: Add some more tests for menu placement.
* gtk/gtkmenutoolbutton.c (menu_position_func):
* gtk/gtktoolbar.c (menu_position_func): Improve positioning
of toolbutton menus and of the overflow menu. (#312937 ,
#153870 , Christian Persch, Paolo Borelli)
2005-08-15 16:36:31 +00:00
Søren Sandmann
63f2fd9614
Add sensitivity-changing timeout. Written by Christian Persch.
...
Wed Dec 22 14:22:19 2004 Søren Sandmann <sandmann@redhat.com>
* tests/testtoolbar.c (timeout_cb): Add sensitivity-changing
timeout. Written by Christian Persch.
Wed Dec 22 14:14:02 2004 Søren Sandmann <sandmann@redhat.com>
Bug #161561
* gdk/x11/gdkwindow-x11.c (tmp_{re,un}set_bg): Only set/reset the
background for windows that get expose events.
* gdk/gdkwindow.c (gdk_window_process_updates_internal): Remove
hack to repaint !expose windows.
2004-12-22 19:25:24 +00:00
Manish Singh
54b45a19b9
modules/engines/ms-windows/msw_rc_style.c
...
Fri Nov 19 15:18:51 2004 Manish Singh <yosh@gimp.org>
* modules/engines/ms-windows/msw_rc_style.c
* modules/engines/ms-windows/msw_style.c
* modules/engines/ms-windows/msw_theme_main.c
* modules/engines/pixbuf/pixbuf-main.c
* modules/engines/pixbuf/pixbuf-rc-style.c
* modules/input/gtkimcontextime.c
* modules/input/gtkimcontextxim.c
* modules/input/imam-et.c
* modules/input/imcedilla.c
* modules/input/imcyrillic-translit.c
* modules/input/iminuktitut.c
* modules/input/imipa.c
* modules/input/imthai-broken.c
* modules/input/imti-er.c
* modules/input/imti-et.c
* modules/input/imviqr.c
* tests/prop-editor.c
* tests/testentrycompletion.c
* tests/testfilechooser.c
* tests/testmerge.c
* tests/testtoolbar.c
* tests/testtreecolumns.c
* tests/testtreeview.c: get rid of unnecessary casts.
* tests/testgtk.c (create_labels): add GTK_LABEL() casts for
gtk_label_set_ellipsize() calls.
* tests/testicontheme.c (main): remove unused pixbuf variable.
2004-11-19 23:30:47 +00:00
Paolo Borelli
26e50e26b3
add a GtkMenuToolButton.
...
2004-09-29 Paolo Borelli <pborelli@katamail.com>
* tests/testtoolbar.c: add a GtkMenuToolButton.
2004-09-29 06:48:00 +00:00
Federico Mena Quintero
80581c3011
Fixes #136082 and #135265 , patch by Morten Welinder.
...
2004-03-05 Federico Mena Quintero <federico@ximian.com>
Fixes #136082 and #135265 , patch by Morten Welinder.
* configure.in: Use AC_SYS_LARGEFILE.
* */*.c: #include <config.h>
2004-03-06 03:38:59 +00:00
Michael Meeks
c19aa6739d
re-arrange widgets to allow more overflowing toolbar goodness.
...
2004-02-20 Michael Meeks <michael@ximian.com>
* tests/testtoolbar.c (main): re-arrange widgets to allow
more overflowing toolbar goodness.
2004-02-20 16:20:20 +00:00
Soeren Sandmann
eb3f5776ac
delete this function (toolbar_item_is_homogeneous): cache
...
Fri Oct 31 02:43:34 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (get_item_requisition): delete this function
(toolbar_item_is_homogeneous): cache max_homogeneous_pixels
instead of re-calculating for each item.
(gtk_toolbar_size_allocate): Update comments
2003-10-31 02:10:03 +00:00
Soeren Sandmann
aca1b6f391
Make it work even when item 0 is a placeholder. ( #125826 ) add an assertion
...
Thu Oct 30 17:57:53 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (logical_to_physical): Make it work even when
item 0 is a placeholder. (#125826 )
* tests/testtoolbar.c: add an assertion that
gtk_toolbar_get_nth_item (0) != NULL
2003-10-30 17:08:49 +00:00