1. 11 Jan, 2006 1 commit
  2. 08 Jan, 2006 2 commits
  3. 05 Jan, 2006 1 commit
  4. 26 Dec, 2005 1 commit
    • Matthias Clasen's avatar
      Add a gtk-label-select-on-focus setting. (gtk_label_grab_focus): And use · 168ad4bc
      Matthias Clasen authored
      2005-12-26  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtklabel.c (gtk_label_class_init): Add a gtk-label-select-on-focus
      	setting.
      	(gtk_label_grab_focus): And use it here to select the contents of
      	the label when appropriate.
      	(gtk_label_class_init): Use the same keybindings for select all/
      	unselect all as GtkEntry and GtkTextView.
      
      	* gtk/gtkdialog.c (gtk_dialog_map): When looking for the initial
      	focus, avoid leaving a selection in a label.
      168ad4bc
  5. 20 Oct, 2005 1 commit
  6. 14 Sep, 2005 1 commit
  7. 13 Sep, 2005 1 commit
  8. 09 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Stylistic improvements and clarifications for some blurbs. (#315520, · 9a86f658
      Matthias Clasen authored
      2005-09-09  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkiconview.c (gtk_icon_view_class_init):
      	* gtk/gtkfilesel.c (gtk_file_selection_class_init):
      	* gtk/gtkcombobox.c (gtk_combo_box_class_init):
      	* gtk/gtklabel.c (gtk_label_class_init):
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init):
      	Stylistic improvements and clarifications for some blurbs.
      	(#315520, Clytie Siddall)
      9a86f658
  9. 01 Sep, 2005 1 commit
    • Matthias Clasen's avatar
      Intern some more strings. · 94eec042
      Matthias Clasen authored
      2005-09-01  Matthias Clasen  <mclasen@redhat.com>
      
              * gdk/*.c: Intern some more strings.
              * gtk/gtkintl.h:
              * gtk/*.c: Define an I_() macro and use it instead of the
              bulky g_intern_static_string().
      94eec042
  10. 31 Aug, 2005 2 commits
  11. 11 Jul, 2005 1 commit
    • Matthias Clasen's avatar
      When dragging text, use a drag icon showing the (ellipsized) text that is · 13a341e0
      Matthias Clasen authored
      2005-07-11  Matthias Clasen  <mclasen@redhat.com>
      
      	When dragging text, use a drag icon showing the (ellipsized)
      	text that is being dragged: (#161132, Kevin Duffus, patch
      	by Carlos Garnacho Parro)
      
      	* gtk/gtktextutil.h:
      	* gtk/gtktextutil.c (_gtk_text_util_create_drag_icon): Add
      	a function to create a pixmap for use when dragging text.
      
      	* gtk/gtktextview.c (gtk_text_view_start_selection_dnd):
      	* gtk/gtklabel.c (gtk_label_motion):
      	* gtk/gtkentry.c (gtk_entry_motion_notify): Use a drag icon
      	showing the text being dragged.
      
      2005-07-11  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_move_forward_word)
      	(gtk_entry_move_backward_word): Match the text view change
      	to allow selecting whitespace with double-click.
      13a341e0
  12. 21 Jun, 2005 1 commit
  13. 26 Mar, 2005 1 commit
  14. 22 Mar, 2005 1 commit
  15. 20 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · cca8dd63
      Matthias Clasen authored
      2005-03-20  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in gdkalias.h:
      
      	* gtk/grk.symbols: Group symbols by header and source file.
      	* gtk/makegtkalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegtkalias.pl -def
      	* gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate
      	this file.
      	* gtk/*.c: Include gtkalias.h after the other headers,
      	include gtkaliasdef.c at the bottom.
      	* gtk/*.h: Small cleanups.
      cca8dd63
  16. 17 Mar, 2005 1 commit
  17. 09 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      x · 263bce44
      Matthias Clasen authored
      2005-03-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktextbuffer.c (gtk_text_buffer_class_init):
      	* gtk/gtkrange.c (gtk_range_class_init):
      	* gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
      	* gtk/gtktexttag.c (gtk_text_tag_class_init):
      	* gtk/gtktextview.c (gtk_text_view_class_init):
      	* gtk/gtkscrollbar.c (gtk_scrollbar_class_init):
      	* gtk/gtknotebook.c (gtk_notebook_class_init):
      	* gtk/gtkentry.c (gtk_entry_class_init):
      	* gtk/gtkexpander.c (gtk_expander_class_init):
      	* gtk/gtkarrow.c (gtk_arrow_class_init):
      	* gtk/gtkalignment.c (gtk_alignment_class_init):
      	* gtk/gtkbutton.c (gtk_button_class_init):
      	* gtk/gtklabel.c (gtk_label_class_init):
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_class_init):
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_class_init): x
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init):
      	* gtk/gtktreeview.c (gtk_tree_view_class_init):
      	* gtk/gtkbox.c (gtk_box_class_init):
      	* gtk/gtkwindow.c (gtk_window_class_init, gtk_window_class_init):
      	* gtk/gtkcontainer.c (gtk_container_class_init):
      	* gtk/gtkwidget.c (gtk_widget_class_init):
      	* gtk/gtkobject.c (gtk_object_class_init): Use canonical names
      	when registering param specs.
      263bce44
  18. 28 Feb, 2005 1 commit
  19. 24 Feb, 2005 2 commits
  20. 09 Jan, 2005 1 commit
    • Anders Carlsson's avatar
      Don't pass NULL to pango_context_get_metrics. Use · b1167d1d
      Anders Carlsson authored
      2005-01-09  Anders Carlsson <andersca@gnome.org>
      
      	* gtk/gtkcellrenderertext.c: (get_size):
      	* gtk/gtklabel.c: (gtk_label_size_request):
      	* gtk/gtkprogressbar.c: (gtk_progress_bar_size_request):
      	Don't pass NULL to pango_context_get_metrics. Use
      	pango_context_get_language instead, which is way faster.
      b1167d1d
  21. 22 Dec, 2004 1 commit
  22. 13 Dec, 2004 2 commits
  23. 12 Dec, 2004 1 commit
  24. 10 Dec, 2004 2 commits
    • Matthias Clasen's avatar
      Support no-Alt mnemnonics in menu bars (#101309, Owen Taylor) · f3a74ace
      Matthias Clasen authored
      2004-12-10  Matthias Clasen  <mclasen@redhat.com>
      
      	Support no-Alt mnemnonics in menu bars  (#101309, Owen Taylor)
      
      	* gtk/gtkwindow.c: Factor out mnemonic hash code into
      	a separate file.
      
      	* gtk/gtkmnemonichash.[hc]: Factored out mnemonic hash
      	code from gtkwindow.c.
      
      	* gtk/Makefile.am (gtk_c_sources): Add gtkmnemonichash.[hc].
      
      	* gtk/gtkmenushell.c (struct _GtkMenuShellPrivate): Give
      	menu shells their own mnemonic hash.
      
      	* gtk/gtkmenushell.h: Add private api to support mnemonics.
      
      	* gtk/gtklabel.c (gtk_label_setup_mnemonic): Add mnemonic to
      	the menushell mnemonic hash when inside a menu.
      f3a74ace
    • Matthias Clasen's avatar
      Fix a property nick typo. · 50d8e17f
      Matthias Clasen authored
      2004-12-09  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtklabel.c (gtk_label_class_init): Fix a property
      	nick typo.
      50d8e17f
  25. 21 Nov, 2004 1 commit
    • Owen Taylor's avatar
      Add GdkPangoRenderer, a subclass of PangoRenderer targeting GDK drawables. · 3d737ee8
      Owen Taylor authored
      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)
      3d737ee8
  26. 15 Nov, 2004 1 commit
  27. 12 Nov, 2004 2 commits
  28. 09 Nov, 2004 2 commits
    • Matthias Clasen's avatar
      Clip when drawing the cursor. This prevents bits of a selectable label · 9ca871be
      Matthias Clasen authored
      2004-11-09  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtklabel.c (draw_insertion_cursor, gtk_label_expose):
      	Clip when drawing the cursor. This prevents bits of a
      	selectable label leaking out from underneath the resize
      	grip in a statusbar.  (#73359)
      9ca871be
    • Matthias Clasen's avatar
      Avoid resizing GtkStatusbar if the text of the label changes (#90955, He · b87307b9
      Matthias Clasen authored
      2004-11-09  Matthias Clasen  <mclasen@redhat.com>
      
      	Avoid resizing GtkStatusbar if the text of the label
      	changes  (#90955, He Qiangqiang, fix proposed by
      	Owen Taylor, patch by Christian Persch)
      
      	* gtk/gtklabel.[hc]: Add a boolean single-line-mode property
      	which causes the label height not to depend on the actual
      	text, but only on the font.
      
      	* gtk/gtkstatusbar.c (gtk_statusbar_init): Turn on
      	single-line-mode for the label.
      b87307b9
  29. 03 Nov, 2004 1 commit
  30. 26 Oct, 2004 1 commit
    • James M. Cape's avatar
      Rework of GtkFileChooserButton, some cleanups. Fixes #154388, #154390, · ede3c399
      James M. Cape authored
      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.
      ede3c399
  31. 29 Sep, 2004 1 commit
  32. 17 Sep, 2004 1 commit
  33. 23 Aug, 2004 1 commit
    • Matthias Clasen's avatar
      Fix #150822, reported by Christian Persch · a578e113
      Matthias Clasen authored
      2004-08-23  Matthias Clasen  <mclasen@redhat.com>
      
      	Fix #150822, reported by Christian Persch
      
      	* gtk/gtklabel.c (gtk_label_ensure_layout): Set the layout width
      	appropriately when ellipsized.
      	(gtk_label_size_allocate): Only set the layout width if there
      	is a layout.
      a578e113