Commit Graph

225 Commits

Author SHA1 Message Date
Johan Dahlin
c472d99c0b Revert GtkScaleButton accesses for plus/minus buttons, as per #539944
svn path=/trunk/; revision=20682
2008-06-24 13:41:13 +00:00
Carlos Garnacho
60e1b3ea89 Remove container implementation, which isn't thought for handling
2008-06-24  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkdialog.[ch]: Remove container implementation, which isn't
        thought for handling non-direct children. Fixes #539732.
        (gtk_dialog_pack_start) (gtk_dialog_pack_end): Removed as well, it
        doesn't provide enough control to API users (removing, reordering...),
        this is better handled through:
        (gtk_dialog_get_content_area): New function which just returns
        dialog->vbox.
        * gtk/gtk.symbols: Modify accordingly.
        * docs/reference/gtk/tmpl/gtkdialog.sgml: Update docs to recommend
        using gtk_dialog_get_[action|content]_area() instead of accessing
        dialog struct members directly.

svn path=/trunk/; revision=20680
2008-06-24 10:22:40 +00:00
Johan Dahlin
9e400139b7 Add missing accessor for sealed fields GtkScaleButton->plus_button and
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtk.symbols:
    * gtk/gtkscalebutton.c (gtk_scale_button_get_plus_button),
    (gtk_scale_button_get_minus_button):
    * gtk/gtkscalebutton.h:
    Add missing accessor for sealed fields GtkScaleButton->plus_button and
    minus_button.


svn path=/trunk/; revision=20648
2008-06-20 14:30:28 +00:00
Johan Dahlin
80e221ef6f Add all newly added accessors so abicheck.sh passes
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtk.symbols: Add all newly added accessors so abicheck.sh passes


svn path=/trunk/; revision=20645
2008-06-20 14:19:58 +00:00
Johan Dahlin
812eaa436f Add missing accessor for sealed field GtkMessageDialog->image.
2008-06-20  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtk.symbols:
    * gtk/gtkmessagedialog.c (gtk_message_dialog_get_image):
    * gtk/gtkmessagedialog.h:
    Add missing accessor for sealed field GtkMessageDialog->image.


svn path=/trunk/; revision=20642
2008-06-20 14:08:18 +00:00
Michael Natterer
a44c258282 gtk/gtkwindow.[ch] rename gtk_window_group_get_windows() to
2008-06-20  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkwindow.[ch]
	* gtk/gtk.symbols: rename gtk_window_group_get_windows() to
	gtk_window_group_list_windows().


svn path=/trunk/; revision=20635
2008-06-20 11:51:44 +00:00
Tim Janik
de676bf594 Fixed wrongly resolved merge conflicts.
* Fixed wrongly resolved merge conflicts.

svn path=/trunk/; revision=20633
2008-06-20 11:11:01 +00:00
Tim Janik
870b9c868c Add gtk_window_group_get_windows().
* gtk/gtk.symbols:
* gtk/gtkwindow.[ch] (gtk_window_group_get_windows): New function.

svn path=/trunk/; revision=20632
2008-06-20 11:10:55 +00:00
Tim Janik
c4576c3a85 Add gtk_plug_get_socket_window
svn path=/trunk/; revision=20629
2008-06-20 11:10:37 +00:00
Tim Janik
016d891708 Remove superflous gtkselection accessors and merge _get_data
svn path=/trunk/; revision=20628
2008-06-20 11:10:31 +00:00
Tim Janik
1a13990f6e Remove unneeded GtkColorSelectionDialog accessors
svn path=/trunk/; revision=20624
2008-06-20 11:10:08 +00:00
Tim Janik
10896d4874 Seal GtkWidget
svn path=/trunk/; revision=20620
2008-06-20 11:09:42 +00:00
Tim Janik
161f29ca55 Seal GtkSelectionData
svn path=/trunk/; revision=20619
2008-06-20 11:09:36 +00:00
Tim Janik
7d5da3f8cc Seal GtkPlug
svn path=/trunk/; revision=20611
2008-06-20 11:08:51 +00:00
Tim Janik
a66946e2a5 Seal GtkMenuItem
svn path=/trunk/; revision=20610
2008-06-20 11:08:45 +00:00
Tim Janik
f40470a362 Seal GtkSocket
svn path=/trunk/; revision=20604
2008-06-20 11:08:13 +00:00
Tim Janik
1fae5f6303 Seal GtkHandleBox
svn path=/trunk/; revision=20601
2008-06-20 11:07:56 +00:00
Tim Janik
f61c311176 Seal GtkMenu
svn path=/trunk/; revision=20589
2008-06-20 11:06:52 +00:00
Tim Janik
f79c213b33 Seal GtkLayout
svn path=/trunk/; revision=20588
2008-06-20 11:06:46 +00:00
Tim Janik
bf45ec46a6 Add new GtkColorSelectionDialog accessors to gtk.symbols.
svn path=/trunk/; revision=20548
2008-06-20 11:03:14 +00:00
Tim Janik
bdc28ff2d1 Add new accessors for GtkEntry to gtk.symbols.
svn path=/trunk/; revision=20544
2008-06-20 11:02:52 +00:00
Tim Janik
26153af8af Add gtk_window_get_default()
* gtk/gtkwindow.[ch]: Add gtk_window_get_default().
* gtk/gtk.symbols: same here.

