gtk/tests
Benjamin Otte d9c9259861 Move GtkSizeRequest into GtkWidget
It doesn't make sense to keep them separate as GtkSizeRequest requires a
GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
one without the other.
It also makes the code a lot easier because no casts are required when
calling functions.

Also, the names would translate to gtk_widget_get_width() and people
agreed that this would be a too generic name, so a "preferred" was added
to the names.

So this patch moves the functions:
gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
gtk_size_request_get_width() => gtk_widget_get_preferred_width()
gtk_size_request_get_height() => gtk_widget_get_preferred_height()
gtk_size_request_get_size() => gtk_widget_get_preferred_size()
gtk_size_request_get_width_for_height() =>
  gtk_widget_get_preferred_width_for_height()
gtk_size_request_get_height_for_width() =>
  gtk_widget_get_preferred_height_for_width()
... and moves the corresponding vfuncs to the GtkWidgetClass.

The patch also renames the implementations of the vfuncs in widgets to
include the word "preferrred".
2010-09-26 15:11:45 +02:00
..
dummy-headers Extend the C++ keyword test to include internal GDK headers (#449016). 2007-06-26 14:24:27 +00:00
test-images
3DRings.xpm
apple-red.png
autotestfilesystem.c Revert name change 2008-07-01 22:57:50 +00:00
autotestkeywords.cc Don't include gdkwin32.h when testing Objective-C++ 2009-10-09 14:35:49 +03:00
check-n.xpm
check-y.xpm
FilesQueue.xpm
flicker.c Add testcase showing Gtk+ flickering a lot 2009-04-02 10:14:04 +02:00
gnome-textfile.png
gtkoffscreenbox.c Move GtkSizeRequest into GtkWidget 2010-09-26 15:11:45 +02:00
gtkoffscreenbox.h Add offscreen testcase 2009-04-02 10:14:04 +02:00
Makefile.am testgtk: Convert WM hints example to use gdk_window_set_icon_list() 2010-09-26 15:02:59 +02:00
makefile.msc Build more testapps, use G_PI instead of M_PI 2009-07-13 09:44:59 +02:00
marble.xpm
merge-1.ui
merge-2.ui Add UI manager attribute to always show image in menu items 2009-11-27 19:14:43 +01:00
merge-3.ui
Modeller.xpm
print-editor.c tests: Use draw vfunc in print-editor 2010-09-26 15:11:41 +02:00
prop-editor.c Use GtkBin accessors 2010-07-13 19:40:47 +02:00
prop-editor.h perf/widgets.h tests/print-editor.c tests/prop-editor.h 2008-05-23 14:55:43 +00:00
simple.c Completely remove any use of GtkWindow allow-grow and allow-shrink properties 2010-08-07 17:19:16 +02:00
stresstest-toolbar.c Use accessor functions to access GtkToolbar 2010-08-14 02:25:33 +02:00
test.xpm
testaccel.c
testactions.c Test icon names in actions with toolitems 2009-01-24 21:53:29 +00:00
testadjustsize.c Rename h/v-align to h/valign 2010-09-15 20:14:56 -04:00
testapplication.c [testapplication] Fix some compilation warnings 2010-06-24 01:51:33 +02:00
testapplication.desktop Add GtkApplication 2010-06-07 16:46:30 -04:00
testassistant.c Use GtkBin accessors 2010-07-13 19:40:47 +02:00
testbbox.c tests/testbbox.c use g_object_ref/unref instead of deprecated functions. 2007-11-14 10:00:37 +00:00
testbuttons.c Use standard icon names in demos and tests 2010-08-21 03:08:15 +02:00
testcairo.c testcairo: Connect to draw signal 2010-09-26 15:11:40 +02:00
testcalendar.c Use accessor funcions to access GtkCalendar 2010-08-12 18:02:31 +02:00
testcellrenderertext.c Revert name change 2008-07-01 22:57:50 +00:00
testclientmessage.c CSW Win32 work in progress - builds but does not work yet. 2009-04-02 10:16:29 +02:00
testcombo.c Revert "Add length to gtk_tree_path_get_indices" 2010-06-28 14:15:10 -04:00
testcombochange.c Adapt tests to dialog api change 2010-09-02 09:31:54 -04:00
testdnd.c testdnd: Convert to use pixbufs as icons 2010-08-10 21:02:30 +02:00
testellipsise.c Move GtkSizeRequest into GtkWidget 2010-09-26 15:11:45 +02:00
testentrycompletion.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testentryicons.c Use standard icon names in demos and tests 2010-08-21 03:08:15 +02:00
testerrors.c Only store error codes in inner-most X error trap 2010-09-20 16:35:41 -04:00
testexpander.c Add an expander-in-dialog example 2010-06-24 00:35:24 -04:00
testfilechooser.c tests: Remove ability to set backend from testfilechooser 2010-09-26 15:11:35 +02:00
testfilechooserbutton.c Adapt tests to dialog api change 2010-09-02 09:31:54 -04:00
testframe.c tests/testframe.c: Use accessor functions to access GtkWidget 2010-08-22 18:29:56 +02:00
testgrouping.c (broken pipe) 2006-04-26 12:39:25 +00:00
testgtk.1
testgtk.c Move GtkSizeRequest into GtkWidget 2010-09-26 15:11:45 +02:00
testgtkrc Remove GtkCurve completely 2010-05-03 01:51:20 +02:00
testgtkrc2
testheightforwidth.c Added test case to testheightforwidth.c to show GtkComboBox/GtkMenu wrapping in action 2010-08-18 20:01:28 -04:00
testicontheme.c Bug 347230 – testicontheme shortcomings 2008-10-31 08:56:42 +00:00
testiconview-keynav.c tests/testiconview-keynav.c: Use accessor functions to access GtkWidget 2010-08-22 18:30:10 +02:00
testiconview.c don't use the deprecated gtk_box_pack_start_defaults(). 2008-08-05 12:30:15 +00:00
testimage.c tests: Connect to draw signal in testimage 2010-09-26 15:11:40 +02:00
testinput.c tests: Use draw signal in testinput 2010-09-26 15:11:41 +02:00
testmenubars.c Use GtkBin accessors 2010-07-13 19:40:47 +02:00
testmerge.c Replaced deprecated call to gtk_action_connect_proxy with call to gtk_activatable_set_related_action 2009-05-11 13:52:16 +02:00
testmountoperation.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testmultidisplay.c Use accessor functions to access GtkDialog 2010-07-13 19:40:47 +02:00
testmultiscreen.c Completely remove any use of GtkWindow allow-grow and allow-shrink properties 2010-08-07 17:19:16 +02:00
testnotebookdnd.c Remove gtk_notebook_set_window_creation_hook in testnotebookdnd.c 2010-09-24 11:53:20 -04:00
testnouiprint.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testoffscreen.c testoffscreen: Connect to draw signal 2010-09-26 15:11:41 +02:00
testoffscreenwindow.c tests: Connect to draw signal in testoffscreenwindow 2010-09-26 15:11:40 +02:00
testorientable.c Testcase for GtkOrientable 2009-06-15 09:14:00 +08:00
testprint.c Revert name change 2008-07-01 22:57:50 +00:00
testprintfileoperation.c Further updates from the GtkPrintContext functions rename. 2006-05-31 14:06:02 +00:00
testprintfileoperation.h perf/widgets.h tests/print-editor.c tests/prop-editor.h 2008-05-23 14:55:43 +00:00
testrc.c Revert name change 2008-07-01 22:57:50 +00:00
testrecentchooser.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testrecentchoosermenu.c Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT) 2010-04-03 20:58:22 -04:00
testrichtext.c Fix C89 compilation issue. (#467711, The Written Word) 2007-11-21 09:32:35 +00:00
testscale.c Remove some unused variables (GnomeBug:591218) 2009-08-10 11:06:54 +02:00
testselection.c tests/testselection.c: Use accessor functions to access GtkWidget 2010-08-22 18:30:37 +02:00
testsocket_child.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testsocket_common.c tests/testsocket: Fix broken test 2010-08-24 23:49:21 +02:00
testsocket.c tests/testsocket: Fix broken test 2010-08-24 23:49:21 +02:00
testspinbutton.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
teststatusicon.c tests: Remove all code relating to the blink menu item 2010-09-03 13:38:29 +02:00
testtext.c Remove some GTK_DISABLE_DEPRECATED and ENABLE_BROKEN guards 2010-06-07 04:50:05 +02:00
testthreads.c tests: Use gtk_widget_set_size_request() instead gtk_widget_set_usize() 2010-09-08 18:39:36 +02:00
testtoolbar.c Use accessor functions to access GtkToolbar 2010-08-14 02:25:33 +02:00
testtooltips.c testtooltips: Connect to draw signal 2010-09-26 15:11:41 +02:00
testtreecolumns.c Revert "Add length to gtk_tree_path_get_indices" 2010-06-28 14:15:10 -04:00
testtreecolumnsizing.c Fix #316087. 2008-07-11 14:17:49 +00:00
testtreeedit.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtreeflow.c Use GtkBin accessors 2010-07-13 19:40:47 +02:00
testtreefocus.c Revert "Add length to gtk_tree_path_get_indices" 2010-06-28 14:15:10 -04:00
testtreemodel.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtreesort.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtreeview-plan.txt
testtreeview.c Port testtreeview to new API 2010-05-03 01:51:23 +02:00
testvolumebutton.c Removed deprecated call to gtk_scale_button_get_orientation 2009-05-11 13:52:16 +02:00
testwindows.c tests: Get rid of gdk_drawable_get_size() usage in testwindows 2010-09-26 15:11:45 +02:00
testwrapbox.c Split up GtkWrapBox:spreading property into two orientation specific properties. 2010-09-21 22:00:54 +09:00
testxinerama.c tests/testxinerama.c: Use accessor functions to access GtkWidget 2010-08-22 18:31:12 +02:00
treestoretest.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00