Commit Graph

12426 Commits

Author SHA1 Message Date
Matthias Clasen
f6ce27f4c9 Fix a C99ism. (#340055, Kazuki Iwamoto)
2006-04-29  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkwidget.c (gtk_widget_is_composited): Fix a C99ism.  (#340055,
	Kazuki Iwamoto)
2006-04-29 04:36:28 +00:00
Matthias Clasen
6162f9d51a Use _static variants when copying and merging short-lived Pango layouts.
2006-04-28  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcellrenderertext.c (get_size): Use _static variants when
	copying and merging short-lived Pango layouts. (#340033, Morten Welinder)
2006-04-29 03:53:25 +00:00
Behdad Esfahbod
0bce92f67d Fix typo in docs. (#340063)
2006-04-28  Behdad Esfahbod  <behdad@gnome.org>

        * gtk/gtkwidget.c (gtk_widget_create_pango_layout): Fix typo in
        docs. (#340063)
2006-04-28 21:43:44 +00:00
Matthias Clasen
373cbb13be Don't force the standard DND icon if the user has a custom DND source.
2006-04-28  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_drag_begin): Don't force
	the standard DND icon if the user has a custom DND source.
	(#339522, Joe Wreschnig)
2006-04-28 14:32:09 +00:00
Michael Natterer
7e15674cd9 keep a reference to the source buffer while the clipboard contents buffer
2006-04-28  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktextbuffer.c (create_clipboard_contents_buffer): keep a
	reference to the source buffer while the clipboard contents buffer
	exists, because it is needed for serializing the contents buffer.
	Makes copying from the contents buffer possible even after the
	resp. text view is destroyed (for example when there is a
	clipboard manager running on app exit) (bug #339195).
2006-04-28 12:13:04 +00:00
Behdad Esfahbod
543f6cbbe6 Cast to double before dividing by PANGO_SCALE. (#334582)
2006-04-27  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/gdkpango.c (gdk_pango_renderer_draw_glyphs): Cast to double
        before dividing by PANGO_SCALE. (#334582)
2006-04-28 07:02:04 +00:00
Matthias Clasen
660f089880 Improve positioning of the menu when popped up by keynav. (#334987,
2006-04-27  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentry.c (popup_position_func): Improve positioning
	of the menu when popped up by keynav.  (#334987, Christian
	Persch)
2006-04-27 18:50:39 +00:00
Ankitkumar Rameshchandra Patel
60c8c2b55c Updated Gujarati Translations 2006-04-27 05:39:08 +00:00
Matthias Clasen
3a0c91edbe fix late setting of dnd icons 2006-04-27 05:16:43 +00:00
Matthias Clasen
059292a765 fix build without xfixes 2006-04-27 05:04:49 +00:00
Federico Mena Quintero
4ce475bd07 Don't make this conditional on having a GTK_RESPONSE_CANCEL button -> end
2006-04-26  Federico Mena Quintero  <federico@novell.com>

	* gtk/gtkdialog.c (gtk_dialog_close): Don't make this conditional
	on having a GTK_RESPONSE_CANCEL button -> end the idiocy.  Fixes
	bug #101293.
2006-04-26 20:33:18 +00:00
Vincent van Adrighem
d81f6fffa6 Translation updated by Tino Meinen.
2006-04-26  Vincent van Adrighem  <adrighem@gnome.org>

	* nl.po: Translation updated by Tino Meinen.
2006-04-26 18:49:02 +00:00
Kristian Rietveld
3ec54866c3 new function, (validate_visible_area): when a node is validated, only
2006-04-26  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreeview.c (node_is_visible): new function,
	(validate_visible_area): when a node is validated, only queue a
	redraw for that node, not for the entire widget (a redraw for the
	entire widget is only needed when the sizes change, and
	_queue_resize() will take care of that),
	(do_validate_rows): do not queue a redraw, redraws are only needed
	for changes in the visible area and validate_visible_area() takes
	care of that,
	(gtk_tree_view_row_inserted): for fixed height mode, only queue
	a resize and redraw if the node is visible, else no redraw is needed.
2006-04-26 14:10:01 +00:00
Kristian Rietveld
d09c7c67af If this new "row-ending-details" property is turned on, more detailed
2006-04-26  Kristian Rietveld  <kris@imendio.com>

	If this new "row-ending-details" property is turned on, more
	detailed "details" will be passed to the theme engine for drawing
	the background, drop indicator and focus rectangle.  Requirement is
	that the theme engine supports these details. (#333760).

	* gtk/gtktreeview.c (gtk_tree_view_class_init): add row-ending-details
	style property,
	(gtk_tree_view_bin_expose): pass more detailed detail to
	gtk_paint_flat_box() if the property is turned on,
	(gtk_tree_view_bin_expose): likewise for the drop indicator,
	(gtk_tree_view_bin_expose): likewise for the focus rectangle.
2006-04-26 12:48:03 +00:00
Kristian Rietveld
ebe22cb38a (broken pipe) 2006-04-26 12:39:25 +00:00
Kristian Rietveld
70bf0da6ad New "show-expanders" and "level-indentation" properties, which can be used
2006-04-26  Kristian Rietveld  <kris@imendio.com>

	New "show-expanders" and "level-indentation" properties, which can
	be used for customizing the tree view.  (For example to do
	grouping as demonstrated in the test application).
	Discussion in #80869.

	* gtk/gtktreeprivate.h: add level_indentation field.

	* gtk/gtktreeview.c (gtk_tree_view_class_init),
	(gtk_tree_view_init), (gtk_tree_view_set_property),
	(gtk_tree_view_get_property): add the properties to the object,
	(gtk_tree_view_button_press), (do_prelight),
	(gtk_tree_view_bin_expose), (validate_row),
	(gtk_tree_view_discover_dirty_iter), (gtk_tree_view_get_cell_area),
	(gtk_tree_view_create_row_drag_icon): take the new properties
	into account,
	(gtk_tree_view_start_editing): fix cell placement code.

	* tests/testgrouping.c: new test application, showing how to
	implement grouping.

	* tests/Makefile.am: updated.
2006-04-26 12:39:12 +00:00
Kristian Rietveld
3eac42f2d4 remove conflict marker 2006-04-26 12:22:01 +00:00
Ankitkumar Rameshchandra Patel
bc3db2f3ac Updated Gujarati Translations 2006-04-26 06:51:59 +00:00
Matthias Clasen
dfe415b3e3 Add gdk_screen_is_composited 2006-04-25 16:45:22 +00:00
Matthias Clasen
a76906c705 Add docs.
2006-04-25  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkprintjob.c (gtk_print_job_set_source_file): Add docs.

	* gtk/gtkprintoperation.c: Add docs.
2006-04-25 15:36:54 +00:00
Søren Sandmann
b9d1a03440 Create 'composited' label.
Tue Apr 25 10:25:28 2006  Søren Sandmann  <sandmann@redhat.com>

	* tests/testgtk.c (create_alpha_window): Create 'composited' label.

	* tests/testgtk.c (on_composited_changed): New function, change
	the label to say whether the screen is composited or not.

	* gtk/gtkwindow.c (gtk_window_on_composited_changed): When
	composited status change, invalidate the window and propagate the signal;.

	* gtk/gtkwindow.c (gtk_window_map): Set the appropriate type hint
	if reset_type_hint is TRUE.

	* gtk/gtkwindow.c (gtk_window_set_type_hint): If hint is one of
	the old hints, store a shadow copy in the public window->type_hint
	bitfield, otherwise set this field to normal. Set the private
	field to the type hint.

	* gtk/gtkwindow.c (gtk_window_init): Initialize priv->type_hint.

	* gtk/gtkwindow.c (struct _GtkWindowPrivate): New field
	"reset_type_hint" indicating whether the type hint needs to be
	reset. New field type_hint containing a GdkWindowTypeHint.

	* gtk/gtkwidget.c (propagate_composited_changed): New function to
	propagate changes in composited status.
	(gtk_widget_class_init): Add composited_changed signal.

	* gtk/gtkwidget.h (struct _GtkWidgetClass): New signal composited-changed.

	* gtk/gtkwidget.c (gtk_widget_is_composited): New function.

	* gtk/gtktooltips.c (gtk_tooltips_draw_tips): Set transient for.

	* gtk/gtktooltips.c (gtk_tooltips_force_window): Set the type hint

	* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Compute whether
	the item belongs to a menubar. Set the type_hint appropriately
	depending on the outcome.

	* gtk/gtkmenu.c (gtk_menu_position): Set the default type hint here.

	* gtk/gtkmenu.c (gtk_menu_attach_to_widget): connect to hierarchy
	changed on the attach widget.

	* gtk/gtkmenu.c (attach_widget_hierarchy_changed): New function to
	set the transient_for property for menus.

	* gtk/gtkdnd.c (set_icon_stock_pixbuf): Set the appropriate type hint.

	* gtk/gtkcombo.c (gtk_combo_popup_list): Make the popup window
	transient for the toplevel.

	* gtk/gtkcombobox.c (gtk_combo_box_set_popup_widget): Set
	transient-for, for the popup window.

	* gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): Support for
	new window types.

	* gdk/x11/gdkwindow-x11.c (gdk_window_set_type_hint): Add support
	for new window types.

	* gdk/x11/gdkscreen-x11.c (_gdk_x11_screen_process_owner_change):
	New function called whenever the compositing manager comes and goes.

	* gdk/x11/gdkscreen-x11.c (gdk_screen_is_composited): New function.

	* gdk/x11/gdkscreen-x11.c
	(_gdk_x11_screen_request_cm_notification, make_cm_atom,
	check_is_composited): New functions

	* gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
	_gdk_x11_screen_process_owner_change when an
	XFixesSelectionNotifyEvent is received.

	* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Call
	_gdk_x11_screen_request_cm_notification() on all screens.

	* gdk/quartz/gdkscreen-quartz.c (gdk_screen_is_composited): Dummy
	implementation.

	* gdk/gdkscreen.c (gdk_screen_class_init): New signal,
	'composited-changed'.

	* gdk/gdkwindow.h: Add new EWMH window types.

	* gdk/win32/gdkscreen-win32.c (gdk_screen_is_composited)
2006-04-25 14:27:32 +00:00
Kjartan Maraas
33a8d113e1 Updated Norwegian bokmål translation.
2006-04-25  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Updated Norwegian bokmål translation.
2006-04-25 10:38:53 +00:00
Matthias Clasen
e6e2f91b19 some more options 2006-04-25 04:38:07 +00:00
Matthias Clasen
bfeb1c20d3 More updates 2006-04-25 04:03:05 +00:00
Matthias Clasen
d24ff6f3d2 Updates 2006-04-25 03:53:49 +00:00
Matthias Clasen
8b51038be3 Add prefixes to msgids for paper sizes 2006-04-25 03:44:57 +00:00
Matthias Clasen
eee5ae7568 additions 2006-04-25 02:31:59 +00:00
Matthias Clasen
92723e10a6 trivial additions 2006-04-25 02:18:00 +00:00
Matthias Clasen
9d77a9fbcf small doc fixes 2006-04-25 02:12:21 +00:00
Matthias Clasen
8758063aca Fix a typo 2006-04-24 22:56:07 +00:00
Matthias Clasen
7437609ec3 forgotten files 2006-04-24 20:44:22 +00:00
Matthias Clasen
894305cdd8 Fix includes (#338665)
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkprintunixdialog.h:
	* gtk/gtkpagesetupunixdialog.h: Fix includes (#338665)
2006-04-24 19:08:47 +00:00
Matthias Clasen
f918e00585 Remove a duplicate entry.
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkentry.sgml: Remove a duplicate entry.
2006-04-24 18:42:38 +00:00
Matthias Clasen
73ebc30436 Fix a typo 2006-04-24 18:34:22 +00:00
Matthias Clasen
64d3323a33 Declare in a way grokked by gtk-doc.
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkprintsettings.h (GtkPageRange): Declare in a way grokked by gtk-doc.
2006-04-24 18:31:48 +00:00
Matthias Clasen
167afc896a Remove an empty index 2006-04-24 18:26:41 +00:00
Matthias Clasen
34f4da23f2 Documentation fixes.
* gdk/gdkregion-generic.c: Documentation fixes.

	* gdk/directfb/gdkmain-directfb.c: Make the comment not look like
	a doc comment.
2006-04-24 18:23:55 +00:00
Matthias Clasen
d0c309e6b2 Add directfb
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gdk/Makefile.am (IGNORE_HFILES): Add  directfb
2006-04-24 18:22:58 +00:00
Matthias Clasen
f202996105 Additions.
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/tmpl/gtkpapersize.sgml: Additions.

	* gtk/gtk-sections.txt: Add new api.
2006-04-24 17:53:32 +00:00
Matthias Clasen
96d37bc2ee Add docs.
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkprintunixdialog.c: Add docs.

	* gtk/gtkstatusicon.c (gtk_status_icon_get_visible): Typo fix.
2006-04-24 17:51:51 +00:00
Matthias Clasen
84ff1b2708 Add new api.
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk-sections.txt: Add new api.
2006-04-24 17:02:05 +00:00
Matthias Clasen
2e9cc2f693 Refactor the gtk_print_operation_run() code and add an _async version.
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols:
	* gtk/gtkprintoperation.c (gtk_print_operation_run_async): Refactor the
	gtk_print_operation_run() code and add an _async version.

	* gtk/gtkprintoperation-private.h:
	* gtk/gtkprintoperation-unix.c
	(_gtk_print_operation_platform_backend_run_dialog_async)
	(gtk_print_run_page_setup_dialog_async): Variants of the run functions
	which don't call gtk_dialog_run(), but only show the dialog and return,
	and handle the response in a signal handler.

	* gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog_async)
	(_gtk_print_operation_platform_backend_run_dialog_async): Implement these
	by calling the sync versions.
2006-04-24 17:00:44 +00:00
Alexander Larsson
7261cff2d7 Don't ref the backend since the backend owns the printer.
2006-04-24  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprinter.c:
	Don't ref the backend since the backend owns the printer.
2006-04-24 16:18:05 +00:00
Alexander Larsson
5ead07e1b2 Remove spew.
2006-04-24  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkpagesetupunixdialog.c (update_combo_sensitivity_from_printers):
	Remove spew.
2006-04-24 15:53:47 +00:00
Alexander Larsson
b19d118e6a Even/Odd Pages -> Even/Odd Sheets
2006-04-24  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkprintunixdialog.c (create_page_setup_page):
	Even/Odd Pages -> Even/Odd Sheets
2006-04-24 15:52:28 +00:00
Matthias Clasen
9523e186dc Cleanups 2006-04-24 15:23:24 +00:00
Matthias Clasen
16eadc829a Remove redundant code.
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkpagesetupunixdialog.c (gtk_page_setup_unix_dialog_get_page_setup):
	Remove redundant code.
2006-04-24 15:08:18 +00:00
Matthias Clasen
738960c95e Install gtkprintjob.h as Unix-specific print API.
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/Makefile.am: Install gtkprintjob.h as Unix-specific print API.
2006-04-24 15:01:16 +00:00
Matthias Clasen
3d07d219e5 Return a copy of the original page setup if the dialog was canceled.
2006-04-24  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog):
	Return a copy of the original page setup if the dialog was canceled.
2006-04-24 14:37:45 +00:00
Rajesh Ranjan
4141a92fff hindi updated 2006-04-24 12:36:28 +00:00