summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* to compare pattern specs, use g_pattern_spec_equal() instead of directTim Janik2001-10-132-7/+16
| | | | | | | | | | | Sat Oct 13 07:09:30 2001 Tim Janik <timj@gtk.org> * gtk/gtkbindings.c (gtk_binding_set_add_path): to compare pattern specs, use g_pattern_spec_equal() instead of direct field accesses. upon compressing two equal paths of the same type, the resulting priority has to be the maximum. * gtk/gtkenums.h (enum): take GTK_PATH_PRIO_MASK out of the GtkPathPriorityType enum and make it a macro.
* Fix some doc comments.Matthias Clasen2001-10-121-13/+13
| | | | * gtk/gtkwidget.c: Fix some doc comments.
* Fix to work on empty models.Joshua N Pritikin2001-10-121-1/+3
| | | | | * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): Fix to work on empty models.
* Remove stale gdk backend includes.Matthias Clasen2001-10-112-16/+0
| | | | | * gtk/gtkcolorsel.c, gtk/gtkwidget.c, gtk/gtktreeview.c: Remove stale gdk backend includes.
* add enable_empty and value_in_list properties.Michael Meeks2001-10-111-4/+35
| | | | | | | | | 2001-10-10 Michael Meeks <michael@ximian.com> * gtk/gtkcombo.c (gtk_combo_class_init): add enable_empty and value_in_list properties. (gtk_combo_set_value_in_list): notify change. (gtk_combo_set_property, gtk_combo_get_property): impl. prop.
* cvs got a broken pipe signal, missed these two. ChangeLog is already there.Kristian Rietveld2001-10-102-0/+36
|
* Call setlocale (LC_ALL, ""). (#60606)Owen Taylor2001-10-103-12/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Oct 10 12:48:38 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.c (gtk_init_check): Call setlocale (LC_ALL, ""). (#60606) * gtk/gtkmain.c (gtk_disable_setlocale): Add function to disable calling setlocale (LC_ALL, ""). * gtk/gtkmain.c (gtk_set_locale): Indicate in the docs that this function is not typically useful. * gdk/x11/{gdkim-x11.c,gdkmain-x11.c,gdkprivate-x11.h}: Automatically initialize GDK for the current locale on gdk_init(). Don't reset locale to C when XSupportsLocale() fails. * gdk/linux-fb/gdkim-fb.c (gdk_set_locale): Remove useless checks for UTF-8 locale breakage that mattered only for X. * examples/calendar/calendar.c tests/{testgtk.c,testtext.c,testcalendar.c}: Remove calls to gtk_set_locale(). * gtk/gtkiconfactory.c gtk/gtkitemfactory.c: gdk_pixbuf_new_from_stream => gdk_pixbuf_new_from_inline.
* new function, #61923 (gtk_tree_selection_path_is_selected): DittoJonathan Blandford2001-10-102-0/+69
| | | | | | | | Wed Oct 10 01:19:04 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_iter_is_selected): new function, #61923 (gtk_tree_selection_path_is_selected): Ditto
* We're a gobject, not a GtkObject. Thanks andersca.Jonathan Blandford2001-10-092-24/+15
| | | | | | | | | Tue Oct 9 17:40:24 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_finalize): We're a gobject, not a GtkObject. Thanks andersca. * gtk/gtkliststore.c (gtk_list_store_finalize): ditto
* fix broken code.Jonathan Blandford2001-10-091-0/+4
| | | | | | | Tue Oct 9 14:50:51 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_model_sort_column_changed): fix broken code.
* s/succesfully/successfully/gMatthias Clasen2001-10-081-1/+1
| | | | * gtk/gtkselection.c: s/succesfully/successfully/g
* remove unused enumHavoc Pennington2001-10-082-1/+6
| | | | | | | | | | 2001-10-08 Havoc Pennington <hp@pobox.com> * demos/gtk-demo/stock_browser.c: remove unused enum * gtk/gtktreeselection.c (gtk_tree_selection_real_select_node): pass the current selection state of the node in to the user selection func
* improve warning.Jonathan Blandford2001-10-063-31/+108
| | | | | | | | | | | | | | Fri Oct 5 20:50:00 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_iter_has_child): improve warning. * gtk/gtktreemodel.c (gtk_tree_row_reference_new_proxy): ref and unref nodes, #okay61676 * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_sort): we listen to the property; no need to clear the other columns. Also, we go to 'unsorted' if the model supports it.
* should destroy the search dialogKristian Rietveld2001-10-051-5/+23
| | | | | | | | | | | | | | | Fri Oct 5 19:06:07 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtktreeview.c (gtk_tree_view_leave_notify): should destroy the search dialog * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): added check to prevent creation of a search dialog if there's already one around * gtk/gtktreeview.c: Define GTK_TREE_VIEW_SEARCH_DIALOG_KEY, and use it instead of "search-dialog" (when getting/setting the search dialog widget).
* broken image iconJakub Steiner2001-10-052-0/+0
|
* Fix #56586Havoc Pennington2001-10-042-8/+13
| | | | | | | | | | | | | 2001-10-04 Havoc Pennington <hp@pobox.com> Fix #56586 * gtk/gtksettings.c (gtk_settings_class_init): move the F10 accelerator setting here... * gtk/gtkmenubar.c (gtk_menu_bar_class_init): ...from over here, because we try to use it when a menu bar hasn't necessarily been initialized.
* fix test case, it previously verified incorrect behaviorHavoc Pennington2001-10-043-21/+48
| | | | | | | | | | | | | | | | | | | | | 2001-10-03 Havoc Pennington <hp@redhat.com> * tests/testtextbuffer.c (logical_motion_tests): fix test case, it previously verified incorrect behavior Fixes for #61565 * gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines off the end (_gtk_text_btree_get_iter_at_line_char): don't return lines off the end (_gtk_text_btree_get_iter_at_line_byte): don't return lines off the end (gtk_text_iter_forward_lines): if on the last line, move to end of it * gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag): don't return a line off the end
* move insert_text and delete_text virtual functions to do_insert_text andKristian Rietveld2001-10-038-135/+134
| | | | | | | | | | | | | | | | | | | | | | Wed Oct 3 23:47:25 Kristian Rietveld <kristian@planet.nl> * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual functions to do_insert_text and do_delete_text, add signals insert_text, delete_text and changed * gtk/gtkentry.[ch]: remove signals insert_text, delete_text and changed. Updates to match new situation. * gtk/gtkspinbutton.c: updates to match new situation * gtk/gtkoldeditable.h: remove signals changed, insert_text and delete_text * gtk/gtkoldeditable.c: updates to match new situation * gtk/gtktext.c: updates to match new situation Fixes bug #59803
* allow testing the end positionHavoc Pennington2001-10-032-5/+12
| | | | | | | | | | | | 2001-10-03 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c (test_log_attrs): allow testing the end position * gtk/gtktextbuffer.c (compute_log_attrs): update for pango changes * tests/testtextbuffer.c (logical_motion_tests): updates
* s/retrive/retrieve/jacob berkman2001-10-035-5/+5
| | | | | | | | | | | 2001-10-03 jacob berkman <jacob@ximian.com> * gtk/gtkwidget.c (gtk_widget_style_get_property): * gtk/gtkstyle.c (_gtk_style_peek_property_value): * gtk/gtksettings.c (apply_queued_setting): * gtk/gtkmain.c (gtk_init_check): * gtk/gtkcontainer.c (gtk_container_child_get_property): s/retrive/retrieve/
* preparation for surgery dittoKristian Rietveld2001-10-032-110/+333
| | | | | | | Wed Oct 3 20:29:29 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtktreemodelsort.[ch]: preparation for surgery * tests/testtreesort.c: ditto
* Allow NUOL for @target_list to mean, use gtk_drag_dest_get_target_listOwen Taylor2001-10-033-39/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed Oct 3 10:42:54 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkdnd.c (gtk_drag_dest_find_target): Allow NUOL for @target_list to mean, use gtk_drag_dest_get_target_list (widget). * gtk/gtkdnd.c (gtk_drag_finish): Fix problem where drop could hang when calling gtk_drag_finish with success == FALSE and del == TRUE. * gtk/gtkdnd.c (gtk_drag_dest_drop): Fix problem where drops without a matching target found would propagate to the parent widget rather than being rejected. * gtk/gtktextview.c (gtk_text_view_drag_data_received): Use text_view->dnd_mark instead of mark name to be consistent with the rest of the code. * gtk/gtktextview.c (gtk_text_view_drag_motion): Make pendantically correct for a drop-only-in-some-places widget. (Check whether you can insert in drag_drop, not just in drag_motion ... matters in theory, and for Motif drag and drop in practice.) * gtk/gtkentry.c (gtk_entry_drag_drop): Patch from Damian Ivereigh to not allow drops on non-editable entries. (#61124) * gtk/gtkentry.c (gtk_entry_motion_notify): Don't allow text to be moved from a non-editable entry.
* s/width/fixed_width/ in order to get things to compile.James Henstridge2001-10-031-4/+4
| | | | | | | 2001-10-03 James Henstridge <james@daa.com.au> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_fixed_width): s/width/fixed_width/ in order to get things to compile.
* docsJonathan Blandford2001-10-033-4/+28
| | | | | | | | Wed Oct 3 00:37:09 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkcelleditable.c: docs * gtk/gtktreemodel.h: more docs.
* g_string_printfa => g_string_append_printf.Owen Taylor2001-10-012-4/+4
| | | | | | | Mon Oct 1 16:05:44 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c gtk/gtksettings.c: g_string_printfa => g_string_append_printf.
* add a finalize and destroy handler.Jonathan Blandford2001-10-013-9/+68
| | | | | | | | | | | | | Mon Oct 1 16:08:23 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkliststore.c (gtk_list_store_class_init): add a finalize and destroy handler. * gtk/gtktreestore.c (gtk_list_store_class_init): ditto, #59963 * gtk/gtktreeview.h (struct _GtkTreeViewClass): Add 'start_editing' flag to select_cursor_row. Bug spotted by Manish Singh <yosh@gimp.org>.
* replace g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol.Matthias Clasen2001-10-012-5/+5
| | | | | | | * gtk/gtkitemfactory.c (gtk_item_factory_parse_rc_scanner): replace g_scanner_add/remove_symbol by g_scanner_scope_add/remove_symbol. * gtk/gtkrc.c (gtk_rc_parse_any): here as well.
* change scroll_to_cell delayed code to happen in size_allocate.Jonathan Blandford2001-10-016-86/+66
| | | | | | | | | | | | | | Mon Oct 1 14:07:02 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_size_allocate): change scroll_to_cell delayed code to happen in size_allocate. * gtk/gtkstyle.c (gtk_default_draw_expander): change prelight/normal arrow drawing. * gtk/gtktreedatalist.c: Change compare func to use g_utf8_collate * gtk/gtktreestore.c: refactor.
* Applied patch from Soeren Sandmann <sandmann@daimi.au.dk>. VerticallyManish Singh2001-10-011-3/+5
| | | | | | | | Sun Sep 30 22:15:52 2001 Manish Singh <yosh@gimp.org> * gtk/gtkcheckbutton.c (gtk_check_button_size_allocate): Applied patch from Soeren Sandmann <sandmann@daimi.au.dk>. Vertically centers the child in relation to the to indicator height.
* Make ITERS_PERSIST correctJonathan Blandford2001-09-301-1/+0
| | | | | | Sun Sep 30 15:11:59 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_remove): Make ITERS_PERSIST correct
* -)CEST2001-09-301-5/+5
| | | | | | | | Sun Sep 30 07:01:42 2001 CEST <mikeh@bahnhof.se> * gtk/gtkcellrenderertext.c I reverted back to old "weight" property code using g_param_spec_int and changed from g_value_get_enum to g_value_get_int instead. Probadly a better way to fix the problem :-)
* gtk/gtkcellrenderertext.c changed "weight" property type fromMikael Hermansson2001-09-301-3/+2
| | | | | * gtk/gtkcellrenderertext.c changed "weight" property type from g_param_spec_int to g_param_spec_enum.
* typo fix: s/Wether/Whether/ in reorderable property descriptionManish Singh2001-09-291-1/+1
| | | | | | | Sat Sep 29 12:25:26 2001 Manish Singh <yosh@gimp.org> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init): typo fix: s/Wether/Whether/ in reorderable property description
* remove gtk_object_destroy comment as requested.Michael Meeks2001-09-281-5/+0
|
* only start editing when you select with a keyboard.Jonathan Blandford2001-09-275-105/+89
| | | | | | | | | | | Thu Sep 27 16:46:36 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_real_select_cursor_row): only start editing when you select with a keyboard. (gtk_tree_view_button_press_event): much more graceful now. * gtk/gtkstyle.c: Draw togglebutton better.
* add demo of passing non-stock label in to gtk_dialog_new_with_buttonsHavoc Pennington2001-09-273-3/+18
| | | | | | | | | | | | | | | | 2001-09-26 Havoc Pennington <hp@redhat.com> * demos/gtk-demo/dialog.c (interactive_dialog_clicked): add demo of passing non-stock label in to gtk_dialog_new_with_buttons * gtk/gtktextview.c (cursor_blinks): disable cursor blink when debugging updates * gtk/gtktextiter.h: comment about how GtkTextIter struct contents are private * gtk/gtkbutton.c (gtk_button_new_from_stock): if stock ID doesn't exist, fall back to mnemonic label, not plain label, bug #61184
* Stop being stupid and emitting the signal every time.Jonathan Blandford2001-09-274-76/+153
| | | | | | | | | Wed Sep 26 19:48:01 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreestore.c (gtk_tree_store_set_valist): Stop being stupid and emitting the signal every time. * gtk/gtkliststore.c (gtk_list_store_set_valist): ditto
* Fix problem where menmonic wasn't removed properly when setting a labelOwen Taylor2001-09-262-11/+27
| | | | | | | | | | | | | | Wed Sep 26 16:15:25 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtknotebook.c (gtk_notebook_set_tab_label): Fix problem where menmonic wasn't removed properly when setting a label when there already is a label. Also, handle setting the tab label back to the same value. (#61160, #61161) * gtk/gtkentry.c (paste_received): Patch from Damian Ivereigh to replace selection if there is one. (#61121)
* fix for #50317Havoc Pennington2001-09-253-5/+16
| | | | | | 2001-09-25 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c: fix for #50317
* use gtk_text_iter_can_insertHavoc Pennington2001-09-256-37/+95
| | | | | | | | | | | | | | | | | | | | 2001-09-25 Havoc Pennington <hp@redhat.com> * gtk/gtktextview.c (gtk_text_view_key_press_event): use gtk_text_iter_can_insert * gtk/gtktextbuffer.c: use gtk_text_iter_can_insert * gtk/gtktextiter.c (find_line_log_attrs): fixes, #57611, #57613 (gtk_text_iter_can_insert): new function to fix #60282, should also fix msw's "can paste into empty buffer" bug. * gtk/gtktexttag.c (gtk_text_tag_event): change type check for "event object," #59091 * gtk/gtktextbtree.c: indentation fixes * gtk/gtktextiter.c (find_by_log_attrs): fixes
* ue Sep 25 12:41:17 2001 Owen Taylor <otaylor@redhat.com>GTK_1_3_9Owen Taylor2001-09-2510-25/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in: Version 1.3.9, interface age 0, binary age 0. * configure.in: Require GLib-1.39, Pango 0.20, Atk 0.5. * NEWS: Updates. Mon Sep 24 11:59:09 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.[ch] (_gtk_draw_insertion_cursor): Shared function for drawing cursors between gtkentry/gtklabel/gtktextview. Should this be public? It has a bit of an odd interface, but custom editing widgets probably should be using it. Function will draw with wider width for taller cursors, and draws a little indicator arrow to indicate directoin for split cursors. * gtk/gtktextview.c: Add a "cursor_color" property. * gtk/gtktextdisplay.[ch]: Add a cursor_gc parameter to gtk_text_layout_draw(). * gtk/gtkentry.c gtk/gtklabel.c gtk/gtktextdisplay.c: Use _gtk_draw_insertion_cursor(). Tue Sep 25 11:22:23 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkcellrenderertext.c gtk/gtktexttag.c: Restore the behavior where you could turn family_set (etc) back on and get back the values you had before. * demos/gtk-demo/stock_browser.c (id_to_macro): Use g_string_ascii_up() rather than looping through the string ourself.
* Removed (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0,Jonathan Blandford2001-09-255-24/+42
| | | | | | | | | | | Tue Sep 25 15:32:44 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_renderer): Removed (gtk_tree_view_column_set_alignment): xalign = CLAMP (xalign, 0.0, 1.0); Fixes 61012. * gtk/gtktreestore.c (gtk_tree_store_sort_helper): Fixed #61012 Patch from Detlef Reichl
* Make a GtkCellEditable (get_widget_window_size): Change to let it honorJonathan Blandford2001-09-2515-487/+829
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Sep 25 12:34:42 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtkentry.c: Make a GtkCellEditable (get_widget_window_size): Change to let it honor size_allocate when a CellEditable. * gtk/gtktreeview.c: M-x clean-line-ends. Lots of focus and editable changes. (gtk_tree_view_set_cursor): Now you can set the cursor horizontally, as well as start editing. * gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing code to look more like the other check buttons. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size): Change the way we calculate cell size. * gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller. * demos/gtk-demo/sizegroup.c: Add mnemonics. * gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs. Fix logic. * gtk/gtkcellrenderertext.c: Change to be editable. * gtk/gtkcellrenderertoggle.c: Change to be activatable. * test/testtreesort.c: Fix misspelling * test/testreecolumns.c: Add mnemonics. * test/testreeedit.c: New test program.
* Put notes in gtk_window_set_has_frame(), etc. docs about how these are notHavoc Pennington2001-09-251-1/+19
| | | | | | | | 2001-09-25 Havoc Pennington <hp@pobox.com> * gtk/gtkwindow.c: Put notes in gtk_window_set_has_frame(), etc. docs about how these are not going to do what you want for the X/win32 ports. Futile attempt to avoid a FAQ...
* add marshal function types.James Henstridge2001-09-254-11/+59
| | | | | | | | | | | | | | | 2001-09-24 James Henstridge <james@daa.com.au> * gtk/gtkmarshal.list (VOID): add marshal function types. * gtk/gtkctree.c (gtk_ctree_class_init): make arguments have type GTK_TYPE_CTREE_NODE|G_SIGNAL_TYPE_STATIC_SCOPE rather than GTK_TYPE_POINTER. (gtk_ctree_node_get_type): implement boxed type for GtkCTreeNodes with no-op copy/free functions. * gtk/gtkctree.h (gtk_ctree_node_get_type): add prototype for GtkCTreeNode get_type function.
* Get rid of the newline-that-could-not-be-deleted; buffers may now beHavoc Pennington2001-09-245-120/+262
| | | | | | | | | | | | 2001-09-24 Havoc Pennington <hp@redhat.com> * gtk/gtktextiter.c, gtk/gtktextbuffer.c, gtk/gtktextbtree.c, gtktextlayout.c: Get rid of the newline-that-could-not-be-deleted; buffers may now be zero-length. Much easier to fix than expected, once I figured out the right way to do it. However, there are various subtle bugs introduced by this that will have to get sorted out. Please use bugzilla.
* Don't wait for a response back from the window manager if our size hasn'tOwen Taylor2001-09-241-39/+28
| | | | | | | | | | | | | | | Mon Sep 24 15:09:08 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.c (gtk_window_move_resize): Don't wait for a response back from the window manager if our size hasn't changed since we won't get a response back from the window manager; there was code in there to do this, but it was in the wrong place so if the hints change and the size didn't we'd expect a response. Also, optimize the position-only-changed case by running the resize queue immediately, and clean up some comments for the changes.
* Add a compat macro that got lost.Owen Taylor2001-09-248-22/+24
| | | | | | | | | | | | | | | | | | | Mon Sep 24 12:48:25 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtknotebook.h: Add a compat macro that got lost. * gtk/gtktreestore.c: Doc fixes. * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fix reference leak for windows that receive events after being destroyed. (#60863, Joshua N. Pritikin) * gtk/gtktable.c (gtk_table_remove): Use gtk_widget_queue_resize rather than gtk_container_queue_resize(). * gtk/{gtkcontainer.c,gtkwidget.c,gtkwindow.c}: _gtk prefix gtk_container_queue_resize, gtk_container_queue_resize_widgets, gtk_container_child_composite_name. (#60217.)
* fix compat macros for gtk_menu_<prepend|insert>Hans Breuer2001-09-221-2/+2
| | | | | | 2001-09-22 Hans Breuer <hans@breuer.org> * gtk/gtkmenu.h : fix compat macros for gtk_menu_<prepend|insert>
* weight value should be an intKristian Rietveld2001-09-222-6/+18
| | | | | | | | | | | | | | Sat Sep 22 16:50:34 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtktexttag.c (gtk_text_tag_set_property): (case PROP_WEIGHT): weight value should be an int Sat Sep 22 15:17:41 2001 Kristian Rietveld <kristian@planet.nl> * gtk/gtkmenu.c (gtk_menu_select_item): move most code to gtk_menu_scroll_item_visible(). Only call gtk_menu_scroll_item_visible() if the menu widget has been realized. Fixes bug #55310.