svn path=/trunk/; revision=20536
2008-06-20 11:02:08 +00:00
Tim Janik
1ba7f437bc Add gtk_tree_selection_get_select_function().
* gtk/gtktreeselection.[ch] (gtk_tree_selection_get_select_function): new
function.
* gtk/gtk.symbols: add new function.

svn path=/trunk/; revision=20527
2008-06-20 11:01:18 +00:00
Tim Janik
b2b2e6431e add accessor.
* gtk/gtkcontainer.c (gtk_container_get_focus_child): add accessor.

svn path=/trunk/; revision=20515
2008-06-20 11:00:12 +00:00
Christian Persch
c9e85e48f8 Add clipboard convenience helpers for URIs. Bug #537639.
svn path=/trunk/; revision=20465
2008-06-19 12:55:57 +00:00
Michael Natterer
73800758fd deprecate gtk_type_class().
2008-06-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktypeutils.[ch]: deprecate gtk_type_class().

	* gtk/gtk.symbols: changed accordingly.

	* gtk/gtksettings.c (gtk_settings_install_property)
	(gtk_settings_install_property_parser): get rid of using
	gtk_type_class() by keeping a static reference to GtkSettingsClass
	around in both functions and passing that pointer on to
	settings_install_property_parser().

	* tests/testgtk.c: use g_type_class_ref()/unref() instead of
	gtk_type_class().

	* gtk/gtkobject.c: #undef GTK_DISABLE_DEPRECATED around including
	gtktypeutils.h.


svn path=/trunk/; revision=20444
2008-06-18 07:00:46 +00:00
Michael Natterer
e8b84723ca move some deprecated symbols into #ifndef GTK_DISABLE_DEPRECATED.
2008-06-17  Michael Natterer  <mitch@imendio.com>

	* gtk/gtk.symbols: move some deprecated symbols into
	#ifndef GTK_DISABLE_DEPRECATED.


svn path=/trunk/; revision=20420
2008-06-17 12:47:57 +00:00
Carlos Garnacho
640d68778a Bug 520874 - Should use gio directly.
2008-06-10  Carlos Garnacho  <carlos@imendio.com>

        Bug 520874 - Should use gio directly.

        * gtk/gtkfilesystem.[ch]: Turn into a private object, which mostly
        provides helper functions for asynchronous calls, folder abstraction
        and uniform handling of volumes/drives/mounts.

        * gtk/gtkfilesystemwin32.[ch]:
        * gtk/gtkfilesystemunix.[ch]: Removed, these are no longer required.

        * gtk/gtkfilechooser.c:
        * gtk/gtkfilechooserbutton.c:
        * gtk/gtkfilechooserdefault.c:
        * gtk/gtkfilechooserentry.[ch]:
        * gtk/gtkfilechooserprivate.h:
        * gtk/gtkfilechooserutils.c:
        * gtk/gtkfilesystemmodel.[ch]:
        * gtk/gtkpathbar.[ch]: Use GIO internally. Adapt to GtkFileSystem API.
        Do not load filesystem implementation modules.

        * gtk/Makefile.am:
        * gtk/gtk.symbols: the gtkfilesystem.h private header isn't installed
        anymore, nor the unix/win32 implementations.

        * README.in: Add blurb about these changes.

