1. 27 Aug, 2003 2 commits
    • Matthias Clasen's avatar
      Change the XML format: <Root> element is replaced by <ui>, <menu> element · cbc20c4d
      Matthias Clasen authored
      2003-08-28  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkuimanager.c: Change the XML format:
      	<Root> element is replaced by <ui>,
      	<menu> element is replaced by <menubar>,
      	<submenu> element is replaced by <menu>,
      	<dockitem> element is replaced by <toolbar>,
      	<popups> element is gone,
      	verb attribute is replaced by action,
      	name defaults to action or the element name.
      
      	* gtk/gtkactiongroup.[hc]: Replace GtkActionGroupEntry by GtkActionEntry
      	and GtkRadioActionEntry. GtkActionEntry is simplified by removing
      	the user_data, entry_type and extra_data fields, GtkRadioActionEntry is
      	further simplified by removing the callback. The user_data can now be
      	specified as an argument to gtk_action_group_add_actions(). There is
      	a new method gtk_action_group_add_radio_actions(), which is similar
      	to gtk_action_group_add_actions(), but takes GtkRadioActionEntrys
      	and a callback parameter in addition to the user_data. The callback
      	is connected to the ::changed signal of the first group member.
      	There are _full() variants taking a GDestroyNotify of
      	gtk_action_group_add_[radio_]actions().
      
      	* gtk/gtkradioaction.[hc]: Add a ::changed signal which gets emitted
      	on every member of the radio group when the active member is changed.
      	Add an integer property "value", and a getter for the value of "value"
      	on the currently active group member.
      
      	* tests/testactions.c:
      	* tests/testmerge.c:
      	* tests/merge-[123].ui:
      	* demos/gtk-demo/appwindow.c: Adjust to these changes.
      
      	* gtk/gtktoolbar.c (gtk_toolbar_append_element): Trivial doc fix.
      cbc20c4d
    • Anders Carlsson's avatar
      Focus the text view, so the tool bar won't have focus. · bebc663c
      Anders Carlsson authored
      2003-08-27  Anders Carlsson  <andersca@gnome.org>
      
      	* demos/gtk-demo/appwindow.c (do_appwindow): Focus the
      	text view, so the tool bar won't have focus.
      bebc663c
  2. 26 Aug, 2003 6 commits
    • cinamod's avatar
      tooltips, handle boxes, menus, toolbars · ccdf6b9b
      cinamod authored
      ccdf6b9b
    • Raymond Penners's avatar
      0.3.0 · b1b4498b
      Raymond Penners authored
      b1b4498b
    • Owen Taylor's avatar
      Fix variable declaration not at start of block. (#120371, Damien Carbery) · d8c62d66
      Owen Taylor authored
      Tue Aug 26 09:57:38 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix variable
              declaration not at start of block. (#120371, Damien Carbery)
      d8c62d66
    • Frédéric Crozat's avatar
      a3344d22
    • Matthias Clasen's avatar
      Use gssize for length, not gsize. · 720bdb8d
      Matthias Clasen authored
      2003-08-26  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkuimanager.[hc] (gtk_ui_manager_add_ui_from_string): Use gssize
      	for length, not gsize.
      
      	* gtk/gtkuimanager.c: Refactor the XML format a bit: rename <Root> to
      	<ui> and make it optional in strings. Rename verb to action, <dockitem>
      	to <toolbar>, <menu> to <menubar>, <submenu> to <menu>.
      
      	* demos/gtk-demo/appwindow.c:
      	* tests/testactions.c:
      	* tests/testmerge.c:
      	* tests/merge-1.ui:
      	* tests/merge-2.ui:
      	* tests/merge-3.ui: Adjust to the new XML format.
      720bdb8d
    • Owen Taylor's avatar
      Since we add one to the layout's reported width to account for the cursor, · 2be259b2
      Owen Taylor authored
      Mon Aug 25 19:55:55 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktextview.c (gtk_text_view_update_layout_width):
              Since we add one to the layout's reported width to
              account for the cursor, we need to subtract one when
              setting the wrap width for the layout. (Fixes infinite
              loop (#120325, Federico Crozat)
      
              * gtk/gtktextlayout.c (gtk_text_layout_get_line_display):
              Be a bit more careful about rounding when converting
              wrapped width from Pango units to pixels.
      2be259b2
  3. 25 Aug, 2003 9 commits
    • Matthias Clasen's avatar
      Rename GtkMenuMerge to GtkUIManager · 5e8c9634
      Matthias Clasen authored
      5e8c9634
    • Matthias Clasen's avatar
      Rename GtkMenuMerge to GtkUIManager. · 77af2d63
      Matthias Clasen authored
      77af2d63
    • Matthias Clasen's avatar
      Make the previous commit compile. · 3cb958de
      Matthias Clasen authored
      3cb958de
    • Owen Taylor's avatar
      Send the focus on to the parent when there was no focus widget before and · eb410261
      Owen Taylor authored
      Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
              to the parent when there was no focus widget before
              and no focus widget after - that is, when there are
              no focusable widgets. (#108678, help tracking it
              down from Padraig O'Briain, Federico Mena Quintero, )
      
              * gtk/gtkxembed.[ch]: Move various shared utilities
              for the XEMBED protocol eused by GtkPlug and GtkSocket
              here.
      
              * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
              a flag bit that is sent with focus mesages to indicate
              that the focus has wrapped around on the toplevel;
              use this bit to catch infinite loops when there is no
              focusable widget at ll in the entire toplevel.
      
              * tests/testsocket.c (child_read_watch): Remove an
              extraneous unref.
      
              * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h:
              Up XEMBED protocol version to 1, add logic for
              sending the right version in XEMBED_EMBEDDED_NOTIFY.
      
              * gtk/gtksocket.c (gtk_socket_add_window): Send
              the embedder window in the XEMBED_EMBEDDED_NOTIFY
              as the spec requires.
      eb410261
    • Owen Taylor's avatar
      Don't include page->menu_label - causes various problems, including · 9eb2d7c2
      Owen Taylor authored
      Mon Aug 25 17:28:04 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtknotebook.c (gtk_notebook_forall): Don't
              include page->menu_label - causes various problems,
              including #12047.
      9eb2d7c2
    • Kristian Rietveld's avatar
      Merge from stable. · 43d99929
      Kristian Rietveld authored
      Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merge from stable.
      
      	Fixes #115871, reported by Michael Natterer.
      
      	* gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
      	added ctrl_pressed and shift_pressed bitfields,
      	(_gtk_tree_selection_internal_select_node): replace GdkModifierType
      	arg with GtkTreeSelectMode.
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
      	(gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
      	(_gtk_tree_selection_internal_select_node): all updated for
      	GdkModifierType -> GtkTreeSelectMode move.
      
      	* gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
      	and shift_pressed around selection handling block,
      	(gtk_tree_view_real_select_cursor_row),
      	(gtk_tree_view_real_toggle_cursor_row),
      	(gtk_tree_view_real_selection_cursor_parent),
      	(gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
      	instead of checking the event state. And also updates for the
      	GdkModifierType -> GtkTreeSelectMode move.
      43d99929
    • Owen Taylor's avatar
      Send the focus on to the parent when there was no focus widget before and · fb6914ef
      Owen Taylor authored
      Wed Aug 20 21:26:49 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkplug.c (gtk_plug_focus): Send the focus on
              to the parent when there was no focus widget before
              and no focus widget after - that is, when there are
              no focusable widgets. (#108678, help tracking it
              down from Padraig O'Briain, Federico Mena Quintero, )
      
              * gtk/gtkxembed.[ch]: Move various shared utilities
              for the XEMBED protocol eused by GtkPlug and GtkSocket
              here.
      
              * gtk/gtkxembed.[ch] gtkplug.c gtksocket.c: Implement
              a flag bit that is sent with focus mesages to indicate
              that the focus has wrapped around on the toplevel;
              use this bit to catch infinite loops when there is no
              focusable widget at ll in the entire toplevel.
      
              * tests/testsocket.c (child_read_watch): Remove an
              extraneous unref.
      
              * gtk/gtkplug.c gtk/gtksocket.c gtk/gtkxembed.h:
              Up XEMBED protocol version to 1, add logic for
              sending the right version in XEMBED_EMBEDDED_NOTIFY.
      
              * gtk/gtksocket.c (gtk_socket_add_window): Send
              the embedder window in the XEMBED_EMBEDDED_NOTIFY
              as the spec requires.
      fb6914ef
    • Owen Taylor's avatar
      Fix up CapsLock and NumLock handling for non-XKB. Add a special case hack · 378005c6
      Owen Taylor authored
      Mon Aug 25 16:15:41 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkkeys-x11.c: Fix up CapsLock and
              NumLock handling for non-XKB. Add a special case
              hack for NumLock on Sun servers. (Patch from
              Robert Basch, #115819)
      378005c6
    • Matthias Clasen's avatar
      Remove C99isms. (Morten Welinder) · 04a47f28
      Matthias Clasen authored
      2003-08-25  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.c (gtk_action_group_add_actions): Remove C99isms. (Morten
      	Welinder)
      04a47f28
  4. 24 Aug, 2003 10 commits
    • Matthias Clasen's avatar
      Hooks for translation of label and tooltip in GtkActionGroupEntries. · bfa5c5aa
      Matthias Clasen authored
      2003-08-25  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.[hc] (gtk_action_group_set_translate_func,
      	gtk_action_group_set_translation_domain): Hooks for translation of
      	label and tooltip in GtkActionGroupEntries.  (#120620)
      bfa5c5aa
    • Matthias Clasen's avatar
      Namespace the enum values properly. Sorry about the resize grip trouble, · 32c6a944
      Matthias Clasen authored
      2003-08-25  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkactiongroup.h (GtkActionGroupEntryType): Namespace the enum
      	values properly. Sorry about the resize grip trouble, Owen.  (#120621)
      
      	* gtk/gtkactiongroup.c:
      	* demos/gtk-demo/appwindow.c:
      	* tests/testmerge.c:
      	* tests/testactions.c: Use new GtkActionGroupEntryType enum.
      32c6a944
    • Owen Taylor's avatar
      Remove reference to gtkresizegrip.h. · b374ae3f
      Owen Taylor authored
      Sun Aug 24 17:14:44 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtk.h: Remove reference to gtkresizegrip.h.
      b374ae3f
    • Owen Taylor's avatar
      Fix accidental commit of references to gtkresizegrip.[ch] · d199f896
      Owen Taylor authored
      Sun Aug 24 17:03:44 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/Makefile.am: Fix accidental commit of references
              to gtkresizegrip.[ch]
      d199f896
    • Owen Taylor's avatar
      Fix some missing initializations of rc_file->directory. · 02f3976e
      Owen Taylor authored
      Sun Aug 24 17:00:03 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkrc.c: Fix some missing initializations of
              rc_file->directory.
      02f3976e
    • Matthias Clasen's avatar
      Add a few forgotten Since: 2.4 markers. · a6781eb5
      Matthias Clasen authored
      a6781eb5
    • Matthias Clasen's avatar
      New templates. · 20667ea7
      Matthias Clasen authored
      2003-08-24  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/tmpl/gtkmenumerge.sgml:
      	* gtk/tmpl/gtkaction.sgml:
      	* gtk/tmpl/gtkactiongroup.sgml:
      	* gtk/tmpl/gtkradioaction.sgml:
      	* gtk/tmpl/gtktoggleaction.sgml: New templates.
      
      	* gtk/gtk-docs.sgml:
      	* gtk/gtk-sections.txt: Add GtkMenuMerge, GtkAction, GtkActionGroup,
      	GtkRadioAction, GtkToggleAction.
      20667ea7
    • Matthias Clasen's avatar
      A model-view separation for menus and toolbars, using the EggMenu code by · e7e39565
      Matthias Clasen authored
      2003-08-24  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkaction.[ch]:
      	* gtk/gtktoggleaction.[ch]:
      	* gtk/gtktoggleactionprivate.h:
      	* gtk/gtkradioaction.[ch]:
      	* gtk/gtkactiongroup.[ch]:
      	* gtk/gtkmenumerge.[ch]: A model-view separation for menus and
      	toolbars, using the EggMenu code by James Henstridge.
      
      	* gtk/gtk.h: Include new headers.
      	* gtk/Makefile.am: Add new files.
      
      	* tests/testactions.c: Test for actions.
      	* tests/testmerge.c: Test for menu merging.
      	* tests/merge-[123].ui: Test data for testmerge.
      	* tests/Makefile.am: Add testactions and testmerge.
      
      	* demos/gtk-demo/appwindow.c: Use GtkMenuMerge to construct the
      	menubar and toolbar.
      e7e39565
    • Anders Carlsson's avatar
      Use gdk_draw_pixbuf. · 9897d659
      Anders Carlsson authored
      2003-08-24  Anders Carlsson  <andersca@gnome.org>
      
      	* libegg/iconlist/eggiconlist.c: (egg_icon_list_paint_item),
      	(egg_icon_list_paint_rubberband):
      	Use gdk_draw_pixbuf.
      
      	(egg_icon_list_item_unref):
      	Call destroy_notify on the list item. Reported by Edd Dumbill.
      9897d659
    • Owen Taylor's avatar
      Fix problem where rc_file->directory wasn't always getting set. (#120549, · f977168c
      Owen Taylor authored
      Sat Aug 23 21:40:18 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix
              problem where rc_file->directory wasn't always getting
              set. (#120549, Luis Villa)
      f977168c
  5. 23 Aug, 2003 4 commits
  6. 22 Aug, 2003 1 commit
  7. 21 Aug, 2003 5 commits
  8. 20 Aug, 2003 3 commits
    • Kristian Rietveld's avatar
      Merge from stable. · 5ff0e3fa
      Kristian Rietveld authored
      Thu Aug 21 01:33:51 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merge from stable.
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_size_request): always round
      	approximate digit widths up, to avoid truncation, convert to
      	pango pixels when we have the full string width instead of converting
      	the approx digit width to pango pixels, take inner border and
      	interior focus into account correctly. (Fixes #116368, patch from
      	Morten Welinder).
      5ff0e3fa
    • Søren Sandmann Pedersen's avatar
      Add bugnumber to ChangeLog · 4983f3ad
      Søren Sandmann Pedersen authored
      4983f3ad
    • Noah Levitt's avatar
      Don't look at the same directory twice (in simple cases). (#120342) · 6f1a9d46
      Noah Levitt authored
      2003-08-20  Noah Levitt  <nlevitt@columbia.edu>
      
      	* gtk/queryimmodules.c: Don't look at the same directory twice (in
      	simple cases). (#120342)
      6f1a9d46