1. 25 May, 2008 6 commits
    • Sven Neumann's avatar
      respect the GTK_NO_WINDOW flag and don't create an output window if it is · d0ffa630
      Sven Neumann authored
      2008-05-25  Sven Neumann  <sven@gimp.org>
      
      	* gtk/gtkdrawingarea.c (gtk_drawing_area_realize)
      	(gtk_drawing_area_size_allocate): respect the GTK_NO_WINDOW flag
      	and don't create an output window if it is set.
      
      	* gtk/gtkprintunixdialog.c: set the GTK_NO_WINDOW flag for the
      	drawing areas. Fixes bug #519317.
      
      
      svn path=/trunk/; revision=20148
      d0ffa630
    • Jan Arne Petersen's avatar
      Reorder strange window hierarchy of the GtkSpinButton (#466000). · 4ebacd83
      Jan Arne Petersen authored
      2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>
      
      	* gtk/gtkentry.c: (gtk_entry_class_init), (get_text_area_size),
      	(gtk_entry_get_text_area_size), (gtk_entry_draw_frame):
      	* gtk/gtkentry.h:
      	* gtk/gtkspinbutton.c: (gtk_spin_button_class_init),
      	(gtk_spin_button_realize), (gtk_spin_button_size_allocate),
      	(gtk_spin_button_expose), (gtk_spin_button_draw_arrow),
      	(gtk_spin_button_enter_notify), (gtk_spin_button_leave_notify),
      	(gtk_spin_button_grab_notify), (gtk_spin_button_state_changed),
      	(start_spinning), (gtk_spin_button_button_release),
      	(gtk_spin_button_motion_notify), (gtk_spin_button_value_changed),
      	(gtk_spin_button_get_text_area_size), (gtk_spin_button_real_spin),
      	(gtk_spin_button_update): Reorder strange window hierarchy of the
      	GtkSpinButton (#466000).
      
      
      svn path=/trunk/; revision=20147
      4ebacd83
    • Jan Arne Petersen's avatar
      Subtract logical.x from x to fix the wrong position for right and center · 0fea8c56
      Jan Arne Petersen authored
      2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>
      
      	* gtk/gtklabel.c: (get_layout_location): Subtract logical.x from x to
      	fix the wrong position for right and center justified labels with
      	logical.x > 0 (#530255).
      
      
      svn path=/trunk/; revision=20146
      0fea8c56
    • Jan Arne Petersen's avatar
      Ignore G_IO_ERROR_FAILED_HANDLED errors (#532262). · 242f3309
      Jan Arne Petersen authored
      2008-05-25  Jan Arne Petersen  <jpetersen@jpetersen.org>
      
      	* gtk/gtkfilechooserdefault.c:
      	(shortcuts_activate_volume_mount_cb): Ignore G_IO_ERROR_FAILED_HANDLED
      	errors (#532262).
      
      
      svn path=/trunk/; revision=20145
      242f3309
    • Björn Lindqvist's avatar
      tests/pixbuf-lowmem.c tests/pixbuf-random.c · 6eb51d28
      Björn Lindqvist authored
      2008-05-25  Björn Lindqvist  <bjourne@gmail.com>
      
      	* tests/pixbuf-lowmem.c
      	* tests/pixbuf-random.c
      	* tests/pixbuf-randomly-modified.c
      	* tests/pixbuf-read.c
      	* tests/pixbuf-threads.c
      	* tests/testgtk.c
      	* tests/testtreeview.c: Fix remaining compiler warnings in these
      	files (#523751).
      
      svn path=/trunk/; revision=20144
      6eb51d28
    • Jaap A. Haitsma's avatar
      reviewed by: Matthias Clasen · 53c45d12
      Jaap A. Haitsma authored
      2008-05-25  Jaap A. Haitsma  <jaap@haitsma.org>
      
      	reviewed by: Matthias Clasen
      
      	* gtk/Makefile.am:
      	* gtk/gtk.h:
      	* gtk/gtk.symbols:
      	* gtk/gtkshow.c: (gtk_show_uri):
      	* gtk/gtkshow.h:
      	Add gtk_show_uri to make showing uris really easy. Fixes bug #514396
      
      svn path=/trunk/; revision=20143
      53c45d12
  2. 24 May, 2008 11 commits
  3. 23 May, 2008 4 commits
    • Hans Breuer's avatar
      updated fix c99ism (variable at start of block export functions for window · 0b57c6b9
      Hans Breuer authored
      2008-05-23  Hans Breuer  <hans@breuer.org>
      
      	* **/makefile.msc gtk/makefile.msc.in : updated
      	* gtk/gtkwidget.c : fix c99ism (variable at start of block
      	* gdk/gdk.symbols gtk/gtk.symbols : export functions for window 
      	redirection
      	* gtk/gtkfilechooserdefault.c : #include <locale.h> for 
      	setlocale(LC_ALL, ...)
      
      svn path=/trunk/; revision=20131
      0b57c6b9
    • Tor Lillqvist's avatar
      Add gdk_window_redirect_to_drawable and gdk_window_remove_redirection. · a8b5f3ee
      Tor Lillqvist authored
      2008-05-23  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/gdk.symbols: Add gdk_window_redirect_to_drawable and
      	gdk_window_remove_redirection.
      
      	* gdk/win32/gdkwindow-win32.c (_gdk_window_new)
      	(_gdk_window_reparent): Rename to adapt to the offscreen rendering
      	changes. Remove now unnecessary parameter checks as the caller
      	does that already.
      
      	* gtk/gtk.symbols: Add gtk_widget_get_snapshot.
      
      
      svn path=/trunk/; revision=20130
      a8b5f3ee
    • Tor Lillqvist's avatar
      Don't do anything if style doesn't change. Improve debugging output. · 5b8f0faa
      Tor Lillqvist authored
      2008-05-23  Tor Lillqvist  <tml@novell.com>
      
      	* gdk/win32/gdkwindow-win32.c (update_style_bits): Don't do
      	anything if style doesn't change. Improve debugging output.
      
      
      svn path=/trunk/; revision=20129
      5b8f0faa
    • Michael Natterer's avatar
      perf/widgets.h tests/print-editor.c tests/prop-editor.h · c75c6bf4
      Michael Natterer authored
      2008-05-23  Michael Natterer  <mitch@gimp.org>
      
      	* perf/widgets.h
      	* tests/print-editor.c
      	* tests/prop-editor.h
      	* tests/testmountoperation.c
      	* tests/testmultidisplay.c
      	* tests/testnouiprint.c
      	* tests/testprint.c
      	* tests/testprintfileoperation.h
      	* tests/testtreesort.c
      	* tests/textbuffertest.c: include <gtk/gtk.h> instead of single
      	files. Remove some redundant includes.
      
      
      svn path=/trunk/; revision=20128
      c75c6bf4
  4. 22 May, 2008 1 commit
  5. 21 May, 2008 7 commits
    • Hiroyuki Ikezoe's avatar
      Remove second call of GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED). · e7c7c4b9
      Hiroyuki Ikezoe authored
      2008-05-22  Hiroyuki Ikezoe  <poincare@ikezoe.net>
      
      	* gtk/gtksockget.c: (gtk_socket_realize): Remove second call of
      	GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED).
      
      svn path=/trunk/; revision=20126
      e7c7c4b9
    • Richard Hult's avatar
      Renamed to adapt to the offscreen rendering changes, fixes build. · 902ac34a
      Richard Hult authored
      2008-05-21  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(_gdk_window_new), (_gdk_window_reparent): Renamed to adapt to the
      	offscreen rendering changes, fixes build.
      
      svn path=/trunk/; revision=20125
      902ac34a
    • 21:10:15  Tim Janik's avatar
      added GdkRectangle *clip_rect to gtk_widget_get_snapshot(). · b3d160ce
      21:10:15 Tim Janik authored
      2008-05-21 21:10:15  Tim Janik  <timj@imendio.com>
      
              * gtk/gtkwidget.h: added GdkRectangle *clip_rect to gtk_widget_get_snapshot().
      
              * gtk/gtkwidget.c: clip the returned snapshot pixmap to clip_rect.
              return snapshot pixmap coordinates widget relative in *clip_rect.
      
              * tests/testgtk.c: fixed bogus NULL pointer unref.
      
      
      svn path=/trunk/; revision=20124
      b3d160ce
    • 21:04:28  Tim Janik's avatar
      grow snapshot area from widget's allocation to cover extra widget windows · aa4ab3f0
      21:04:28 Tim Janik authored
      2008-05-21 21:04:28  Tim Janik  <timj@imendio.com>
      
              * gtk/gtkwidget.c gtk_widget_get_snapshot(): grow snapshot area from
              widget's allocation to cover extra widget windows placed outside the
              widget allocation (spinbutton arrows are the prime example for this).
      
      
      svn path=/trunk/; revision=20123
      aa4ab3f0
    • 10:49:20  Tim Janik's avatar
      Bug 318807 – Offscreen windows and window redirection. · 4111cf20
      10:49:20 Tim Janik authored
      2008-03-18 10:49:20  Tim Janik  <timj@imendio.com>
      
      	* Applied pixmap redirection patch by Alexander Larsson with
      	various updates from:
      	Bug 318807 – Offscreen windows and window redirection.
      
      
      	Updates:
      
      	* updated docs to mention "Since 2.16".
      
      	* tests/testgtk.c: fixed snapshooting pixmap leak.
      	convert pixmap to pixbuf after snapshooting, to compensate for different
      	bit depths (occurs when snapshooting ARGB visuals and displaying the
      	pixmap in an RGB visual).
      
      	* gdk/gdkwindow.[hc]: made GdkWindowRedirect private.
      
      	* gdk/gdkwindow.c: removed damage idle handler, there's no aparent
      	need for it. enqueue damage notification as GDK_DAMAGE events
      	for each painting redirection at the start of the event queue.
      	consider windows with a redirection fully visible when invalidating,
      	and when updating from backing store. cleaned up stale variables.
      
      	* gdk/gdkevents.c: added _gdk_event_queue_prepend().
      
      	* gtk/gtkwidget.c: fixed coordinates for !NO_WINDOW widgets in
      	gtk_widget_get_snapshot; this fixes garbage snap offsets for gammacurve,
      	tree, drawingarea, text, handlebox, etc.
      	clip the redirected window hierarchy to window sizes, the visible
      	rectangles don't need to be taken into account here.
      	extended snapshooting docs to recommend gdk_pixbuf_get_from_drawable()
      	in case pixmap visuals could mismatch.
      
      	* gdk/x11/gdkwindow-x11.c: removed _gdk_windowing_window_get_visible_rect().
      
      
      	Base patch:
      
      	* tests/testgtk.c: add a "Snapshot" test to demonstrate snapshooting
      	of possibly obscured widgets into an offscreen pixmap.
      
      	* gtk/gtkwidget.[hc]: add GtkWidget::damage-event signal, add
      	gtk_widget_get_snapshot() to render a widget's contents to a GdkPixmap.
      
      	* gtk/gtkmain.c: dispatch GDK_DAMAGE events.
      
      	* gdk/gdkwindow.c: moved outer gdk_window_new() and gdk_window_reparent()
      	implementations here, adapted them to propagate redirects to child windows.
      	gdk_window_end_paint(): copy repainted window contents to redirection pixmap,
      	clipped to visible region. queue GDK_DAMAGE event delivery.
      	gdk_window_redirect_to_drawable(): install window painting redirection.
      	gdk_window_remove_redirection(): remove previously installed redirection.
      
      	* gdk/x11/gdkwindow-x11.c: added _gdk_windowing_window_get_visible_rect(),
      	renamed _gdk_window_new() and _gdk_window_reparent().
      
      	* gdk/gdkwindow.h: added GdkWindowRedirect* to GdkWindowObject, export
      	gdk_window_redirect_to_drawable() and gdk_window_remove_redirection().
      
      	* gdk/gdkevents.h: added GDK_DAMAGE event type.
      
      	* gdk/gdkevents.c: extract time and state from GDK_DAMAGE events.
      
      	* gdk/gdkinternals.h: added internal prototypes.
      
      
      
      svn path=/trunk/; revision=20122
      4111cf20
    • Michael Natterer's avatar
      gtk/gtkalignment.c gtk/gtkarrow.c gtk/gtkbbox.c gtk/gtkcalendar.c remove · e10e51c9
      Michael Natterer authored
      2008-05-21  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkalignment.c
      	* gtk/gtkarrow.c
      	* gtk/gtkbbox.c
      	* gtk/gtkcalendar.c
      	* gtk/gtkscrolledwindow.c: remove PROP_LAST enum values.
      
      
      svn path=/trunk/; revision=20121
      e10e51c9
    • Matthias Clasen's avatar
      RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" size · 59ae44d0
      Matthias Clasen authored
              was chosen
      
              Patch by Marek Kasik.
      
              * gtk/gtk.symbols:
              * gtk/gtkprinter.[hc]: Add gtk_printer_get_default_page_size.
      
              * gtk/gtkprintbackend.[hc]: Add fallback implementation.
      
              * modules/printbackends/file/gtkprintbackendfile.c:
              * modules/printbackends/cups/gtkprintbackendcups.c: Implement
              get_default_page_size.
      
              * gtk/gtkpagesetupunixdialog.c: When selecting a different printer,
              select its default paper size.
      
              * gtk/gtkprintunixdialog.c: If no explicit page setup has been set,
              use the printer default.
      
              * gtk/gtkprintoperation-unix.c: Don't create an empty page setup
              if we don't have a default page setup.
      
      svn path=/trunk/; revision=20120
      59ae44d0
  6. 20 May, 2008 5 commits
  7. 19 May, 2008 5 commits
  8. 17 May, 2008 1 commit