1. 02 Jun, 2003 1 commit
  2. 30 May, 2003 1 commit
  3. 22 May, 2003 1 commit
    • Matthias Clasen's avatar
      Add support for up to four scroll arrows. Control their display by new · ed1468ba
      Matthias Clasen authored
      2003-05-23  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtknotebook.c: Add support for up to four scroll
      	arrows. Control their display by new style properties
      	"has_forward_stepper", "has_backward_stepper",
      	"has_secondary_forward_stepper" and
      	has_secondary_backward_stepper". (#110540)
      
      	* gtk/gtknotebook.h (struct _GtkNotebook): Make in_child and
      	click_child three bits wide, add
      	has_{before,after}_{previous,next} fields.
      ed1468ba
  4. 29 Mar, 2003 2 commits
    • Matthias Clasen's avatar
      Fix the previous commit. · bdd6e817
      Matthias Clasen authored
      bdd6e817
    • Matthias Clasen's avatar
      Fixes for bug #56248: · feefa270
      Matthias Clasen authored
      2003-03-29  Matthias Clasen  <maclas@gmx.de>
      
              Fixes for bug #56248:
      
      	* gtk/gtknotebook.c (stop_scrolling): New function to remove the
      	timer and queue a redraw.
      	(gtk_notebook_grab_notify):
      	(gtk_notebook_state_changed): New functions to call stop_scrolling()
      	if necessary.
      	(gtk_notebook_button_release): Use stop_scrolling().
      	(gtk_notebook_draw_arrow): Fix drawing of insensitive arrows.
      
      	* gtk/gtkrange.c (stop_scrolling): New function to remove the
      	grab, remove the timer and queue a redraw.
      	(gtk_range_grab_notify):
      	(gtk_range_state_changed): New functions to call stop_scrolling()
      	if necessary.
      	(gtk_range_button_release): Use stop_scrolling().
      
      	* gtk/gtkspinbutton.c (gtk_spin_button_grab_notify):
      	(gtk_spin_button_state_changed): Redraw after stop_spinning.
      	(gtk_spin_button_stop_spinning): Reset click_child to correct the
      	drawing of the arrows.
      	(gtk_spin_button_button_release): Use a local copy of click_child,
      	since stop_spinning() resets it.
      feefa270
  5. 28 Mar, 2003 1 commit
  6. 05 Feb, 2003 1 commit
  7. 01 Feb, 2003 1 commit
  8. 30 Jan, 2003 1 commit
  9. 15 Jan, 2003 1 commit
  10. 10 Dec, 2002 1 commit
    • Soeren Sandmann's avatar
      new default color scheme based on the GNOME stock icon palette. (#80691, · 439d61b9
      Soeren Sandmann authored
      Tue Dec 10 12:40:30 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkmenuitem.c, gtk/gtkstyle.c, gtk/gtkrc.c: new default
      	color scheme based on the GNOME stock icon palette. (#80691,
      	Tuomas Kuosmanen, Garrett LeSage, Owen Taylor)
      
      	* gtk/gtknotebook.c (gtk_notebook_real_remove): take a new
      	parameter, "destroying", and don't emit the switch-page signals
      	when it is true (fix #64832, reported by Jarred Keuch)
      
      	* gtk/gtklabel.c (gtk_label_set_property): remove unused
      	variable.
      439d61b9
  11. 28 Nov, 2002 1 commit
  12. 20 Nov, 2002 1 commit
    • Manish Singh's avatar
      add -DGTK_DISABLE_DEPRECATED. #undef it at the top of gtktypebuiltins.c. · bc035915
      Manish Singh authored
      Tue Nov 19 17:05:51 2002 Manish Singh  <yosh@gimp.org>
      
      	* gtk/Makefile.am: add -DGTK_DISABLE_DEPRECATED. #undef it at the
      	top of gtktypebuiltins.c.
      
      	* gtk/gtkclist.c
      	* gtk/gtkcombo.c
      	* gtk/gtkctree.c
      	* gtk/gtklist.c
      	* gtk/gtklistitem.c
      	* gtk/gtkoldeditable.c
      	* gtk/gtkpixmap.c
      	* gtk/gtkpreview.c
      	* gtk/gtksignal.c
      	* gtk/gtktext.c
      	* gtk/gtktipsquery.c
      	* gtk/gtktree.c
      	* gtk/gtktreeitem.c
      	* gtk/gtktypeutils.c: #undef GTK_DISABLE_DEPRECATED, deprecated widgets
      	and compat code.
      
      	* gtk/gtkcolorsel.c: move gtk_color_selection_set_color implementation
      	to set_color_internal, and use that. The deprecated function now
      	merely wraps it.
      
      	* gtk/gtkfontsel.c: same as above, except with
      	gtk_font_selection_get_font.
      
      	* gtk/gtknotebook.c: same as above, except with
      	gtk_notebook_set_homogeneous, and gtk_notebook_set_tab_{border,
      	hborder,vborder}.
      
      	* gtk/gtkprogressbar.c: same as above, except with
      	gtk_progress_bar_set_{bar_stype,discrete_blocks,activity_step,
      	activity_blocks}.
      
      	* gtk/gtkstyle.c: same as above, except with gtk_style_get_font.
      
      	* gtk/gtkwidget.c: same as above, except with gtk_widget_set_usize.
      
      	* gtk/gtkitemfactory.h: declare compatibility functions for deprecated
      	GtkMenuFactory stuff if GTK_COMPILATION, since they are used
      	internally by the compat code.
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_create_item): remove
      	use of deprecated gtk_check_menu_item_set_show_toggle (it is a noop
      	now).
      
      	* gtk/gtkmain.c: replaced deprecated GTK_TYPE_* with G_TYPE_*.
      
      	* gtk/gtkobject.c: replaced various deprecated functions. In set and
      	get_property, use g_object_{set,get}_data with "user_data" instead
      	of gtk_object_{set,get}_user_data.
      
      	* gtk/gtkprogress.h: API declared if GTK_COMPILATION
      
      	* gtk/gtkprogress.c: port get_type to GObject API.
      
      	* gtk/gtktypeutils.h: declare GtkArg stuff and gtk_type_init,
      	if GTK_COMPILATION.
      
      	* gtk/gtkwidget.c: define gtk_widget_queue_clear in terms of
      	gtk_widget_queue_draw instead of the other way around.
      
      	* tests/Makefile.am: define -DGTK_DISABLE_DEPRECATED
      
      	* tests/testgtk.c
      	* tests/testselection.c
      	* tests/testsocket.c: #undef GTK_DISABLE_DEPRECATED, makes use of
      	deprecated stuff.
      bc035915
  13. 14 Nov, 2002 1 commit
    • Owen Taylor's avatar
      Change so that updates of selection don't take effect immediately, but · a03f567e
      Owen Taylor authored
      Wed Nov 13 17:03:19 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcombo.c: Change so that updates of selection
              don't take effect immediately, but only when popdown
              is closed with a button release within the combo
              or Return/Enter.
      
              * gtk/gtkcombo.c: Support Alt-Down to pop down the
              combo, Alt-Up to pop it back up, Space to immediately
              select current item.
      
              * gtk/gtkcombo.c (gtk_combo_entry_key_press): Don't
              move the focus when we get to the ends of the list
              entries.
      
              * gtk/gtkcombo.c: Fix handling of state in ad-hoc
              keybinding handling to be a bit more reasonable.
      
              * gtk/gtkcombo.c (gtk_combo_popup_list): Clear
              last_focus_child when no item is selected so we
              don't start focusing from some random place.
      
              * gtk/gtkcombo.c (gtk_combo_init): Make
              gtk_combo_set_use_arrows_always, enable_arrows_always
              properties have no effect, they were an awful idea.
              Always behave as if enable_arrows_always is true.
      
              * gtk/gtknotebook.c: Fix a warning.
      a03f567e
  14. 13 Nov, 2002 1 commit
    • Owen Taylor's avatar
      When clicking on a non-active tab, focus the first widget in the tab, not · 83cda922
      Owen Taylor authored
      Wed Nov 13 11:55:25 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtknotebook.c (gtk_notebook_button_press):
              When clicking on a non-active tab, focus the first
              widget in the tab, not the tab itself. (#98322)
      
              * gtk/gtknotebook.c (gtk_notebook_focus_changed):
              Eliminate synchronous drawing, just call redraw_tabs.
      
              * gtk/gtknotebook.c (gtk_notebook_init): Don't set
              the RECEIVES_DEFAULT flag, we no longer do anything
              with Return/Enter key.
      83cda922
  15. 25 Oct, 2002 2 commits
  16. 10 Oct, 2002 1 commit
  17. 05 Oct, 2002 2 commits
    • Manish Singh's avatar
      deprecation cleanup · 8b6a832f
      Manish Singh authored
      Sat Oct  5 16:11:22 2002  Manish Singh  <yosh@gimp.org>
      
              * gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
              gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: deprecation cleanup
      8b6a832f
    • Owen Taylor's avatar
      at Oct 5 18:25:11 2002 Owen Taylor <otaylor@redhat.com> · 7e924e4a
      Owen Taylor authored
              * gtk/gtknotebook.c (gtk_notebook_draw_tab): Fix
              &expose_event vs expose_event problem (#94898,
              reported by Jon-Kare Hellan)
      7e924e4a
  18. 03 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Add a 'type' parameter, make public. · ef33adff
      Owen Taylor authored
      Thu Oct  3 14:13:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkevents.c (gdk_event_new): Add a 'type'
              parameter, make public.
      
              * gdk/gdkevents.c (gdk_event_copy): Copy the screen.
      
              * gdk/gdkevents.c gdk/linux-fb/gdkmain-fb.c
              gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
              _gdk_event_new() => gdk_event_new().
      
              * gdk/win32/gdkevents-win32.c (real_window_procedure):
              Fix event_private->screen breakage that results from evil
              encapsulation breakage here.
      
              * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcontainer.c
              gtk/gtkdialog.c gtk/gtkdnd.c gtk/gtkdrawingarea.c
              gtk/gtkimcontextsimple.c gtk/gtklist.c gtk/gtkmenu.c
              gtk/gtknotebook.c gtk/gtkplug.c gtk/gtkselection.c
              gtk/gtktext.c gtk/gtktreeitem.c gtk/gtktreeview.c
              gtk/gtkviewport.c gtk/gtkwindow-decorate.c gtk/gtkwindow.c
              tests/testgtk.c: Remove most usage of stack-allocated
              GdkEvent structures.
      
              * gtk/gtktreeview.c: Use a cut-and-paste of the full
              send_focus_event() from gtkwindow.c that does the necessary
              notification of the ::has-focus property and setting of
              the HAS_FOCUS flag.x
      
              * gtk/gtkdnd.c: Clean up some mess/duplicated code; removing
              an extraneous use of a GdkEvent.
      ef33adff
  19. 27 Sep, 2002 1 commit
  20. 23 Sep, 2002 1 commit
    • Owen Taylor's avatar
      i Add gtk_notebook_get_n_pages (#73229, Havoc Pennington) · 9879b5b4
      Owen Taylor authored
      Mon Sep 23 18:01:52 2002  Owen Taylor  <otaylor@redhat.com>
      i
              * gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages
              (#73229, Havoc Pennington)
      
              * gtk/gtknotebook.c (gtk_notebook_get_nth_page): Handle
              -1 to mean the last page, as we do elsewhere. (#73229)
      9879b5b4
  21. 02 May, 2002 3 commits
  22. 30 Apr, 2002 1 commit
    • Matthias Clasen's avatar
      Improve a warning. · e3d181b8
      Matthias Clasen authored
      	* gtk/gtkcontainer.c (gtk_container_class_install_child_property):
      	Improve a warning.
      
      	* gdk/linux-fb/gdkinput.c (gdk_device_get_axis): Remove a broken
      	and redundant doc comment.
      
      	* gtk/gtkprogress.c (gtk_progress_class_init):
      	* gtk/gtkprogressbar.c (gtk_progress_bar_class_init):
      	* gtk/gtktexttag.c (gtk_text_tag_class_init):
      	* gtk/gtknotebook.c (gtk_notebook_class_init): Better blurbs,
      	incorporating stuff from the doc templates.
      
      	* gtk/gtkplug.c (gtk_plug_construct): Fix docs.
      e3d181b8
  23. 29 Apr, 2002 1 commit
    • Alexander Larsson's avatar
      Integrate Erwann Chenede's multihead changes for the gtk/ directory. · 4632fb81
      Alexander Larsson authored
      Mon Apr 29 18:28:00 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Integrate Erwann Chenede's multihead changes for the gtk/ directory.
      
      	* gtk/gtkclipboard.[ch]: Add gtk_clipboard_get_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtkcolorsel.[ch]: Add
      	gtk_color_selection_set_change_palette_with_screen_hook () [ugh!]
      	make up for non-multihead safety of
      	gtk_color_selection_set_change_palette_hook()
      
      	* gtk/gtkinvisible.[ch] gtk/gtkmenu.[ch] gtkwindow.[ch]: Add
      	gtk_{invisible,menu,window}_set_screen(); add "screen" properties
      	for GtkWindow and GtkMenu.
      
      	* gtk/gtkplug.[ch]: Add gtk_plug_construct_for_display(),
      	gtk_plug_new_for_display(). Multihead fixes.
      
      	* gtk/gtkselection.[ch]: Add gtk_selection_owner_set_for_display(),
      	make internals multihead aware.
      
      	* gtk/gtksettings.[ch]: Add gtk_settings_get_for_screen(), get
      	rid of now-useless gtk_settings_constructor().
      
      	* gtk/gtkstyle.[ch]: Add gtk_style_get_font_for_display(), fix
      	check/radio button indicators bitmap handling to be multihead
      	safe.
      
      	* gtk/gtkwidget.[ch]: Add gtk_widget_get_screen(), gtk_widget_has_screen(),
      	gtk_widget_get_display(), gtk_widget_get_clipboard(),
      	gtk_widget_get_root_window().
      
      	* gtk/gtkbindings.c gtk/gtkbutton.c gtk/gtkclist.c gtk/gtkcombo.c
      	gtk/gtkctree.c gtk/gtkdnd.c gtk/gtkfilesel.c gtk/gtkgamma.c
      	gtk/gtkhandlebox.c gtk/gtkhsv.c gtk/gtkimcontext.c gtk/gtklabel.c
      	gtk/gtklist.c gtk/gtkmain.c gtk/gtkmenuitem.c gtk/gtkmenushell.c
      	gtk/gtknotebook.c gtk/gtkoldeditable.c gtk/gtkoptionmenu.c
      	gtk/gtkpaned.c gtk/gtkpreview.c gtk/gtksocket.c gtk/gtktext.c
      	gtk/gtktextbuffer.c gtk/gtktextview.c gtk/gtktipsquery.c
      	gtk/gtktooltips.c gtk/gtktreeview.c gtk/gtktreeviewcolumn.c:
      	misc mechanical multihead-safety fixes.
      
      	* gtk/gtkclipboard.c: Use a GtkImage rather than a pixmap for
      	the dropper, look up the color palette only at realization time,
      	other multihead fixes.
      
      	* gtk/gtkcombo.c (gtk_combo_unrealize): Popdown the list when
      	unrealizing.
      
      	* gtk/gtkentry.c: Only claim ownership of the primary selection
      	when realized, misc multihead fixes.
      
      	* gtk/gtkfontsel.c: Only fill in fonts when attached to a screen,
      	fix gtk_font_selection_get_font() for multihead.
      
      	* gtk/gtkgc.c: make the depth => drawable hash per-screen.
      
      	* gtk/gtkinvisible.c: Add a constructor that realizes the
      	widget, so we get a realized widget with g_object_new() as
      	well gtk_invisible_new() as before.
      
      	* gtk/gtkmain.c: Get rid of unused gtk_visual/gtk_colormap
      	variables.
      
      	* gtk/gtktextdisplay.c: Add warnings if stipple bitmaps
      	are used on the wrong screen.
      
      	* gtk/gtktoolbar.c: Make handling of GtkSettings-based layout
      	read properties and connect to settings when the screen is changed,
      	rather than on init/finalize.
      
      	* gtk/gtkwindow.c: Fix icon handing to be multihead safe ...
      	default icon pixmaps/mask are only shared between windows on the
      	same screen. Misc multihead fixes.
      
      Sat Apr 27 13:49:53 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkclipboard.c (gtk_clipboard_get_for_display):
      	Update docs to reference GDK_SELECTION_CLIPBOARD rather GDK_NONE.
      
      2002-04-29  Alex Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkproperty-fb.c (gdk_property_get):
      	Fix silly bug, noticed by Sven Neumann.
      
      Sun Apr 28 22:43:55 2002  Jonathan Blandford  <jrb@gnome.org>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_sort_func): Fix
      	so that you can set a new sort func.
      4632fb81
  24. 12 Apr, 2002 1 commit
  25. 27 Mar, 2002 1 commit
  26. 07 Mar, 2002 1 commit
  27. 04 Mar, 2002 1 commit
  28. 01 Mar, 2002 2 commits
  29. 21 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Implement "fuzzy" key binding lookups; allow matches on key and level but · 708e1a95
      Owen Taylor authored
      Wed Feb 20 14:26:47 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkkeyhash.[ch]: Implement "fuzzy" key binding lookups;
              allow matches on key and level but not group. Also, implement
              ignoring "consumed modifiers correctly."
      
              * gtk/gtkaccelgroup.c gtk/gtkbindings.c: Convert to using
              GtkKeyHash.
      
              * gtk/gtkdebug.h gtk/gtkmain.c: Support GTK_DEBUG=keybindings
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate): Fill in
              the group for key release events as well as key press events.
      
              * gdk/gdkkeys.h gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
              Rename unused_modifiers to consumed_modifiers, make the docs and
              non-Xkb implementation match the Xkb implementation.
      
              * gdk/linux-fb/gdkkeyboard-fb.c gdk/win32/gdkkeys-win32.c: Propagate
              doc and parameter name changes.
      
              * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state):
              XkbTranslateKeyCode doesn't handle LockMask, we need to handle
              it ourselves.
      
              * gdk/x11/gdkkeys-x11.c (gdk_keymap_translate_keyboard_state): Force
              <Shift>Tab to give GDK_ISO_Left_Tab, since we need consistency
              to allow dealing with ISO_Left_Tab.
      
              * gtk/gtkwindow.c gtk/gtktextview.c gtk/gtkscrolledwindow.c
              gtk/gtkpaned.c gtk/gtkcombo.c  gtk/gtknotebook.c:
              Remove inappropriate uses of GDK_ISO_Left_Tab. (GDK_ISO_Left_Tab
              or <Shift>Tab both are equivalent as a binding specifier.)
      
              * gtk/gtkbutton.c (gtk_button_class_init): Make ::activate
              GTK_RUN_ACTION, so you can bind an accelerator to it.
      
              * gtk/gtklabel.c (gtk_label_set_uline_text_internal): Call
              gdk_unicode_to_keyval on the mnemonic character.
      
              * tests/testgtk.c: Add a test for the new fuzzy key binding matching.
      708e1a95
  30. 09 Feb, 2002 1 commit
    • Matthias Clasen's avatar
      Avoid segfault for selectable tab labels (even without a segfault, they · dc46b476
      Matthias Clasen authored
      
      	* gtk/gtknotebook.c (gtk_notebook_set_focus_child): Avoid segfault
      	for selectable tab labels (even without a segfault, they make the
      	notebook almost unusable, though).  (#69985)
      
      	* gtk/gtkmenuitem.c (gtk_menu_item_set_accel_path): Silently do
      	nothing if the parent is not a menu.  (#66492)
      
      	* gtk/gtkitemfactory.c (gtk_item_factory_from_widget,
      	gtk_item_factory_path_from_widget): Try fetching the return value
      	from menu_item->submenu as a fallback.  (#69020)
      dc46b476
  31. 08 Feb, 2002 2 commits
    • Owen Taylor's avatar
      Add ::move-focus-out signal to handle Control[-Shift]-Tab and · 23c6be55
      Owen Taylor authored
      Thu Feb  7 19:52:00 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtknotebook.[ch]: Add ::move-focus-out signal
      	to handle Control[-Shift]-Tab and Control-arrow
      	bindings and implement bindings as per #53612.
      
      	* gtk/gtktextview.c (gtk_text_view_move_focus): Fix
      	fetching the toplevel for plug-socket.
      
      	* gtk/gtknotebook.c (gtk_notebook_class_init): Remove
      	bindings for Return/Enter to select the page.
      
      	* gtk/gtknotebook.c (gtk_notebook_change_current_page):
      	Beep at ends.
      
      	* gtk/gtknotebook.c (focus_tabs_move): Don't wrap around
      	and beep at ends.
      
      	* gtk/gtknotebook.c (gtk_notebook_focus): When focusing into
      	the page with the arrow keys, focus the first widget,
      	not the directionally closest widget.
      23c6be55
    • Owen Taylor's avatar
      Convert to using binding set for doing key bindings. (#62622, Requested by · aa881823
      Owen Taylor authored
      Thu Feb  7 19:00:10 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkspinbutton.c (gtk_spin_button_key_release): Convert
              to using  binding set for doing key bindings. (#62622,
              Requested by Skip Montaro)
      
              * gtk/gtkwindow.c (gtk_window_class_init): Add control-arrow
              bindings as overrides along with control-tab bindings.
      
              * gtk/gtknotebook.c (gtk_notebook_class_init): Fix return
              type for ::focus_tab signal.
      aa881823
  32. 03 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Non-exported _gtk_menu_select_first() function that selects the first item · ae7521bd
      Owen Taylor authored
      Sat Feb  2 20:16:04 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenushell.c (_gtk_menu_shell_select_first):
              Non-exported _gtk_menu_select_first() function that
              selects the first item of the menu in a standard
              way. (Skipping tearoffs.)
      
              * gtk/gtkmenushell.c gtk/gtkentry.c gtk/gtktextview.c
              gtkmenuitem.c: Use _gtk_menu_shell_select_first().
      
              * gtk/gtkmenuitem.c (gtk_real_menu_item_select): Remember
              if we are starting the timeout from a keypress so
              we can set menushell->ignore_enter properly.
      
              * gtk/gtknotebook.c (focus_child_in): Return something
              meaningful if there are no children.
      
              * gtk/gtkmenu.c (gtk_menu_key_press): Fix precendence
              problem.
      ae7521bd
  33. 01 Feb, 2002 1 commit