svn path=/trunk/; revision=20342
2008-06-10 00:39:35 +00:00
Colin Walters
8ade45013c Bug 535303 – add _get_implementation to GtkStatusIcon
2008-06-03  Colin Walters  <walters@redhat.com>
	
	Bug 535303 – add _get_implementation to GtkStatusIcon

	* gtk/gtkstatusicon.c (gtk_status_icon_get_x11_window_id): New
	function to retrieve internal X11 window ID, useful for libnotify.
	* gtk/gtkstatusicon.h: Prototype it.
	* docs/reference/gtk/gtk-sections.txt: Add to docs.
	* gtk/gtk.symbols: Export it.


svn path=/trunk/; revision=20304
2008-06-03 17:39:20 +00:00
Matthias Clasen
ee8253f908 Bug 522084 – GIcon support for GtkIconTheme & GtkImage
2008-05-27  Matthias Clasen  <mclasen@redhat.com>

        Bug 522084 – GIcon support for GtkIconTheme & GtkImage

        * gtk/gtkicontheme.[hc]: Add support for GIcon based lookups.
        * gtk/gtkimage.[hc]: Allow setting an image from a GIcon.
        * gtk/gtk.symbols: Additions
        * tests/testimage.c: Add a GIcon test


svn path=/trunk/; revision=20236
2008-05-29 14:33:49 +00:00
Jaap A. Haitsma
53c45d129a reviewed by: Matthias Clasen
2008-05-25  Jaap A. Haitsma  <jaap@haitsma.org>

	reviewed by: Matthias Clasen

	* gtk/Makefile.am:
	* gtk/gtk.h:
	* gtk/gtk.symbols:
	* gtk/gtkshow.c: (gtk_show_uri):
	* gtk/gtkshow.h:
	Add gtk_show_uri to make showing uris really easy. Fixes bug #514396

svn path=/trunk/; revision=20143
2008-05-25 08:20:37 +00:00
James Sharpe
caa8e33232 Remove duplicate gdk_window_redirect_to_drawable and
2008-05-24  James Sharpe <jsharpe@gnome.org>

        * gdk/gdk.symbols: Remove duplicate
        gdk_window_redirect_to_drawable and gdk_window_remove_redirection
        * gtk/gtk.symbols: Remove duplicate gtk_widget_get_snapshot

