summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 2.9.0GTK_2_9_0Matthias Clasen2006-05-051-0/+1
|
* Implement per-page paper sizes.Alexander Larsson2006-05-054-0/+336
| | | | | | | | | | | | | | | | | | 2006-05-05 Alexander Larsson <alexl@redhat.com> * gtk/gtkprintoperation-unix.c: Implement per-page paper sizes. * gtk/gtkprintoperation.c: Implement per-page paper sizes for pdf output. Make gtk_print_operation_set_pdf_target() work again * tests/Makefile.am: * tests/testprint.c: * tests/testprintfileoperation.[ch]: Add more test code for printing support. This tests per-page paper sizes & orientation and deriving from GtkPrintOperation.
* Added new symbolsAlexander Larsson2006-05-042-0/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-04 Alexander Larsson <alexl@redhat.com> * gtk/gtk.symbols: Added new symbols * gtk/gtkpagesetupunixdialog.c: * gtk/gtkprintunixdialog.c: Destroy backends when finalizing dialogs. Fix printer leak in selected_printer_changed. * gtk/gtkprintbackend.[ch]: Convert from interface to baseclass. Move printer hashtable here so that the baseclass can handle the slightly complicated ownership model. Add gtk_print_backend_destroy which runs the dispose method, causing the ref-cycles between the backend and its printers to be broken. Add gtk_print_backend_unref_at_idle(). * gtk/gtkprinter.[ch]: GtkPrinter objects now ref their backend so that its always availible, since its needed for the printer object to work. This causes a reference-cycle that is broken using gtk_print_backend_destroy. Add gtk_printer_compare. * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation.c: Implement !show_dialog for unix. Make sure the print data is fully spooled before returning from a sync run_dialog. * modules/printbackends/cups/gtkcupsutils.[ch]: Add gtk_cups_request_ipp_add_strings * modules/printbackends/cups/gtkprintbackendcups.c: * modules/printbackends/cups/gtkprintercups.c: * modules/printbackends/lpr/gtkprintbackendlpr.c: * modules/printbackends/pdf/gtkprintbackendpdf.c: Convert backends to derive instead of implementing interface. Move common code into baseclass. CUPS: Remove the printer polling in dispose, not finalize. In the cups watch, remove the backend at idle instead of immediately, since the unref can cause the module to be unloaded. Limit the number of printer attributes requested Get printer uri in initial printer listing so that we can use the printer object immediately. * tests/Makefile.am: * tests/testnouiprint.c: Add testcase for !show_dialog.
* Merged the federico-filename-entry branch, to fix bug #136541. CombinedAFTER_FEDERICO_FILENAME_ENTRY_MERGEFederico Mena Quintero2006-05-031-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-03 Federico Mena Quintero <federico@novell.com> Merged the federico-filename-entry branch, to fix bug #136541. Combined ChangeLogs: 2006-04-17 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserdefault.c (pending_select_paths_process): Oops, we *do* need to check that we are in OPEN mode before selecting the first row in the file list. See https://bugzilla.novell.com/show_bug.cgi?id=166906 (gtk_file_chooser_default_get_paths): If we are in the case for the file list, and the list has no selected rows, jump to the case for the filename entry. This is so that 1. The user types a filename in the SAVE filename entry ("foo.txt"). 2. He then double-clicks on a folder ("bar") in the file list. will yield the expected "bar/foo.txt" selection. 2006-03-29 Federico Mena Quintero <federico@novell.com> * gtk/gtkpathbar.c (gtk_path_bar_init): Reduce the inter-button spacing to 0. * gtk/gtkfilechooserdefault.c (browse_widgets_create): Make the location label bold. 2006-03-29 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserdefault.c (location_mode_set): Just change the location_mode field if we are in SAVE/CREATE_FOLDER modes. (gtk_file_chooser_default_get_paths): Get the path based on the currently focused widget, or the last-focused widget. This is what we should have been doing in the beginning, but it worked out fine because we didn't have the possibility of a filename entry in OPEN mode. (gtk_file_chooser_default_should_respond): Handle the case where the last focused widget is the location_entry. 2006-03-28 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechoosersettings.[ch]: New files with a simple framework for saving/loading settings from the file chooser in $XDG_CONFIG_HOME/gtk-2.0/gtkfilechooser. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_unmap): Save the current settings. (settings_save): New helper function. We save the location_mode and show_hidden flags. (gtk_file_chooser_default_map): Load the settings. (settings_load): New helper function. * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_file_part): Oops, don't modify in_change. Our handlers are what set the file_part, so they *must* be run when we modify the text. 2006-03-27 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): Removed the save_file_name_entry. We'll make this be the same as the location_entry widget. (struct _GtkFileChooserDefault): Leave only location_button, location_entry_box, location_label, location_entry. We'll use a single toggle button for the location entry, which will appear below the path bar. (struct _GtkFileChooserDefault): Added a processing_pending_selections flag. * gtk/gtkfilechooserdefault.c (save_widgets_create): Destroy the old location_entry if necessary, and hide the location toggle widgets. (update_chooser_entry): In multiple selection mode, just clear the location_entry. (check_save_entry): Allow running in OPEN or SELECT_FOLDER modes if we are in LOCATION_MODE_FILENAME_ENTRY. (gtk_file_chooser_default_should_respond): Switch to a folder if the location_entry contains a folder name in OPEN and SAVE mode, not just SAVE mode. If the entry doesn't contain a folder name, but is otherwise well-formed, and we are in OPEN mode, return that we should respond with that filename. (gtk_file_chooser_default_initial_focus): Focus the location_entry if appropriate. (browse_widgets_create): Create the location_entry_box and the location_label here. (update_appearance): Call location_mode_set() when switching back to OPEN/SELECT_FOLDER mode. Hide the location_button when switching to SAVE/CREATE_FOLDER mode. (pending_select_paths_process): Turn the processing_pending_selections flag on and off around changes to the current selection. Don't special-case OPEN mode anymore, since the new flag will take care of things in update_chooser_entry(). (update_chooser_entry): Don't do anything if processing_pending_selections is TRUE. This keeps the entry from being polluted when changing folders. (location_popup_handler): In OPEN/SELECT_FOLDER modes, toggle between the path bar and the entry. In SAVE/CREATE_FOLDER modes, simply focus the location_entry. (update_from_entry): Removed. (location_entry_create): Removed. (open_location_cb): Removed. (file_list_build_popup_menu): Don't add an "Open _Location" menu item. (location_entry_set_initial_text): Don't do anything if current_folder is NULL. * gtk/gtkfilechooserentry.c (_gtk_file_chooser_entry_set_file_part): Turn in_change on and off around the call to gtk_entry_set_text(). This makes completion not happen when the caller has explicitly set a name. 2006-03-24 Federico Mena Quintero <federico@novell.com> * gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): Added fields location_mode_box, location_pathbar_radio, location_filename_radio, location_widget_box, location_label, location_entry. The radio buttons will switch between the pathbar and the location entry; the other boxes are for layout purposes. (enum LocationMode): New enum. (struct _GtkFileChooserDefault): Added a location_mode field. * gtk/gtkfilechooserdefault.c (browse_widgets_create): Create the location radio buttons to switch between the pathbar and the location entry. Pack the browse_path_bar in the new location_widget_box instead of a generic hbox. (location_buttons_create): New function. (gtk_file_chooser_default_init): Initialize impl->location_mode. (location_switch_to_path_bar): New function. (location_switch_to_filename_entry): New function. * gtk/gtkfilechooserbutton.c (model_add_special): The display_name should not be const.
* (broken pipe)Kristian Rietveld2006-04-262-1/+162
|
* Create 'composited' label.Søren Sandmann2006-04-251-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Apr 25 10:25:28 2006 Søren Sandmann <sandmann@redhat.com> * tests/testgtk.c (create_alpha_window): Create 'composited' label. * tests/testgtk.c (on_composited_changed): New function, change the label to say whether the screen is composited or not. * gtk/gtkwindow.c (gtk_window_on_composited_changed): When composited status change, invalidate the window and propagate the signal;. * gtk/gtkwindow.c (gtk_window_map): Set the appropriate type hint if reset_type_hint is TRUE. * gtk/gtkwindow.c (gtk_window_set_type_hint): If hint is one of the old hints, store a shadow copy in the public window->type_hint bitfield, otherwise set this field to normal. Set the private field to the type hint. * gtk/gtkwindow.c (gtk_window_init): Initialize priv->type_hint. * gtk/gtkwindow.c (struct _GtkWindowPrivate): New field "reset_type_hint" indicating whether the type hint needs to be reset. New field type_hint containing a GdkWindowTypeHint. * gtk/gtkwidget.c (propagate_composited_changed): New function to propagate changes in composited status. (gtk_widget_class_init): Add composited_changed signal. * gtk/gtkwidget.h (struct _GtkWidgetClass): New signal composited-changed. * gtk/gtkwidget.c (gtk_widget_is_composited): New function. * gtk/gtktooltips.c (gtk_tooltips_draw_tips): Set transient for. * gtk/gtktooltips.c (gtk_tooltips_force_window): Set the type hint * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Compute whether the item belongs to a menubar. Set the type_hint appropriately depending on the outcome. * gtk/gtkmenu.c (gtk_menu_position): Set the default type hint here. * gtk/gtkmenu.c (gtk_menu_attach_to_widget): connect to hierarchy changed on the attach widget. * gtk/gtkmenu.c (attach_widget_hierarchy_changed): New function to set the transient_for property for menus. * gtk/gtkdnd.c (set_icon_stock_pixbuf): Set the appropriate type hint. * gtk/gtkcombo.c (gtk_combo_popup_list): Make the popup window transient for the toplevel. * gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Set transient-for, for the popup window. * gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): Support for new window types. * gdk/x11/gdkwindow-x11.c (gdk_window_set_type_hint): Add support for new window types. * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change): New function called whenever the compositing manager comes and goes. * gdk/x11/gdkscreen-x11.c (gdk_screen_is_composited): New function. * gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_request_cm_notification, make_cm_atom, check_is_composited): New functions * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call _gdk_x11_screen_process_owner_change when an XFixesSelectionNotifyEvent is received. * gdk/x11/gdkdisplay-x11.c (gdk_display_open): Call _gdk_x11_screen_request_cm_notification() on all screens. * gdk/quartz/gdkscreen-quartz.c (gdk_screen_is_composited): Dummy implementation. * gdk/gdkscreen.c (gdk_screen_class_init): New signal, 'composited-changed'. * gdk/gdkwindow.h: Add new EWMH window types. * gdk/win32/gdkscreen-win32.c (gdk_screen_is_composited)
* Merge the gtk-printing branch. For more detailed ChangeLog entries, seeAlexander Larsson2006-04-213-0/+686
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-04-21 Alexander Larsson <alexl@redhat.com> Merge the gtk-printing branch. For more detailed ChangeLog entries, see the branch. * .cvsignore: * Makefile.am: * configure.in: * docs/tools/widgets.c: * gtk+-unix-print-2.0.pc.in: * gtk/Makefile.am: * gtk/gen-paper-names.c: * gtk/gtk.h: * gtk/gtk.symbols: * gtk/gtkenums.h: * gtk/gtkiconfactory.c: * gtk/gtkmarshalers.list: * gtk/gtkpagesetup.[ch]: * gtk/gtkpagesetupunixdialog.[ch]: * gtk/gtkpapersize.[ch]: * gtk/gtkprint-win32.[ch]: * gtk/gtkprintbackend.[ch]: * gtk/gtkprintcontext.[ch]: * gtk/gtkprinter-private.h: * gtk/gtkprinter.[ch]: * gtk/gtkprinteroption.[ch]: * gtk/gtkprinteroptionset.[ch]: * gtk/gtkprinteroptionwidget.[ch]: * gtk/gtkprintjob.[ch]: * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation-unix.c: * gtk/gtkprintoperation-win32.c: * gtk/gtkprintoperation.[ch]: * gtk/gtkprintsettings.[ch]: * gtk/gtkprintunixdialog.[ch]: * gtk/paper_names.c: * gtk/paper_names_offsets.c: Platform independent printing API and implementations for unix and windows. * gtk/gtkstock.h: * gtk/stock-icons/24/gtk-orientation-landscape.png: * gtk/stock-icons/24/gtk-orientation-portrait.png: * gtk/stock-icons/24/gtk-orientation-reverse-landscape.png: Add stock icons for page orientation. * modules/Makefile.am: * modules/printbackends/Makefile.am: * modules/printbackends/cups/Makefile.am: * modules/printbackends/cups/gtkcupsutils.[ch]: * modules/printbackends/cups/gtkprintbackendcups.[ch]: * modules/printbackends/cups/gtkprintercups.[ch]: Cups printing backend for unix. * modules/printbackends/lpr/Makefile.am: * modules/printbackends/lpr/gtkprintbackendlpr.[ch]: lpr printing backend for unix. * modules/printbackends/pdf/Makefile.am: * modules/printbackends/pdf/gtkprintbackendpdf.[ch]: print-to-pdf printing backend for unix. * tests/.cvsignore: * tests/Makefile.am: * tests/print-editor.c: Test application for printing. * gdk/gdk.symbols: * gdk/win32/gdkevents-win32.c: * gdk/win32/gdkwin32.h: Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the mainloop while displaying a win32 common dialog. * gdk/directfb/Makefile.am: Whitespace cleanup.
* plug small leak (#339132) dittoPaolo Borelli2006-04-201-9/+28
| | | | | | | 2006-04-20 Paolo Borelli <pborelli@katamail.com> * gtk/gtkcombobox.c: plug small leak (#339132) * tests/testcombo.c: ditto
* updatedHans Breuer2006-04-071-1/+6
| | | | | | 2006-04-07 Hans Breuer <hans@breuer.org> * gtk/makefile.msc.in tests/makefile.msc : updated
* handle the case of \r and \n split across lines. Bug #337022. add unitPaolo Borelli2006-04-051-0/+30
| | | | | | | | 2006-04-05 Paolo Borelli <pborelli@katamail.com> * gtk/gtktextiter.c (gtk_text_iter_ends_line): handle the case of \r and \n split across lines. Bug #337022. * tests/testtextbuffer.c: add unit test.
* Add testrecentchooser.Behdad Esfahbod2006-03-301-0/+1
|
* Add a test suite for GtkRecentChooser.Emmanuele Bassi2006-03-292-0/+212
| | | | | | | 2006-03-29 Emmanuele Bassi <ebassi@cvs.gnome.org> * tests/Makefile.am: * tests/testrecentchooser.c: Add a test suite for GtkRecentChooser.
* Support subclasses in RC files. (#142417, Todd Berman, patch based on aMatthias Clasen2006-03-231-0/+77
| | | | | | | | | | | | | | | | | 2006-03-23 Matthias Clasen <mclasen@redhat.com> Support subclasses in RC files. (#142417, Todd Berman, patch based on a patch by Benjamin Berg) * gtk/gtkrc.h: * gtk/gtkrc.c: Support <classname> elements in widget_class paths in rc files which match any classes derived from named class. (_gtk_rc_init): Use the new syntax in the default rc string. * gtk/gtkbindings.c: Support the new syntax for bindings too. * tests/testrc.c: Tests for widget_class path matching
* Add a column that demonstrates how to use the new spinbutton cellrenderer.Johan Dahlin2006-03-221-8/+75
| | | | | * tests/testtreeview.c: Add a column that demonstrates how to use the new spinbutton cellrenderer.
* Remove pointless includes of config.h, to make it easier compilableMatthias Clasen2006-03-222-2/+0
| | | | | | | | 2006-03-22 Matthias Clasen <mclasen@redhat.com> * tests/prop-editor.c: * tests/testtreeview.c: Remove pointless includes of config.h, to make it easier compilable against system GTK+.
* send a GtkWidget** instead of a GtkNotebookPage* when doing tabs DnD, thisCarlos Garnacho2006-03-221-2/+70
| | | | | | | | | 2006-03-22 Carlos Garnacho <carlosg@gnome.org> * gtk/gtknotebook.c: send a GtkWidget** instead of a GtkNotebookPage* when doing tabs DnD, this allows DnD interaction with other widgets, added some docs for this too. * tests/testnotebookdnd.c: add some code to test it.
* Added testnotebookdnd.Behdad Esfahbod2006-03-151-0/+1
|
* Add test cases for alignment.Matthias Clasen2006-03-141-30/+40
| | | | | | | | | | | 2006-03-14 Matthias Clasen <mclasen@redhat.com> * tests/testcellrenderertext.c: Add test cases for alignment. * gtk/gtkcellrenderertext.c: Add an alignment property, and fix some cases where ellipsize_set was being used to mean "we're ellipsizing" even when ellipsize was set to NONE. (#318761, Ross Burton)
* Rename ::tab-added and ::tab-removed signals to ::page-added andCarlos Garnacho2006-03-081-4/+4
| | | | | | | | | | | | | | | | | | | | | 2006-03-08 Carlos Garnacho <carlosg@gnome.org> Rename ::tab-added and ::tab-removed signals to ::page-added and ::page-removed for not conflicting with other tab reordering implementations. Fixes bug #333743. Also rename ::tab-reordered to ::page-reordered, and emit it in gtk_notebook_reorder_child () to make it behave consistently with the other two signals. * gtk/gtknotebook.c (gtk_notebook_class_init): rename signals. (gtk_notebook_reorder_tab) (gtk_notebook_button_release) (gtk_notebook_remove) (gtk_notebook_real_insert_page): emit respectively renamed signals (gtk_notebook_reorder_child): also emit ::page-reordered here * tests/testnotebookdnd.c: use renamed signals
* zero-initialize the GValue before calling g_value_init().Michael Natterer2006-03-081-1/+1
| | | | | | | 2006-03-08 Michael Natterer <mitch@imendio.com> * tests/prop-editor.c (unichar_changed): zero-initialize the GValue before calling g_value_init().
* Add infrastructure for copy/paste and DND of rich text for GtkTextBuffer.Michael Natterer2006-03-071-2/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-07 Michael Natterer <mitch@imendio.com> Add infrastructure for copy/paste and DND of rich text for GtkTextBuffer. Fixes bug #324177. * gtk/gtktextbufferrichtext.[ch]: new files implementing a per-buffer registry of rich text formats. * gtk/gtk.h: #include gtktextbufferrichtext.h * gtk/gtktextbufferserialize.[ch]: new files implementing an internal serialization format that can handle all of a text buffer's tags and pixbufs. It's not useful for anything except tranfer between instances of GtkTextBuffer (Anders Carlsson). * gtk/Makefile.am: build the new files. * gtk/gtkclipboard.[ch]: added convenience APIs for rich text, just as they exist for plain text and pixbufs. * gtk/gtkselection.[ch]: added rich text convenience APIs here too. Return the target list from gtk_target_list_ref(). Register GtkTargetList as boxed type. Added gtk_target_table_new_from_list() and gtk_target_table_free(), which make converting between GtkTargetList and arrays of GtkTargetEntry considerably easier. * gtk/gtktextutil.[ch]: added _gtk_text_util_create_rich_drag_icon() which creates a fancy rich text icon (Matthias Clasen). * gtk/gtktextbuffer.[ch]: use all the new stuff above and implement copy and paste of rich text. Added APIs for getting the target lists used for copy and paste. Added public enum GtkTextBufferTargetInfo which contains the "info" IDs associated with the entries of the target lists. * gtk/gtktextview.c: use the new rich text APIs and GtkTextBuffer's new target list API to enable DND of rich text chunks. * gtk/gtk.symbols: export all the new symbols added. * tests/testtext.c: added rich text testing stuff.
* Add testsMatthias Clasen2006-02-232-0/+176
|
* Actually implement visibility handling, and addMatthias Clasen2006-01-311-5/+26
| | | | | | | | | | | 2006-01-31 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkassistant.h: * gtk/gtkassistant.c: Actually implement visibility handling, and add gtk_assistant_update_buttons_state. * tests/testassistant.c: Test visibility handling.
* GtkAssistant stuffMatthias Clasen2006-01-301-15/+125
|
* If major.minor of required and available glib versions are the same, addBehdad Esfahbod2006-01-291-1/+0
| | | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * configure.in: If major.minor of required and available glib versions are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617) * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
* Introspect child properties. too.Matthias Clasen2006-01-261-60/+257
| | | | | | 2006-01-26 Matthias Clasen <mclasen@redhat.com> * tests/prop-editor.c: Introspect child properties. too.
* #322591, Jonathan Blandford.Kristian Rietveld2006-01-241-1/+28
| | | | | | | | | | | | | | | | | | | | | 2006-01-24 Kristian Rietveld <kris@gtk.org> #322591, Jonathan Blandford. * gtk/gtktreeview.[ch] (gtk_tree_view_get_search_entry), (gtk_tree_view_set_search_entry), (gtk_tree_view_get_search_position_func), (gtk_tree_view_set_search_position_func): New functions, and small adaptions to the tree view code to allow for setting the entry and search position function. * gtk/gtktreeprivate.h: Removed GtkTreeViewSearchDialogPositionFunc typedef, which is now in gtktreeview.h as GtkTreeViewSearchPositionFunc. Add/update fields. * gtk/gtk.symbols: Add new functions. * tests/testtreesort.c: Add a little test for _set_search_entry().
* Fixed typo.Behdad Esfahbod2006-01-231-1/+1
|
* Fix misalignment of RTL text in ellipsized GtkLabel: use layout width ifBehdad Esfahbod2006-01-231-0/+2
| | | | | | | | 2006-01-23 Behdad Esfahbod <behdad@gnome.org> * gtk/gtklabel.c (get_layout_location): Fix misalignment of RTL text in ellipsized GtkLabel: use layout width if set, otherwise fallback to ink extents width. (#322042)
* GtkAssistant testsMatthias Clasen2006-01-212-0/+457
|
* grrr... the pipe did b0rk b0rk b0rkKristian Rietveld2006-01-151-2/+53
|
* add a little test for the newly introduced indicator-size property.Kristian Rietveld2006-01-131-0/+18
| | | | | | | 2006-01-13 Kristian Rietveld <kris@imendio.com> * tests/testtreefocus.c (set_indicator_size), (main): add a little test for the newly introduced indicator-size property.
* Add an expander example.Matthias Clasen2006-01-111-0/+41
| | | | | | 2006-01-10 Matthias Clasen <mclasen@redhat.com> * tests/testgtk.c: Add an expander example.
* added a bunch of tests use g_snprintf() don't include unistd.h twice.Hans Breuer2006-01-063-9/+21
| | | | | | | | | 2006-01-06 Hans Breuer <hans@breuer.org> * tests/makefile.msc : added a bunch of tests * tests/testcellrenderertext.c : use g_snprintf() * tests/testfilechooserbutton.c : don't include unistd.h twice. Removed the unconditional one and added direct.h for G_OS_WIN32
* fixup line i swallowed earlier ;)Tim Janik2005-12-221-0/+1
|
* derive GtkObject from GUnowned, so it initially has a floating referenceTim Janik2005-12-222-1/+68
| | | | | | | | | | | | Thu Dec 22 16:01:27 2005 Tim Janik <timj@imendio.com> * gtk/gtkobject.c: derive GtkObject from GUnowned, so it initially has a floating reference count. gtk_object_class_init(): installa floating flag handler with libgobject, so for GtkObjects the flag is stored as GTK_FLOATING in the ->flags member. * tests/floatingtest.c: test floating flag uses.
* applied patch from maemo-gtk which avoids the allocation of anMichael Natterer2005-12-141-0/+0
| | | | | | | | | | | 2005-12-14 Michael Natterer <mitch@imendio.com> * gdk-pixbuf/io-jpeg.c: applied patch from maemo-gtk which avoids the allocation of an intermediate buffer for non-progressive jpegs. Fixed bug #305894. * tests/test-images/valid_jpeg_progressive_test: new test image so we can test both loading code paths in io-jpeg.c
* Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com):Federico Mena Quintero2005-11-283-1/+102
| | | | | | | | | | | | | | | | | | 2005-11-28 Federico Mena Quintero <federico@ximian.com> Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com): * gtk/gtkfilechooserdefault.c (up_folder_handler): Don't add the current_folder to the pending select paths here; the path bar will give it to us now. (path_bar_clicked): Add the child_path to the pending select paths here. (show_and_select_paths): Don't filter out folders. (show_and_select_paths): Don't take separate arguments for only_one_path and multiple paths. * tests/autotestfilechooser.c (test_folder_switch_and_filters): New test about preserving the filters when we change folders.
* Added symbolic themable colors. Patch is a merged version of proposalsMichael Natterer2005-11-231-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-11-23 Michael Natterer <mitch@imendio.com> Added symbolic themable colors. Patch is a merged version of proposals from Matthias and maemo-gtk. Fixes bug #114355. * configure.in: require glib >= 2.9.1 for refcountable hashtables. * gtk/gtksettings.c: added property "color-scheme" which is a string defining colors like "foreground:black\nbackground:grey". Automatically provide a name->GdkColor hash table mapping for the color scheme. * gtk/gtkrc.[ch]: added list of color hashes that works like the list of icon factories. Append the color scheme hash from GtkSettings if it exists. Extended gtkrc syntax to allow defining and referencing of logical colors. Also allow to modulate colors in gtkrc by using arbitrary expressions of mix(), shade(), lighter() and darker(). Added internal function _gtk_rc_style_get_color_hashes(). * gtk/gtkstyle.[ch]: keep a private list of color hashes around. Get the list from _gtk_rc_style_get_color_hashes(). Export internal function _gtk_style_shade() (used by above color expressions). Added public API gtk_style_lookup_color() which looks up a logical color by name. * gtk/gtk.symbols: add gtk_style_lookup_color * tests/testgtkrc: use symbolic colors for making the scrollbars red.
* Add a tearoff-title property, with getter and setter. (#316482, OlexiyMatthias Clasen2005-11-211-0/+1
| | | | | | | | | | 2005-11-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkcombobox.[hc]: Add a tearoff-title property, with getter and setter. (#316482, Olexiy Avramchenko) * tests/testcombo.c (main): Test gtk_combo_box_set_title
* call gtk_window_process_updates() so the animation keeps running even ifMichael Natterer2005-11-161-3/+45
| | | | | | | | | | | | | | | | 2005-11-16 Michael Natterer <mitch@imendio.com> * gtk/gtkimage.c (animation_timeout): call gtk_window_process_updates() so the animation keeps running even if the main loop is busy with sources that eat a lot of cpu with high priority. Fixes bug #321444. (gtk_image_new_from_animation): document the fact that the animation will stop running if the main loop is busy with sources that have priorities higher than G_PRIORITY_DEFAULT. * tests/testimage.c: added test case that shows an animation even though a cpu-eating idle function is running.
* Use g_log_set_default_handler() instead of explicitly setting a handlerFederico Mena Quintero2005-11-111-13/+11
| | | | | | | | 2005-11-11 Federico Mena Quintero <federico@ximian.com> * tests/autotestfilechooser.c (main): Use g_log_set_default_handler() instead of explicitly setting a handler for each domain.
* Add show-popup and hide-popup signals and emit them when the popup isMatthias Clasen2005-11-101-1/+130
| | | | | | | | 2005-11-10 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcombobox.c: Add show-popup and hide-popup signals and emit them when the popup is shown or hidden. (#162531, Tommi Komulainen)
* Position the dialog with GTK_WIN_POS_CENTER. (do_quit): New function, hideTor Lillqvist2005-11-031-0/+18
| | | | | | | | | | 2005-11-03 Tor Lillqvist <tml@novell.com> * tests/teststatusicon.c (icon_activated): Position the dialog with GTK_WIN_POS_CENTER. (do_quit): New function, hide and unref the GtkStatusIcon, and call gtk_main_quit(). (popup_menu): Add a Quit menu item that calls do_quit().
* Add a TODO - FedericoFederico Mena Quintero2005-11-011-0/+13
|
* Add property editorsMatthias Clasen2005-10-262-4/+35
|
* Fixes bug #317999:Federico Mena Quintero2005-10-191-63/+92
| | | | | | | | | | | | | | | 2005-10-18 Federico Mena Quintero <federico@ximian.com> Fixes bug #317999: * tests/autotestfilechooser.c (test_button_folder_states_for_action): Test that we have either $cwd or the explicitly-set folder. (test_reload_sequence): Likewise. * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_get_current_folder): If our reload_state is RELOAD_EMPTY, return a GtkFilePath corresponding to $cwd.
* Added more tests.Behdad Esfahbod2005-10-151-0/+4
|
* Demonstrate custom widgets in a GtkComboBox.Matthias Clasen2005-10-091-0/+74
|
* Fixes bug #317999:Federico Mena Quintero2005-10-071-3/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-10-07 Federico Mena Quintero <federico@ximian.com> Fixes bug #317999: * tests/autotestfilechooser.c (test_reload_sequence): Ensure that the the result of gtk_file_chooser_get_folder() is NULL or non-NULL at the right times. Log the tests. (test_button_folder_states): New test for the initial states of the current folder in GtkFileChooserButton. (main): Test that the number of warnings/errors/critical errors is zero. * gtk/gtkfilechooser.c (gtk_file_chooser_get_current_folder): Clarify the documentation on when this can return NULL. (gtk_file_chooser_get_current_folder_uri): Likewise. * gtk/gtkfilechooserbutton.c (struct _GtkFileChooserButtonPrivate): Added a folder_has_been_set flag; we use it to keep track of whether a folder has been set. (gtk_file_chooser_button_map): Implement. If no folder has been loaded before, we at least try to load $cwd here. (gtk_file_chooser_button_constructor): If the construct-time dialog already has a folder set, turn on our folder_has_been_set flag. (dialog_current_folder_changed_cb): Turn on our folder_has_been_set flag.