1. 06 Feb, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkcontainer.c gtk/gtkexpander.c gtk/gtkframe.c gtk/gtklabel.c · e7355f82
      Michael Natterer authored
      2008-02-06  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkcontainer.c
      	* gtk/gtkexpander.c
      	* gtk/gtkframe.c
      	* gtk/gtklabel.c
      	* gtk/gtkmain.c
      	* gtk/gtkmenu.c
      	* gtk/gtkmenuitem.c
      	* gtk/gtkmenushell.c
      	* gtk/gtknotebook.c
      	* gtk/gtkseparatortoolitem.c
      	* gtk/gtksocket.c
      	* gtk/gtktextlayout.c
      	* gtk/gtktoggletoolbutton.c
      	* gtk/gtktoolbutton.c
      	* gtk/gtktoolitem.c
      	* gtk/gtktree.c
      	* gtk/gtktreeitem.c: replace "foo && GTK_IS_FOO (foo)" by simply
      	"GTK_IS_FOO (foo)".
      
      
      svn path=/trunk/; revision=19481
      e7355f82
  2. 06 Jan, 2008 1 commit
    • Johan Dahlin's avatar
      Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently. Fixes #5075 · 71e9be7e
      Johan Dahlin authored
      2008-01-06  Johan Dahlin  <johan@gnome.org>
      
      	* gtk/gtkcellrenderercombo.c:
      	(gtk_cell_renderer_combo_get_property),
      	(gtk_cell_renderer_combo_set_property):
      	* gtk/gtkcombobox.c: (gtk_combo_box_set_property):
      	* gtk/gtkcomboboxentry.c: (gtk_combo_box_entry_set_property):
      	* gtk/gtknotebook.c: (gtk_notebook_set_property):
      	* gtk/gtkspinbutton.c: (gtk_spin_button_set_property):
      	* gtk/gtktextbuffer.c: (gtk_text_buffer_set_property),
      	(gtk_text_buffer_get_property):
      	* gtk/gtktextview.c: (gtk_text_view_set_property):
      	* gtk/gtktogglebutton.c: (gtk_toggle_button_set_property):
      	* gtk/gtktoolbutton.c: (gtk_tool_button_set_property),
      	(gtk_tool_button_get_property):
      	* gtk/gtktoolitem.c: (gtk_tool_item_set_property),
      	(gtk_tool_item_get_property):
      	* gtk/gtktreeview.c: (gtk_tree_view_set_property):
      	* gtk/gtkwidget.c: (gtk_widget_set_property):
      	* gtk/gtkwindow.c: (gtk_window_set_property):
      	Use G_OBJECT_WARN_INVALID_PROPERTY_ID consistently.
      	Fixes #5075
      
      svn path=/trunk/; revision=19311
      71e9be7e
  3. 31 Dec, 2007 1 commit
    • Johannes Schmid's avatar
      Also reorder menu when reordering tabs by drag & drop (Bug #506474) · 16383d43
      Johannes Schmid authored
      2007-12-30  Johannes Schmid <jhs@gnome.org>
      
              * gtk/gtknotebook.c: (gtk_notebook_stop_reorder):
              Also reorder menu when reordering tabs by drag & drop
              (Bug #506474)
      
              * tests/testnotebookdnd.c: (create_notebook_with_notebooks):
              Add a menu to one of the notebooks to have a test-case for
              the change mentioned above.
      
      
      svn path=/trunk/; revision=19294
      16383d43
  4. 28 Dec, 2007 1 commit
  5. 10 Dec, 2007 1 commit
  6. 04 Dec, 2007 1 commit
  7. 26 Nov, 2007 2 commits
    • Matthias Clasen's avatar
      Fix up some doc comments to shut up gtk-doc. · 7819005e
      Matthias Clasen authored
      2007-11-26  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkmain.c:
              * gtk/gtknotebook.c:
              * gtk/gtkplugprivate.h:
              * gtk/gtksocket.c:
              * gtk/gtksocketprivate.h:
              * gtk/gtktable.c: Fix up some doc comments to shut up gtk-doc.
      
      
      svn path=/trunk/; revision=19066
      7819005e
    • Matthias Clasen's avatar
      Short-circuit on destroy. (gtk_notebook_destroy): Destroy tab_label · 3132888e
      Matthias Clasen authored
      2007-11-26  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtknotebook.c (gtk_notebook_update_labels): Short-circuit on
              destroy.
              (gtk_notebook_destroy): Destroy tab_label widgets. (#388321, Morten
              Welinder)
      
      
      svn path=/trunk/; revision=19059
      3132888e
  8. 25 Nov, 2007 1 commit
    • Matthias Clasen's avatar
      Require gtk-doc 1.8 · 4896e24b
      Matthias Clasen authored
      2007-11-25  Matthias Clasen  <mclasen@redhat.com>
      
              * configure.in: Require gtk-doc 1.8
      
              * */*.c: Use gtk-doc abbreviations for examples in docs.
      
      
      svn path=/trunk/; revision=19041
      4896e24b
  9. 03 Oct, 2007 1 commit
  10. 05 Sep, 2007 1 commit
  11. 19 Jun, 2007 1 commit
  12. 15 Jun, 2007 1 commit
    • Johan Dahlin's avatar
      Add GtkBuilder, fixes #172535 · 4d638bf0
      Johan Dahlin authored
      2007-06-15  Johan Dahlin  <jdahlin@async.com.br>
      
          * demos/gtk-demo/Makefile.am:
          * demos/gtk-demo/builder.c: (quit_activate), (about_activate),
          (do_builder):
          * demos/gtk-demo/demo.ui:
          * docs/reference/gtk/gtk-docs.sgml:
          * docs/reference/gtk/gtk-sections.txt:
          * docs/reference/gtk/gtk.types:
          * docs/reference/gtk/tmpl/gtkbuildable.sgml:
          * docs/reference/gtk/tmpl/gtkbuilder.sgml:
          * gtk/Makefile.am:
          * gtk/gtk.h:
          * gtk/gtk.symbols:
          * gtk/gtkaction.c: (gtk_action_buildable_init),
          (gtk_action_buildable_set_name), (gtk_action_buildable_get_name):
          * gtk/gtkactiongroup.c: (gtk_action_group_get_type),
          (gtk_action_group_buildable_init),
          (gtk_action_group_buildable_add),
          (gtk_action_group_buildable_set_name),
          (gtk_action_group_buildable_get_name):
          * gtk/gtkbuildable.c: (gtk_buildable_get_type),
          (gtk_buildable_set_name), (gtk_buildable_get_name),
          (gtk_buildable_add), (gtk_buildable_set_property),
          (gtk_buildable_parser_finished), (gtk_buildable_construct_child),
          (gtk_buildable_custom_tag_start), (gtk_buildable_custom_tag_end),
          (gtk_buildable_custom_finished),
          (gtk_buildable_get_internal_child):
          * gtk/gtkbuildable.h:
          * gtk/gtkbuilder.c: (gtk_builder_class_init), (gtk_builder_init),
          (gtk_builder_finalize), (gtk_builder_set_property),
          (gtk_builder_get_property), (_gtk_builder_resolve_type_lazily),
          (gtk_builder_real_get_type_from_name),
          (gtk_builder_get_parameters), (gtk_builder_get_internal_child),
          (_gtk_builder_construct), (_gtk_builder_add),
          (apply_delayed_properties), (_gtk_builder_finish),
          (gtk_builder_new), (gtk_builder_add_from_file),
          (gtk_builder_add_from_string), (gtk_builder_get_object),
          (object_add_to_list), (gtk_builder_get_objects),
          (gtk_builder_set_translation_domain),
          (gtk_builder_get_translation_domain),
          (gtk_builder_connect_signals_default),
          (gtk_builder_connect_signals), (gtk_builder_connect_signals_full),
          (gtk_builder_value_from_string),
          (gtk_builder_value_from_string_type),
          (_gtk_builder_enum_from_string), (_gtk_builder_flags_from_string),
          (gtk_builder_get_type_from_name), (gtk_builder_error_quark):
          * gtk/gtkbuilder.h:
          * gtk/gtkbuilderparser.c: (state_push), (state_peek), (state_pop),
          (error_missing_attribute), (error_invalid_attribute),
          (error_invalid_tag), (builder_construct), (parse_object),
          (free_object_info), (_get_type_by_symbol), (parse_child),
          (free_child_info), (parse_property), (free_property_info),
          (parse_signal), (_free_signal_info), (parse_interface),
          (create_subparser), (free_subparser), (subparser_start),
          (subparser_end), (parse_custom), (start_element), (end_element),
          (text), (_gtk_builder_parser_parse_buffer):
          * gtk/gtkbuilderprivate.h:
          * gtk/gtkcelllayout.c: (attributes_start_element),
          (attributes_text_element),
          (_gtk_cell_layout_buildable_custom_tag_start),
          (_gtk_cell_layout_buildable_custom_tag_end),
          (_gtk_cell_layout_buildable_add):
          * gtk/gtkcelllayout.h:
          * gtk/gtkcellview.c: (gtk_cell_view_buildable_init),
          (gtk_cell_view_buildable_custom_tag_start),
          (gtk_cell_view_buildable_custom_tag_end):
          * gtk/gtkcolorseldialog.c:
          (gtk_color_selection_dialog_buildable_interface_init),
          (gtk_color_selection_dialog_buildable_get_internal_child):
          * gtk/gtkcombobox.c: (gtk_combo_box_buildable_init),
          (gtk_combo_box_buildable_custom_tag_start),
          (gtk_combo_box_buildable_custom_tag_end):
          * gtk/gtkcomboboxentry.c:
          (gtk_combo_box_entry_buildable_interface_init),
          (gtk_combo_box_entry_buildable_get_internal_child):
          * gtk/gtkcontainer.c: (gtk_container_get_type),
          (gtk_container_buildable_init), (gtk_container_buildable_add),
          (gtk_container_buildable_set_child_property),
          (attributes_start_element), (attributes_text_element),
          (gtk_container_buildable_custom_tag_start),
          (gtk_container_buildable_custom_tag_end):
          * gtk/gtkdebug.h:
          * gtk/gtkdialog.c: (gtk_dialog_buildable_interface_init),
          (gtk_dialog_buildable_get_internal_child),
          (attributes_start_element), (attributes_text_element),
          (gtk_dialog_buildable_custom_tag_start),
          (gtk_dialog_buildable_custom_finished):
          * gtk/gtkentrycompletion.c: (gtk_entry_completion_buildable_init):
          * gtk/gtkexpander.c: (gtk_expander_buildable_add),
          (gtk_expander_buildable_init):
          * gtk/gtkfontsel.c:
          (gtk_font_selection_dialog_buildable_interface_init),
          (gtk_font_selection_dialog_buildable_get_internal_child):
          * gtk/gtkframe.c: (gtk_frame_buildable_init),
          (gtk_frame_buildable_add):
          * gtk/gtkiconview.c: (gtk_icon_view_buildable_init),
          (gtk_icon_view_buildable_custom_tag_start),
          (gtk_icon_view_buildable_custom_tag_end):
          * gtk/gtkliststore.c: (gtk_list_store_buildable_init),
          (list_store_start_element), (list_store_end_element),
          (list_store_text), (gtk_list_store_buildable_custom_tag_start),
          (gtk_list_store_buildable_custom_tag_end):
          * gtk/gtkmain.c:
          * gtk/gtknotebook.c: (gtk_notebook_buildable_init),
          (gtk_notebook_buildable_add):
          * gtk/gtksizegroup.c: (gtk_size_group_buildable_init),
          (size_group_start_element),
          (gtk_size_group_buildable_custom_tag_start),
          (gtk_size_group_buildable_custom_finished):
          * gtk/gtktreestore.c: (gtk_tree_store_buildable_init),
          (tree_model_start_element),
          (gtk_tree_store_buildable_custom_tag_start),
          (gtk_tree_store_buildable_custom_finished):
          * gtk/gtktreeview.c: (gtk_tree_view_buildable_init),
          (gtk_tree_view_buildable_add):
          * gtk/gtktreeviewcolumn.c: (gtk_tree_view_column_buildable_init):
          * gtk/gtkuimanager.c: (gtk_ui_manager_buildable_init),
          (gtk_ui_manager_buildable_add),
          (gtk_ui_manager_buildable_construct_child),
          (gtk_ui_manager_buildable_custom_tag_start),
          (gtk_ui_manager_buildable_custom_tag_end):
          * gtk/gtkwidget.c: (gtk_widget_get_type),
          (gtk_widget_buildable_interface_init),
          (gtk_widget_buildable_set_name), (gtk_widget_buildable_get_name),
          (gtk_widget_buildable_set_property),
          (gtk_widget_buildable_parser_finshed), (accel_group_start_element),
          (gtk_widget_buildable_custom_tag_start),
          (gtk_widget_buildable_custom_finshed):
          * gtk/gtkwindow.c: (gtk_window_buildable_interface_init),
          (gtk_window_buildable_set_property),
          (gtk_window_buildable_parser_finished):
          * tests/Makefile.am:
          * tests/buildertest.c: (builder_new_from_string), (test_parser),
          (signal_normal), (signal_after), (signal_object),
          (signal_object_after), (signal_first), (signal_second),
          (signal_extra), (signal_extra2), (test_connect_signals),
          (test_uimanager_simple), (test_domain), (test_translation),
          (test_sizegroup), (test_list_store), (test_tree_store),
          (test_types), (test_spin_button), (test_notebook),
          (test_construct_only_property), (test_children),
          (test_child_properties), (test_treeview_column), (test_icon_view),
          (test_combo_box), (test_combo_box_entry), (test_cell_view),
          (test_dialog), (test_accelerators), (test_widget), (main):
      
          Add GtkBuilder, fixes #172535
      
      
      svn path=/trunk/; revision=18141
      4d638bf0
  13. 14 Jun, 2007 1 commit
  14. 07 Jun, 2007 1 commit
  15. 04 Jun, 2007 1 commit
    • Matthias Clasen's avatar
      Add a create-window signal that allows to override the global · 17df8751
      Matthias Clasen authored
      2007-06-04  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkmarshalers.list:
              * gtk/gtknotebook.[hc]: Add a create-window signal that allows
              to override the global create-window-hook on a per-notebook
              basis. The default handler falls back to the global hook.
              (#386935, Christian Hammond)
      
      
      svn path=/trunk/; revision=18024
      17df8751
  16. 03 Jun, 2007 2 commits
  17. 29 May, 2007 1 commit
  18. 26 May, 2007 1 commit
  19. 23 May, 2007 1 commit
    • Yevgen Muntyan's avatar
      missing #include <ctype.h>. · 1a534510
      Yevgen Muntyan authored
      2007-05-23  Yevgen Muntyan  <muntyan@tamu.edu>
      
      	* gtk/gtkprintunixdialog.c: missing #include <ctype.h>.
      
      	* gtk/gtkhandlebox.c (gtk_handle_box_paint):
      	* gtk/gtkpagesetupunixdialog.c (_gtk_load_custom_papers):
      	* gtk/gtkstatusbar.c (gtk_statusbar_get_context_id):
      	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path):
      	* gtk/gtktrayicon-x11.c (gtk_tray_icon_send_dock_request):
      	* gtk/gtkpreview.c (gtk_preview_finalize):
      	* gtk/gtknotebook.c (gtk_notebook_set_group_id):
      	* tests/testnotebookdnd.c (window_creation_function):
      	* tests/testiconview.c (do_popup_menu):
      	Fixed some compiler warnings (#440689).
      
      svn path=/trunk/; revision=17898
      1a534510
  20. 19 May, 2007 1 commit
    • Matthias Clasen's avatar
      Deprecate gtk_notebook_[gs]et_group_id in favour of new functions · 40d59813
      Matthias Clasen authored
      2007-05-19  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtk.symbols:
              * gtk/gtknotebook.[hc]: Deprecate gtk_notebook_[gs]et_group_id
              in favour of new functions gtk_notebook_[gs]et_group, which
              takes a pointer as group identifier and makes it easier to
              avoid group id collisions.  (#386930, Christian Hammond)
      
              * tests/testnotebookdnd.c: Use new grouping api.
      
      
      
      svn path=/trunk/; revision=17873
      40d59813
  21. 18 May, 2007 2 commits
    • Carlos Garnacho's avatar
      Allow widgets up in the hierarchy to run their DnD handlers if the target · b2128325
      Carlos Garnacho authored
      2007-05-18  Carlos Garnacho  <carlos@imendio.com>
      
              * gtk/gtknotebook.c (gtk_notebook_init) (gtk_notebook_drag_motion)
              (gtk_notebook_drag_drop): Allow widgets up in the hierarchy to run
              their DnD handlers if the target doesn't match with anything the
              notebook manages. (#350665, Joakim Lundborg).
      
      
      svn path=/trunk/; revision=17860
      b2128325
    • Carlos Garnacho's avatar
      Do not unset the brand new current page if there was none set previously. · a1498f76
      Carlos Garnacho authored
      2007-05-18  Carlos Garnacho  <carlos@imendio.com>
      
              * gtk/gtknotebook.c (gtk_notebook_real_insert_page): Do not unset
              the brand new current page if there was none set previously. Fixes
              #425138 (Reported by Michail Crayson). Some code simplifications.
              (gtk_notebook_draw_arrow): code style fix.
      
      
      svn path=/trunk/; revision=17858
      a1498f76
  22. 07 Apr, 2007 1 commit
  23. 13 Mar, 2007 1 commit
  24. 09 Mar, 2007 1 commit
  25. 28 Jan, 2007 1 commit
  26. 06 Jan, 2007 1 commit
  27. 05 Jan, 2007 1 commit
  28. 02 Jan, 2007 1 commit
  29. 29 Dec, 2006 1 commit
  30. 28 Dec, 2006 1 commit
    • Carlos Garnacho's avatar
      Make GtkNotebook able to drop detached tabs anywhere. Bug #360225. · d42bbb64
      Carlos Garnacho authored
      2006-12-28  Carlos Garnacho  <carlosg@gnome.org>
      
              Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.
      
              * gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
              * gtk/gtkmarshalers.list: add new marshaler definition.
              * gtk/gtkenums.h: add GtkDragResult enum.
      
              * gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
              operation wasn't successful.
              (_gtk_drag_source_handle_event) (gtk_drag_drop)
              (gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
              (gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
              (gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
              gtk_drag_drop_finished() the operation result.
      
              * gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
              (gtk_notebook_drag_data_get): do not call window creation hook here.
              (gtk_notebook_init): do not set "application/x-rootwindow-drop"
              target, instead connect to "drag-failed".
              (gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.
      d42bbb64
  31. 26 Dec, 2006 3 commits
    • Christian Persch's avatar
      Return the correct value from gtk_notebook_insert_page if the page-added · 0b75f7a3
      Christian Persch authored
      2006-12-26  Christian Persch  <chpe@cvs.gnome.org>
      
      	* gtk/gtknotebook.c: (gtk_notebook_real_insert_page):
      	Return the correct value from gtk_notebook_insert_page if the
      	page-added handler reorders the tabs. Bug #345094.
      0b75f7a3
    • Carlos Garnacho's avatar
      Fix small regressions in GtkNotebook tab detaching. Bug #378852. · 43e3082a
      Carlos Garnacho authored
      2006-12-26  Carlos Garnacho  <carlosg@gnome.org>
      
              Fix small regressions in GtkNotebook tab detaching. Bug #378852.
      
              * gtk/gtknotebook.c (gtk_notebook_do_arrow): grab focus to allow tabs
              scrolling when hovering with a detached tab.
              (gtk_notebook_stop_reorder): Do not deparent the wrong tab if the
              focus tab has changed during a tab DND operation.
              (gtk_notebook_drag_end): ensure that the dropped tab gets focused.
              (gtk_notebook_paint): do not take cur_page as a reference to paint the
              box if it's detached.
              (gtk_notebook_calculate_tabs_allocation): focus_tab may be different
              to the detached tab if we hover the arrows during a tabs detaching
              operation, do not allocate it unconditionally in 0,0.
      43e3082a
    • Carlos Garnacho's avatar
      Expose improvements for GtkNotebook. Bug #383435 · c1077874
      Carlos Garnacho authored
      2006-12-26  Carlos Garnacho  <carlosg@gnome.org>
      
              Expose improvements for GtkNotebook. Bug #383435
      
              * gtk/gtknotebook.c (gtk_notebook_expose): propagate the event to tab
              labels.
              (gtk_notebook_draw_focus): do not repaint the whole focused tab again.
              (gtk_notebook_draw_tab): do not send handmade expose events to tab
              labels.
      c1077874
  32. 22 Dec, 2006 1 commit
  33. 16 Nov, 2006 1 commit
    • Michael Natterer's avatar
      Add new infrastructure for notifications of failed keyboard navigation and · 7f374a74
      Michael Natterer authored
      2006-11-16  Michael Natterer  <mitch@imendio.com>
      
      	Add new infrastructure for notifications of failed keyboard
      	navigation and navigation with restricted set of keys.
      
      	The patch handles configurable beeping, navigating the GUI with
      	cursor keys only (as in phone environments), and configurable
      	wrap-around. Fixes bugs #322640, #70986, #318827, #334726, #334742
      	and #309291.
      
      	* gtk/gtksettings.c: added properties gtk-keynav-cursor-only,
      	gtk-keynav-wrap-around and gtk-error-bell.
      
      	* gtk/gtkwidget.[ch]: added new signal "keynav-failed" and public
      	API to emit it. Added New function gtk_widget_error_bell() which
      	looks at the gtk-error-bell setting and calls gdk_window_beep()
      	accordingly.
      
      	* gtk/gtk.symbols: add the new widget symbols.
      
      	* gtk/gtkcellrendereraccel.c
      	* gtk/gtkimcontextsimple.c
      	* gtk/gtkmenu.c
      	* gtk/gtknotebook.c: use gtk_widget_error_bell() or look at the
      	gtk-error-bell setting instead of calling gdk_display_beep()
      	unconditionally.
      
      	* gtk/gtkcombobox.c
      	* gtk/gtkentry.c
      	* gtk/gtkiconview.c
      	* gtk/gtklabel.c
      	* gtk/gtkmenushell.c
      	* gtk/gtkspinbutton.c
      	* gtk/gtktextview.c
      	* gtk/gtktreeview.c: call gtk_widget_error_bell() on failed keynav.
      
      	* gtk/gtkentry.c
      	* gtk/gtklabel.c
      	* gtk/gtkrange.c
      	* gtk/gtktextview.c: consult gtk_widget_keynav_failed() on failed
      	cursor navigation and leave the widget if it returns FALSE.
      
      	* gtk/gtkmenushell.c
      	* gtk/gtknotebook.c: only wrap around if gtk-keynav-wrap-around
      	is TRUE.
      
      	* gtk/gtkradiobutton.c: ask gtk_widget_keynav_failed() to decide
      	whether to to wrap-around, and don't select active items on cursor
      	navigation if gtk-keynav-cursor-only is TRUE. Should look at
      	gtk-keynav-wrap-around too, will look into that.
      7f374a74
  34. 07 Nov, 2006 1 commit
  35. 08 Oct, 2006 1 commit