svn path=/trunk/; revision=20132
2008-05-24 00:47:05 +00:00
Hans Breuer
0b57c6b98f updated fix c99ism (variable at start of block export functions for window
2008-05-23  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc gtk/makefile.msc.in : updated
	* gtk/gtkwidget.c : fix c99ism (variable at start of block
	* gdk/gdk.symbols gtk/gtk.symbols : export functions for window 
	redirection
	* gtk/gtkfilechooserdefault.c : #include <locale.h> for 
	setlocale(LC_ALL, ...)

svn path=/trunk/; revision=20131
2008-05-23 20:29:27 +00:00
Tor Lillqvist
a8b5f3ee6b Add gdk_window_redirect_to_drawable and gdk_window_remove_redirection.
2008-05-23  Tor Lillqvist  <tml@novell.com>

	* gdk/gdk.symbols: Add gdk_window_redirect_to_drawable and
	gdk_window_remove_redirection.

	* gdk/win32/gdkwindow-win32.c (_gdk_window_new)
	(_gdk_window_reparent): Rename to adapt to the offscreen rendering
	changes. Remove now unnecessary parameter checks as the caller
	does that already.

	* gtk/gtk.symbols: Add gtk_widget_get_snapshot.


svn path=/trunk/; revision=20130
2008-05-23 18:46:40 +00:00
Matthias Clasen
59ae44d00e RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" size
was chosen

        Patch by Marek Kasik.

        * gtk/gtk.symbols:
        * gtk/gtkprinter.[hc]: Add gtk_printer_get_default_page_size.

        * gtk/gtkprintbackend.[hc]: Add fallback implementation.

        * modules/printbackends/file/gtkprintbackendfile.c:
        * modules/printbackends/cups/gtkprintbackendcups.c: Implement
        get_default_page_size.

        * gtk/gtkpagesetupunixdialog.c: When selecting a different printer,
        select its default paper size.

        * gtk/gtkprintunixdialog.c: If no explicit page setup has been set,
        use the printer default.

        * gtk/gtkprintoperation-unix.c: Don't create an empty page setup
        if we don't have a default page setup.

svn path=/trunk/; revision=20120
2008-05-21 02:17:30 +00:00
Christian Kellner
e1092e9a60 Implement GtkMountOperation, a subclass of GMountOperation to be used with
2008-03-17  Christian Kellner  <gicmo@gnome.org>

        Implement GtkMountOperation, a subclass of GMountOperation
        to be used with gio wherever there is the need to ask the
        user for credentials or questions while mounting a volume.
        This is bug #522245

        * gtk/gtkmountoperation.c:
        * gtk/gtkmountoperation.h:      
        Implement GtkMountOperation.
        
        * gtk/gtk.h: Add gtkmountoperation.h
        * gtk/Makefile.am: Add gtkmountoperation.[hc]
        * gtk/gtk.symbols: Add symbols of GtkMountOperation.
        * tests/testmountoperation.c: Test program for it.
        * tests/Makefile.am: Add testmountoperation.


svn path=/trunk/; revision=19894
2008-03-17 17:29:55 +00:00
Matthias Clasen
a6ccc040a2 Add gtk_tool_shell_get_type
2008-02-15  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtk.symbols: Add gtk_tool_shell_get_type

        * gtk/gtktestutils.c: Don't generate unnecessary PLT entries

svn path=/trunk/; revision=19585
2008-02-15 23:13:30 +00:00
Mathias Hasselmann
e3625b6dfb Make _gtk_tool_item_toolbar_reconfigured public to allow GtkToolShell
implementations to notify its children, when some aspect of their
configuration changed (#509042).

* gtk/gtk.symbols: Add gtk_tool_item_toolbar_reconfigured.
* gtk/gtktoolbar.c, gtk/gtktoolitem.c, gtk/gtktoolitem.h:
Rename _gtk_tool_item_toolbar_reconfigured.

svn path=/trunk/; revision=19361
2008-01-13 23:41:46 +00:00
Mathias Hasselmann
fdbf92ad90 Add infrastructure for GtkCalendar details. (#339540)
* gtk/gtkcalendar.c, gtk/gtkcalendar.h, gtk/gtk.symbols:
Add "detail-width-chars" and "detail-height-rows" properties,
and gtk_calendar_set_detail_func function.

svn path=/trunk/; revision=19251
2007-12-27 20:41:08 +00:00
Xan Lopez
b28fea94a0 Add gtk_border_new to avoid memory allocator confusions when using
2007-12-27  Xan Lopez  <xan@gnome.org>

	* gtk/gtk.symbols:
	* gtk/gtkstyle.c (gtk_border_new, gtk_border_copy):

	Add gtk_border_new to avoid memory allocator confusions when using
	GtkBorders. Also, make gtk_border_copy use g_slice_dup. (#454042)

svn path=/trunk/; revision=19248
2007-12-27 14:04:37 +00:00
Mathias Hasselmann
95adf7ee26 Change GtkToolItem to retrieve its properties from GtkToolShell interface,
instead of relying on being child of a GtkToolbar. (#5034079)

* gtk/gtk.symbols, docs/reference/gtk/gtk-docs.sgml,
docs/reference/gtk/gtk-sections.txt: Add GtkToolShell symbols.
* docs/reference/gtk/tmpl/gtktoolitem.sgml: Move section docs inline.
* gtk/gtktoolbar.c: Implement GtkToolShellIface.
* gtk/gtktoolbar.h: Remove _gtk_toolbar_rebuild_menu.
* gtk/gtktoolitem.c: Use GtkToolShell, instead of GtkToolbar.
Take section docs from template file and update them for GtkToolShell.
* gtk/Makefile.am: Add gtk/gtktoolshell.c and gtk/gtktoolshell.h.
* gtk/gtktoolshell.c, gtk/gtktoolshell.h: New GtkToolShellIface.

svn path=/trunk/; revision=19177
2007-12-14 10:57:46 +00:00
Mathias Hasselmann
ea8074a407 Extract loading of GtkPageSetup and GtkPrintSettings from their *_new_*()
functions and move that code into separate *_load_*() functions (#475565).

* gtk/gtk.symbols, gtk/gtkpagesetup.c, gtk/gtkpagesetup.h:
Extract gtk_page_setup_load_file, gtk_page_setup_load_key_file,
gtk_print_settings_load_file and gtk_print_settings_load_key_file.
Change the matching *_new_*() functions to use those functions.

svn path=/trunk/; revision=19176
2007-12-14 09:02:54 +00:00
Matthias Clasen
da057b5675 Close an api gap in tooltips
svn path=/trunk/; revision=19175
2007-12-14 05:00:51 +00:00
Tommi Komulainen
62315bd5d0 Remove trailing whitespace that can trigger false positives in abicheck.sh
2007-12-06  Tommi Komulainen  <tommi.komulainen@iki.fi>

	* gdk-pixbuf/gdk-pixbuf.symbols:
	* gdk/gdk.symbols:
	* gdk/gtk.symbols: Remove trailing whitespace that can trigger false
	positives in abicheck.sh

svn path=/trunk/; revision=19124
2007-12-06 20:14:17 +00:00
18:59:59 Tim Janik
9ba5da2f36 run tests in current dir after setting up the logging directory, so their
2007-12-05 18:59:59  Tim Janik  <timj@imendio.com>

        * gtk+/Makefile.decl: run tests in current dir after setting up the
        logging directory, so their results get properly merged into the
        resulting test log.

        * gtk+/gtk/gtktestutils.[hc]: added gtk_test_list_all_types() for
        tests to loop over registered Gdk/Gtk+ types.

        * gtk+/tests/objecttests.c: new test program, implements automated
        property tests. several properties are blacklisted because they
        seem to trigger Gdk/Gtk+ bugs. ./objecttests -m thorough --verbose
        can be used to test blacklisted properties and see which proprty failed.



svn path=/trunk/; revision=19115
2007-12-05 16:58:44 +00:00
Tim Janik
4f7a2da8e8 Moved Gdk test functions from Gtk+ to Gdk test utils.
* gdk/Makefile.am: added gdktestutils.h to public includes.

* gdk/gdk.h: added gdktestutils.h to public includes.

* gdk/gdk.symbols: added gdk_test_simulate_button, gdk_test_simulate_key,
gdk_test_render_sync.

* gdk/gdktestutils.h: new file, added prototypes for gdk_test_simulate_button,
gdk_test_simulate_key, gdk_test_render_sync.

* gdk/x11/Makefile.am: build gdktestutils-x11.c.

* gdk/x11/gdktestutils-x11.c: implemented gdk_test_simulate_button,
gdk_test_simulate_key, gdk_test_render_sync.

* gtk/gtktestutils.c:
* gtk/gtktestutils.h:
* gtk/gtk.symbols: removed gtk_test_simulate_button
gtk_test_simulate_key, gtk_test_xserver_render_sync.

* gtk/tests/testing.c: call gdk_test_render_sync.

svn path=/trunk/; revision=19012
2007-11-20 15:03:31 +00:00
Tim Janik
936d27a475 Added Gtk+ testing utilities.
* gtk/gtktestutils.h, gtk/gtktestutils.c: added unit test utility functions.
for the most part, the functions herein involve navigating and interacting
with dialog elements programatically, to automate user interaction tests of
dialogs and widgets.

* gtk/gtk.h: include gtk/gtktestutils.h as public API.

* gtk/gtk.symbols: added gtk_test_* symbols.

* gtk/Makefile.am: include gtktestutils.h and gtktestutils.c into the build.
generate gtktypefuncs.c which contains a list of all _get_type functions in
Gtk+ and Gdk.

svn path=/trunk/; revision=19010
2007-11-20 15:03:26 +00:00
Matthias Clasen
7b2e82f5d0 Add new convenience api for tooltips on icon views
svn path=/trunk/; revision=18501
2007-07-19 14:59:44 +00:00
Kristian Rietveld
b1ec5f7556 add more convenience API.
2007-07-19  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtk.symbols:
	* gtk/gtktreeprivate.h:
	* gtk/gtktreeview.[ch] (gtk_tree_view_get_tooltip_context),
	(gtk_tree_view_[sg]et_tooltip_column): add more convenience API.

	* tests/testtooltip.c (query_tooltip_tree_view_cb): use
	gtk_tree_view_get_tooltip_context().

	* demos/gtk-demo/demo.ui: add a tooltip column to the list store,
	set tooltip-column on the tree view.


svn path=/trunk/; revision=18496
2007-07-19 13:21:09 +00:00
Matthias Clasen
bdf50bd4f6 Convenience functions to position tooltips on icon view items or cells.
2007-07-16  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtk.symbols:
        * gtk/gtkiconview.h:
        * gtk/gtkiconview.c (gtk_icon_view_set_tooltip_item):
        (gtk_icon_view_set_tooltip_cell): Convenience functions to
        position tooltips on icon view items or cells.



svn path=/trunk/; revision=18473
2007-07-16 14:04:35 +00:00