summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* gdk/gdkdraw.c #include gdkcairo.h for gdk_cairo_create() declaration.Manish Singh2005-05-141-4/+4
| | | | | | | | | | | | | | | | Sat May 14 00:07:46 2005 Manish Singh <yosh@gimp.org> * gdk/gdkdraw.c * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create() declaration. * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually call gdk_cairo_set_source_color() with a color. * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable. * tests/testiconview.c (main): cast args of drag functions to the appropriate type.
* Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in toOwen Taylor2005-05-121-1/+5
| | | | | | | 2005-05-11 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to avoid having an extraneous window.
* Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in toOwen Taylor2005-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-11 Owen Taylor <otaylor@redhat.com> * gtk/gtkcolorbutton.c: Use a GtkAlignment rather than a GtkDrawingArea to draw the swatch in to avoid having an extraneous window. * gtk/gtkcolorsel.c (color_sample_draw_sample): Actually se tthe color when !has_opacity. 2005-05-10 Owen Taylor <otaylor@redhat.com> * gdk/gdkcairo.[ch] gdk/gdkcolor.[ch] gdk/Makefile.am: Add source files for Cairo convenience functionality. * gdk/gdkcairo.h (gdk_cairo_rectangle, gdk_cairo_region): Add a convenience functions to add GdkRectangle, GdkRegion to a cairo path. * gdk/gdkwindow.c gdk/gdkgc.c gtk/gtkcolorsel.c gtk/gtkiconview.c gtk/gtkstyle.c: Use gdk_cairo_rectangle/region(). * gdk/gdkcairo.[ch] gdk/gdkdrawable.h gdk/gdkdraw.c: Rename gdk_drawable_create_cairo_context() to gdk_cairo_create(). * gdk/gdkcairo.c gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Rename gdk_pixbuf_set_as_cairo_source() to gdk_cairo_set_source_pixbuf(). * gdk/gdkdraw.c gdk/gdkpango.c gtk/gtkcolorsel.c gtk/gtkhruler.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkstyle.c gtk/gtkvruler.c: Adjust for renames. * gdk/gdk.symbols: Update. * gtk/gtkwidget.c (gtk_widget_queue_shallow_draw): Fix coordinate system problem that was causing the wrong portions to be invalidated. * gtk/gtkcellrenderer.c (gtk_cell_renderer_render) gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render) gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_render) gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render) gtk/gtkcellview.c (gtk_cell_view_expose) gtk/gtkdnd.c (gtk_drag_highlight_expose) gtk/gtkentry.c (gtk_entry_draw_text) gtk/gtktextview.c (text_window_invalidate_rect): Some cairoization. * gtk/gtkcalendar.[ch]: Beat into something roughly resembling GTK+ style ... use instance-private data and standard names for private structure, etc. Move function docs inline. * gtk/gtkcalendar.[ch]: Switch to drawing everything in expose. Switch drawing to Cairo. * gtk/gtkcalendar.c (gtk_calendar_freeze): Deprecate gtk_calendar_freeze/thaw
* Fill in unused bits so they can be used for the depth-32 target case.Owen Taylor2005-05-091-0/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-05-09 Owen Taylor <otaylor@redhat.com> * gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br): Fill in unused bits so they can be used for the depth-32 target case. Rewrite so that that gives a marginal speedup rather than a marginal slowdown. (on x86) * gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c: Add gdk_screen_get_rgba_colormap/visual to get a visual for windows with an alpha channel, if one exists. * gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c: Stub out gdk_screen_get_rgba_colormap/visual. * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of "unused" wasn't right for depth == 32, since it depended on shifting by 32. * gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from Keith Packard, http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html) * gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture): Implement again, without using Xft. * tests/testgtk.c: Add a test for windows with an alpha channel.
* Change prototype to match cairo_set_source_surface().Owen Taylor2005-05-071-36/+25
| | | | | | | | | | 2005-05-07 Owen Taylor <otaylor@redhat.com> * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_set_as_cairo_source): Change prototype to match cairo_set_source_surface(). * gdk/gdkdraw.c gdk/gdkgc.c gdk/gdkpixbuf-render.c gdk/gdkwindow.c gtk/gtkhsv.c tests/testcairo.c.
* Test DND.Matthias Clasen2005-05-061-2/+64
| | | | | | | | | | 2005-05-06 Matthias Clasen <mclasen@redhat.com> * tests/testiconview.c: Test DND. * gtk/gtk.symbols: * gtk/gtkiconview.[hc]: Add DND support similar to the DND support in the tree view. (#150270)
* Replace cairo_show_surface() uses withSøren Sandmann2005-05-041-3/+6
| | | | | | | Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com> * tests/testcairo.c (draw): Replace cairo_show_surface() uses with cairo_set_source_surface()/cairo_paint();
* Test cell renderers.Matthias Clasen2005-05-021-9/+77
| | | | | | | | | | | 2005-05-02 Matthias Clasen <mclasen@redhat.com> * tests/testiconview.c: Test cell renderers. * gtk/gtk.symbols: Add new functions. * gtk/gtkiconview.[hc]: Implement GtkCellLayout and use cell renderers for drawing and editing. (#148144, #160242)
* Add some more tests.Matthias Clasen2005-04-291-1/+33
| | | | | | | | | | | | 2005-04-29 Matthias Clasen <mclasen@redhat.com> * tests/testiconview.c: Add some more tests. * gtk/gtkiconview.c (gtk_icon_view_select_path): Don't crash if the path does not point to a row in the model. (#300909, Mathias Hasselmann) (gtk_icon_view_rows_reordered): Re-layout here. (#301009, Mathias Hasselmann)
* Add some more attribute tests.Matthias Clasen2005-04-291-1/+129
| | | | | | | | | | 2005-04-29 Matthias Clasen <mclasen@redhat.com> * tests/testtext.c: Add some more attribute tests. * gtk/gtktexttag.c (gtk_text_tag_class_init): Correct the documentation of the rise property. String change, but it is more important to be correct than to be translated. (#301740)
* gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c Update toOwen Taylor2005-04-181-10/+10
| | | | | | | | | 2005-04-18 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c * gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for setting color and opacity. (#301066, Vincent Noel)
* [merged from gtk-2-6 branch] let dash_offset shift the start of the lineHans Breuer2005-04-031-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | 2005-04-03 Hans Breuer <hans@breuer.org> [merged from gtk-2-6 branch] * gdk/win32/gdkdrawable-win32.c : let dash_offset shift the start of the line pattern not the start of the line. Fixes bug #171641. * gtk/makefile.msc.in : follow .symbols changes * gdk/win32/gdkwindow-win32.c : declare and resolve GetAncestor() dynamically. (It is not available in _WIN_VER <= 0x0400) * gdk/win32/makefile.msc : removed gdkpango-win32.obj * gtk/gtkhsv.c gtk/gtkstyle.c : use G_PI instead of M_PI [also applied to gtk-2-6 branch] * gdk/makefile.msc gdk-pixbuf/makefile.msc : handle gdk*alias.def * gdk/makefile.msc.in : add gtkmnemonichash.obj * test/testgtk.c(set_parent_signal) : use g_message instead of g_print to keep the 'testgtk --bench=all' output clean
* Switch set_cairo_target() virtual function to ref_cairo_surface()Owen Taylor2005-03-172-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-15 Owen Taylor <otaylor@redhat.com> * gdk/gdkdrawable.h gdk/gdkdraw.c gdk/gdkpixmap.c gdk/gdkwindow.c gdk/x11/gdkdrawable-x11.c gdk/x11/gdkpixmap-x11.c gdk/x11/gdkwindow-x11.c gdk/gdkinternals.h: Switch set_cairo_target() virtual function to ref_cairo_surface() * gdk/gdkdrawable.h gdk/gdkdraw.h: Switch set_cairo_target() virtual function to create_cairo_context() * gdk/gdkwindow.c: Clear double buffer pixmaps with Cairo. * gdk/x11/gdkwindow-x11.c: Keep all components in GdkWindowObject.bg_color, not just the pixel. * tests/testcairo.c: Update for create_cairo_context() * gdk/gdkdraw.c (gdk_draw_trapezoids, gdk_draw_glyphs[_transformed]): Reimplement in terms of Cairo, bypass the vtable entries. * gdk/x11/gdkdrawable-x11.[ch] gdk/x11/gdkdisplay-x11.[ch] gdk/x11/gdkgc-x11.c gdk/x11/gdkpango-x11.c gdk/x11/gdkprivate-x11.h gdk/x11/Makefile.am: Remove implementation of draw_trapezoids / draw_glyphs[_transformed]. * gdk/gdkpango.c: Switch GdkPangoRenderer to use Cairo * gdk/gdkpango.c gdk/x11/gdkpango-x11.c: Move gdk_pango_context_get_for_screen() into the backend independent code. * gdk/x11/gdkdrawable-x11.[ch]: Remove Xft use, use RENDER directly for drawing images. * gdk/gdkdrawable.h gdk/x11/gdkdrawable-x11.c: Remove gdk_draw_rectangle_alpha_libgtk_only. * gdk/gdkpixbuf.h gdk/gdkpixbuf-render.c: Add gdk_pixbuf_set_as_cairo_source() * gdk/gdk.symbols: Update * gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c gtk/gtkruler.[ch] gtk/gtk[hv]ruler.c: Convert to Cairo rendering. * gtk/gtkstyle.c (gtk_default_draw_check, gtk_default_draw_focus, gtk_default_draw_option): Switch to Cairo. Simplify the checkbutton, radio button style for now to get something more scalable. * gtk/gtksettings.c: #if 0 out the code to use PangoXft for hinting/ antialiasing/dpi settings.
* Shut up cvsManish Singh2005-02-171-0/+1
|
* Support vertical menubars (#166632):Matthias Clasen2005-02-112-0/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-11 Matthias Clasen <mclasen@redhat.com> Support vertical menubars (#166632): * gtk/gtkenums.h (GtkPackDirection): New enumeration for pack directions, with values for left-to-right, right-to-left, top-to-bottom and bottom-to-top. * gtk/gtk.symbols: * gtk/gtkmenubar.h: * gtk/gtkmenubar.c: Add two properties, pack-direction and child-pack-direction, which specify how children and grandchildren of a menubar are packed, with getters and setters. * gtk/gtkmenubar.c (gtk_menu_bar_set_property): (gtk_menu_bar_get_property): Implement set_property and get_property. * gtk/gtkmenubar.c (gtk_menu_bar_size_request): (gtk_menu_bar_size_allocate): Take pack direction into account. * gtk/gtkmenubar.c (gtk_menu_bar_move_current): Implement move_current here move all the menubar-specific direction tweaking from the generic menushell implementation here. * gtk/gtkmenu.c (gtk_menu_move_current): Move menu-specific direction tweaking from the generic menushell implementation here. * gtk/gtkmenuitem.c (gtk_menu_item_size_request): (gtk_menu_bar_size_allocate): Take pack direction into account. * gtk/gtkimagemenuitem.c (gtk_image_menu_item_size_request) (gtk_image_menu_item_size_allocate): (gtk_image_menu_item_toggle_size_request): Take child pack direction into account and pack the image vertically if necessary. * gtk/gtkmenushell.c (gtk_menu_shell_real_select_item): Set the submenu direction to left-right for menuitems in vertical menubars. (gtk_real_menu_shell_move_current): Simplify by moving direction tweaking to menu- and menubar-specific implementations. Take pack direction into account when doing fallbacks. * tests/testmenubars.c: Test menubars in various packing direction combinations. * tests/Makefile.am (noinst_PROGRAMS): Add testmenubars.
* build with Cairo dependency. The patch to acually use Cairo on win32 willHans Breuer2005-02-071-2/+6
| | | | | | | | | | | | 2005-02-05 Hans Breuer <hans@breuer.org> * gdk/makefile.msc gdk/win32/makefile.msc gtk/makefile.msc.in : build with Cairo dependency. The patch to acually use Cairo on win32 will be on gtk-devel-list soon. * tests/makefile.msc : add testcairo building * gtk/stock-icons/makefile.msc : split command line into two to work with the shells default
* remove unused function.Manish Singh2005-02-041-1/+0
| | | | | | | | | | | | | | | Fri Feb 4 14:16:31 2005 Manish Singh <yosh@gimp.org> * gtk/gtkaccelgroup.c (substitute_underscores): remove unused function. * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Add some extra parens for bitop order of operations disambiguiation. * gtk/gtkstock.c: Fix const confusion, make our own copy of the domain when setting a translate function. * tests/testcombo.c: removed unused variable.
* Add gdk_drawable_set_cairo_target().Owen Taylor2005-02-034-7/+254
| | | | | | | | | | | | | | | | | 2005-02-03 Owen Taylor <otaylor@redhat.com> * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add gdk_drawable_set_cairo_target(). * tests/testtreeflow.c (enum): Use grand not rand as a variable name because one of the cairo headers is pulling in stdlib.h. * tests/testcairo.c tests/Makefile.am: Add a simple cairo based example. * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0. * Require libpangocairo for all backends.
* Merged from gtk-2-6:Federico Mena Quintero2005-01-251-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-01-24 Federico Mena Quintero <federico@ximian.com> Merged from gtk-2-6: Fix #147785 and clean up the loading code: * gtk/gtkfilechooserdefault.c (LoadState): Make the set of states be EMPTY, PRELOAD, LOADING, FINISHED. (gtk_file_chooser_default_init): Start in the LOAD_EMPTY state. (struct _GtkFileChooserDefault): Added a pending_select_paths field. (load_remove_timer): Add the new states. (load_setup_timer): Likewise. (load_timeout_cb): Likewise. Switch to the LOAD_LOADING state. (browse_files_model_finished_loading_cb): Switch to the LOAD_FINISHED state. (enum PendingOp): Removed. (struct _GtkFileChooserDefault): Removed the pending_op and pending_select_path fields. (pending_select_paths_free): New utility function. (pending_select_paths_add): New utility function. (gtk_file_chooser_default_finalize): Call pending_select_paths_free(). (pending_op_queue): Removed. (pending_op_process): Removed. (pending_select_paths_process): New function. (browse_files_model_finished_loading_cb): Call pending_select_paths_process(). (center_selected_row_foreach_cb): Handle multiple selection by only centering the first row. (get_is_file_filtered): Constify. (gtk_file_chooser_default_select_path): Queue into a list of paths to select if we are not finished loading. (show_and_select_paths): New utility function. (up_folder_handler): Use pending_select_paths_add(). (gtk_file_chooser_default_should_respond): Do not call pending_op_queue(); free the pending_selected_paths instead. (gtk_file_chooser_default_initial_focus): Don't queue a pending operation, and don't select the first row unconditionally --- this will happen when the folder is done loading. (shortcuts_row_activated_cb): Free the pending_select_paths. (pending_select_paths_store_selection): New utility function. (gtk_file_chooser_default_map): Call pending_select_paths_store_selection() to save the selection before reloading the folder. (select_func): Umm? Call gtk_tree_selection_select_iter(). Don't move the cursor here; it will be done when processing the pending paths. * tests/testfilechooser.c (main): Add a button to the command window to unmap and remap the file chooser.
* Add sensitivity-changing timeout. Written by Christian Persch.Søren Sandmann2004-12-221-1/+14
| | | | | | | | | | | | | | | | | 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.
* Use a GtkComboBox in SELECT_FOLDER mode (#157726).James M. Cape2004-12-151-20/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-12-15 James M. Cape <jcape@ignore-your.tv> * gtk/gtkfilechooserbutton.c (struct _GtkFileChooserButtonPrivate) (gtk_file_chooser_button_init) (gtk_file_chooser_button_file_chooser_iface_init) (gtk_file_chooser_button_add_shortcut_folder) (gtk_file_chooser_button_remove_shortcut_folder) (gtk_file_chooser_button_constructor) (gtk_file_chooser_button_set_property) (gtk_file_chooser_button_destroy) (gtk_file_chooser_button_finalize) (get_icon_theme) (get_display_name_for_path) (model_get_type_position) (model_free_row_data) (model_add_special) (model_add_other) (model_add_volumes) (model_add_bookmarks) (model_update_current_folder) (model_remove_rows) (filter_model_visible_func) (combo_box_row_separator_func) (name_cell_data_func) (update_combo_box) (fs_volumes_changed_cb) (fs_bookmarks_changed_cb) (combo_box_changed_cb) (change_icon_size): Use a GtkComboBox in SELECT_FOLDER mode (#157726). * gtk/gtkfilechooserbutton.c: * gtk/gtkfilechooserbutton.h (gtk_file_chooser_button_new) (gtk_file_chooser_button_new_with_backend): Add @action to constructors to match other GtkFileChooser impls. API CHANGE. * docs/tools/widgets.c (create_file_button): * tests/testfilechooserbutton.c (main): Update callers. * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Reflect API change. * tests/testfilechooserbutton.c: Add LGPL license. (main): Added GOption parser for --backend and --right-to-left cmd line args. (add_pwds_parent_as_shortcut_clicked_cb) (del_pwds_parent_as_shortcut_clicked_cb) (tests_button_clicked_cb): Add shortcut_folders test. (chooser_current_folder_changed_cb) (chooser_selection_changed_cb) (chooser_file_activated_cb) (chooser_update_preview_cb): Print URIS, not filenames.
* Don't use gtk_cell_renderer_set_values().Matthias Clasen2004-12-141-14/+2
| | | | | | 2004-12-14 Matthias Clasen <mclasen@redhat.com> * tests/testcombo.c (main): Don't use gtk_cell_renderer_set_values().
* Test oversized items.Matthias Clasen2004-12-141-3/+78
| | | | | | 2004-12-14 Matthias Clasen <mclasen@redhat.com> * tests/testiconview.c: Test oversized items.
* Rename a local variable to avoid a conflict. (#161109, Robert Ögren) 1Matthias Clasen2004-12-131-5/+5
| | | | | | | | 2004-12-12 Matthias Clasen <mclasen@redhat.com> * tests/testfilechooserbutton.c (tests_button_clicked_cb): Rename a local variable to avoid a conflict. (#161109, Robert Ögren) 1
* removed "GtkFileChooserButton:active" property and getter/setter.James M. Cape2004-11-301-60/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-11-30 James M. Cape <jcape@ignore-your.tv> * gtk/gtkfilechooserbutton.h (gtk_file_chooser_button_get_active) (gtk_file_chooser_button_set_active): * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_class_init) (gtk_file_chooser_button_get_active) (gtk_file_chooser_button_set_active): * docs/reference/gtk/gtk-sections.txt: * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: * gtk/gtk.symbols: removed "GtkFileChooserButton:active" property and getter/setter. * gtk/gtkfilechooserbutton.c (struct _GtkFileChooserButtonPrivate) (button_toggled_cb) (dialog_response_cb) (button_notify_active_cb) (gtk_file_chooser_button_init) (button_clicked_cb) (gtk_file_chooser_button_show): Use a GtkButton instead of a GtkToggleButton. (struct _GtkFileChooserButtonPrivate) (gtk_file_chooser_button_destroy) (gtk_file_chooser_button_style_set) (gtk_file_chooser_button_screen_changed): Don't bother with the (remove_settings_signal) (settings_notify_cb) (check_icon_theme): Don't use GtkSettings at all, just call change_icon_theme() directly. (struct _GtkFileChooserButtonPrivate) (gtk_file_chooser_button_init) (gtk_file_chooser_button_drag_data_received) (gtk_file_chooser_button_mnemonic_activate) (gtk_file_chooser_button_set_width_chars) (gtk_file_chooser_button_get_width_chars) (entry_changed_cb) (update_idler) (update_entry) (update_dialog) (dialog_selection_changed_cb) (dialog_response_cb) (entry_size_allocate_cb): Remove all references to the now-defunct entry, store the old path (to support "Cancel") in an instance member. (update_label_and_image) (update_label) (update_image) (gtk_file_chooser_button_init) (dialog_response_cb) (dialog_selection_changed_cb): Merge label/image updates, only display the filename (not the whole path, fixes #157725). (struct _GtkFileChooserButtonPrivate) (dialog_selection_changed_cb) (dialog_selection_changed_proxy_cb): Merge "selection-changed" handlers, block while dialog is visible (fixes #158482). * tests/testfilechooserbutton.c (delete_event_cb) (properties_button_clicked_cb) (print_selected_path_clicked_cb) (tests_button_clicked_cb) (main): Add per-chooser "tests" window, don't delete on WM close, update properties_button_clicked_cb() "delete-event" callback.
* Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables.Owen Taylor2004-11-211-0/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sat Nov 20 15:13:51 2004 Owen Taylor <otaylor@redhat.com> * gdk/gdkpango.[ch]: Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables. Use to implement the old gdk_draw_layout() and friends. * gdk/gdkdraw.c gdk/gdkdrawable.h gdk/gdkwindow.c gdk/gdkpixmap.c: Add gdk_draw_glyphs_transformed() gdk_draw_trapezoids() and the corresponding members of GdkDrawableClass. Add a fallback implementation of gdk_draw_trapezoids() in terms of pixbufs. * gdk/gdkwindowing.h gdk/x11/gdkg-x11.h: Add _gdk_windowing_gc_get_foreground() to enable the fallback trapezoid implementation. * gdk/x11/gdkdrawable-x11.c gdk/x11/gdkdisplay-x11.h: Implement draw_glyph_transformed, draw_trapezoids. * gdk/x11/gdkdrawable-x11.[ch]: Add _gdk_x11_drawable_draw_xtrapezoids, _gdk_x11_drawable_draw_xft_glyphs for use of GdkX11Renderer. * gdk/x11/gdkgc-x11.c gdk/x11/gdkprivate-x11.h: Implement GDK_TILED, GDK_STIPPLED, GDK_OPAQUE_STIPPLED in the RENDER codepath. * gdk/gdkpango-x11.c: Add GdkX11Renderer... a subclass of PangoXftRenderer that does tiles/stipples and fallback rendering of trapezoids without the RENDER extension. * gdk/gdkpango-x11.c gdk/x11/gdkscreen-x11.[ch] _gdk_x11_renderer_get: Add _gdk_x11_renderer_get() to get a singleton GdkX11Renderer for the screen. * gdk/x11/gdkdrawable-x11.c (get_impl_drawable): Fix a None/NULL confusion. * gtk/gtklabel.[ch] gtk/gtk.symbols: Add gtk_label_set/get_angle(), and an ::angle property. * gtk/gtklabel.c: Remove #if 0'd dead code gtk_label_paint_word(). * gtk/gtktextdisplay.c: Switch to using a GtkTextRenderer subclass of GdkPangoRenderer for drawing. * gtk/gtktextlayout.[ch] gtk/gtktextdisplay.c: Switch to using gtk_attr_shape_new_with_data() to store backreferences to embedded pixmaps and widgets. Leave line_display->shaped_objects around for backwords compatibility. * gdk/gdkpango.[ch] (gdk_pango_context_set_colormap): Describe as deprecated, remove implementation. * gtk/gtkwidget.c (gtk_widget_create_pango_context): Remove call to gdk_pango_context_set_colormap. * demos/gtk-demo/Makefile.am demos/gtk-demo/rotated_text.c: Add a demo showing drawing rotated text. * tests/testgtk.c: Add a rotated-label test, and also a rotated drawing test (differs from demos/gtk-demo/rotated_text by also using a tile)
* modules/engines/ms-windows/msw_rc_style.cManish Singh2004-11-199-37/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Shut up CVSManish Singh2004-11-161-0/+1
|
* *** empty log message ***Matthias Clasen2004-11-121-1/+1
|
* *** empty log message ***Matthias Clasen2004-11-122-0/+120
|
* Add a real "Add many" button.Matthias Clasen2004-11-091-4/+21
| | | | | | 2004-11-09 Matthias Clasen <mclasen@redhat.com> * tests/testiconview.c: Add a real "Add many" button.
* Fix double-click activation.Matthias Clasen2004-11-091-7/+16
| | | | | | 2004-11-09 Matthias Clasen <mclasen@redhat.com> * tests/testiconview.c: Fix double-click activation.
* Apply a patch by Soeren Sandmann to test long statusbar texts.Matthias Clasen2004-11-091-1/+25
| | | | | | | 2004-11-09 Matthias Clasen <mclasen@redhat.com> * tests/testgtk.c: Apply a patch by Soeren Sandmann to test long statusbar texts.
* Disable the SAVE and CREATE_FOLDER modes. (#157675, Christian Persch)Matthias Clasen2004-11-081-0/+6
| | | | | | | 2004-11-08 Matthias Clasen <mclasen@redhat.com> * tests/testfilechooserbutton.c (main): Disable the SAVE and CREATE_FOLDER modes. (#157675, Christian Persch)
* New convenience function to add a filter for image files which can beMatthias Clasen2004-11-071-1/+20
| | | | | | | | | | | 2004-11-07 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilefilter.h: * gtk/gtkfilefilter.c (gtk_file_filter_add_pixbuf_formats): New convenience function to add a filter for image files which can be loaded by GdkPixbuf. (#145388, Anders Carlsson) * tests/testfilechooser.c: Test the image filter.
* Don't try to remove stuff from an empty model. (#156575, Christian Persch)Matthias Clasen2004-10-311-3/+3
| | | | | | | 2004-10-31 Matthias Clasen <mclasen@redhat.com> * tests/testentrycompletion.c (animation_timer): Don't try to remove stuff from an empty model. (#156575, Christian Persch)
* Add a "Select All" menuitem. (#156792, Paolo Borelli)Matthias Clasen2004-10-301-0/+16
| | | | | | | 2004-10-30 Matthias Clasen <mclasen@redhat.com> * tests/testtext.c: Add a "Select All" menuitem. (#156792, Paolo Borelli)
* Fix many sparse warnings.Matthias Clasen2004-10-2812-68/+68
|
* Really handle a NULL model, fixes #137211 for real.Anders Carlsson2004-10-261-9/+47
| | | | | | | | | | | | | | | | 2004-10-25 Anders Carlsson <andersca@gnome.org> * gtk/gtkentry.c: (gtk_entry_completion_timeout): * gtk/gtkentrycompletion.c: (gtk_entry_completion_set_model), (gtk_entry_completion_get_model), (gtk_entry_completion_complete): Really handle a NULL model, fixes #137211 for real. * gtk/gtkfilechooserentry.c: (gtk_file_chooser_entry_maybe_update_directory): Remove _clear, #137211 is fixed. * tests/testentrycompletion.c: (main): Add completion with an empty model.
* Rework of GtkFileChooserButton, some cleanups. Fixes #154388, #154390,James M. Cape2004-10-262-18/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-10-25 James M. Cape <jcape@ignore-your.tv> Rework of GtkFileChooserButton, some cleanups. Fixes #154388, #154390, #154390, #156272. * docs/reference/gtk/gtk-docs.sgml: Moved GtkFileChooserButton below GtkFileChooser. * docs/reference/gtk/gtk-sections.txt: Added gtk_file_chooser_button_get_width_chars(), gtk_file_chooser_button_set_width_chars(), gtk_label_set_width_chars(), gtk_label_get_width_chars(). * docs/reference/gtk/gtk.types: Added gtk_cell_renderer_combo_get_type, gtk_cell_view_get_type, gtk_text_iter_get_type. * docs/reference/gtk/tmpl/gtkaboutdialog.sgml: Add "logo-icon-name" property. * docs/reference/gtk/tmpl/gtkcellview.sgml: Updates for properties (b/c of get_type() inclusion above). * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: * docs/reference/gtk/tmpl/gtklabel.sgml: Add "width-chars" property, getters/setters. * docs/reference/gtk/tmpl/gtkcellrenderercombo.sgml: Added. * gtk/gtkentrycompletion.c: (_gtk_entry_completion_popdown): Don't show if the entry isn't mapped. * gtk/gtkfilechooserbutton.[c,h]: (*): About 45% rewritten, adds "width-chars" property, icons, working save modes, volume/Home/Desktop friendly-naming support. * gtk/gtklabel.[c,h]: (gtk_label_class_init), (gtk_label_init), (gtk_label_get_property), (gtk_label_set_property), (gtk_label_get_width_chars), (gtk_label_set_width_chars), (gtk_label_size_request): Add "width-chars" property. * tests/testfilechooserbutton.c: Update, use 4 different buttons for the different ACTIONs. * gtk/.cvsignore: Ignore gtk-update-icon-cache. * tests/.cvsignore: Ignore testimage.
* Add testimage.Matthias Clasen2004-10-251-0/+3
| | | | | | 2004-10-25 Matthias Clasen <mclasen@redhat.com> * tests/Makefile.am (noinst_PROGRAMS): Add testimage.
* Use gtk_image_new_from_icon_name().Matthias Clasen2004-10-251-5/+0
| | | | | | 2004-10-25 Matthias Clasen <mclasen@redhat.com> * tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
* Add a new type GTK_IMAGE_ICON_NAME for named icons, update the size andMatthias Clasen2004-10-251-0/+153
| | | | | | | | | | | | | | | | 2004-10-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtkimage.h: * gtk/gtkimage.c (gtk_image_new_from_icon_name) (gtk_image_set_from_icon_name, gtk_image_get_icon_name) (gtk_image_set_pixel_size, gtk_image_get_pixel_size): Add a new type GTK_IMAGE_ICON_NAME for named icons, update the size and content of stock, icon set and named icon images upon style changes, and allow to set a fixed pixel size for named icon images. (#155688, James Henstridge) * tests/testimage.c: Test application for theming behaviour of different image types and for image dnd.
* Add a "display" option.Matthias Clasen2004-10-191-6/+37
| | | | * tests/testicontheme.c: Add a "display" option.
* Set the locale, tidy up output.Matthias Clasen2004-10-191-21/+27
| | | | | | 2004-10-19 Matthias Clasen <mclasen@redhat.com> * tests/testicontheme.c: Set the locale, tidy up output.
* exit on close.Paolo Borelli2004-09-301-0/+1
| | | | | | 2004-09-30 Paolo Borelli <pborelli@katamail.com> * tests/testellipsize.c: exit on close.
* add a GtkMenuToolButton.Paolo Borelli2004-09-291-1/+10
| | | | | | 2004-09-29 Paolo Borelli <pborelli@katamail.com> * tests/testtoolbar.c: add a GtkMenuToolButton.
* #include <config.h> for HAVE_MALLINFO define, other minor cleanups.Manish Singh2004-09-211-6/+7
| | | | | | | Tue Sep 21 16:55:38 2004 Manish Singh <yosh@gimp.org> * tests/testtreemodel.c: #include <config.h> for HAVE_MALLINFO define, other minor cleanups.
* Check for mallinfo.Matthias Clasen2004-09-211-0/+21
| | | | | | | | | 2004-09-21 Matthias Clasen <mclasen@redhat.com> * configure.in: Check for mallinfo. * tests/testtreemodel.c: Only include malloc.h if HAVE_MALLINFO is defined. (#153168, Darren Creutz)
* 2.5.3GTK_2_5_3Matthias Clasen2004-09-191-1/+2
|