]> Pileus Git - ~andy/gtk/log
~andy/gtk
13 years agoperf: Connect to draw signal
Benjamin Otte [Wed, 8 Sep 2010 20:08:42 +0000 (22:08 +0200)]
perf: Connect to draw signal

13 years agoimcontextxim: Connect to draw signal
Benjamin Otte [Wed, 8 Sep 2010 20:03:50 +0000 (22:03 +0200)]
imcontextxim: Connect to draw signal

13 years agogtk-demo: Connect to draw signal in rotated-text
Benjamin Otte [Wed, 8 Sep 2010 19:57:18 +0000 (21:57 +0200)]
gtk-demo: Connect to draw signal in rotated-text

13 years agogtk-demo: Connect to draw signal in pixbufs example
Benjamin Otte [Wed, 8 Sep 2010 19:53:26 +0000 (21:53 +0200)]
gtk-demo: Connect to draw signal in pixbufs example

13 years agogtk-demo: Connet to draw signal in drawingarea example
Benjamin Otte [Wed, 8 Sep 2010 19:50:16 +0000 (21:50 +0200)]
gtk-demo: Connet to draw signal in drawingarea example

13 years agoprintunixdialog: Connect to draw vfunc
Benjamin Otte [Wed, 8 Sep 2010 19:35:03 +0000 (21:35 +0200)]
printunixdialog: Connect to draw vfunc

13 years agoprintunixdialog: Connect to draw signal for collate callback
Benjamin Otte [Wed, 8 Sep 2010 19:27:34 +0000 (21:27 +0200)]
printunixdialog: Connect to draw signal for collate callback

13 years agodnd-quartz: Connect to draw func for dnd hilight
Benjamin Otte [Wed, 8 Sep 2010 19:24:01 +0000 (21:24 +0200)]
dnd-quartz: Connect to draw func for dnd hilight

13 years agodnd: Connect to raw func for drag hilight
Benjamin Otte [Wed, 8 Sep 2010 19:21:59 +0000 (21:21 +0200)]
dnd: Connect to raw func for drag hilight

13 years agocolorsel: Connect to draw signal
Benjamin Otte [Wed, 8 Sep 2010 19:07:31 +0000 (21:07 +0200)]
colorsel: Connect to draw signal

13 years agofilechooserentry: Connect to draw event
Benjamin Otte [Wed, 8 Sep 2010 18:56:36 +0000 (20:56 +0200)]
filechooserentry: Connect to draw event

13 years agocolorbutton: Connect to draw event
Benjamin Otte [Wed, 8 Sep 2010 15:58:45 +0000 (17:58 +0200)]
colorbutton: Connect to draw event

13 years agonotebook: Connect to draw signal
Benjamin Otte [Wed, 8 Sep 2010 15:54:15 +0000 (17:54 +0200)]
notebook: Connect to draw signal

13 years agotooltip: Connect to draw signal
Benjamin Otte [Wed, 8 Sep 2010 15:09:12 +0000 (17:09 +0200)]
tooltip: Connect to draw signal

13 years agotoolitemgroup: Connect to draw signal
Benjamin Otte [Wed, 8 Sep 2010 15:06:07 +0000 (17:06 +0200)]
toolitemgroup: Connect to draw signal

13 years agoassistant: Port to draw vfunc
Benjamin Otte [Wed, 8 Sep 2010 14:37:43 +0000 (16:37 +0200)]
assistant: Port to draw vfunc

13 years agotrayicon: Port to draw vfunc
Benjamin Otte [Wed, 8 Sep 2010 14:33:14 +0000 (16:33 +0200)]
trayicon: Port to draw vfunc

13 years agowindow: Port to draw vfunc
Benjamin Otte [Wed, 8 Sep 2010 14:09:24 +0000 (16:09 +0200)]
window: Port to draw vfunc

13 years agowindow: Remove hack to set background
Benjamin Otte [Wed, 8 Sep 2010 14:08:46 +0000 (16:08 +0200)]
window: Remove hack to set background

I can't see this having any effect in current code, but who knows...

13 years agoexpander: Port to draw vfunc
Benjamin Otte [Wed, 8 Sep 2010 14:01:32 +0000 (16:01 +0200)]
expander: Port to draw vfunc

13 years agoframe: Port to draw vfunc
Benjamin Otte [Wed, 8 Sep 2010 13:40:21 +0000 (15:40 +0200)]
frame: Port to draw vfunc

13 years agoframe: Remove unneeded is_drawable() check
Benjamin Otte [Wed, 8 Sep 2010 13:32:50 +0000 (15:32 +0200)]
frame: Remove unneeded is_drawable() check

13 years agoAPI: checkbutton: Port to draw vfunc
Benjamin Otte [Wed, 8 Sep 2010 13:29:24 +0000 (15:29 +0200)]
API: checkbutton: Port to draw vfunc

Requires changing the API of the draw_indicator vfunc.

13 years agoradiobutton: Remove redundant is_drawable() check
Benjamin Otte [Wed, 8 Sep 2010 13:10:56 +0000 (15:10 +0200)]
radiobutton: Remove redundant is_drawable() check

13 years agocheckbutton: Remove redundant is_drawable() check
Benjamin Otte [Wed, 8 Sep 2010 13:08:59 +0000 (15:08 +0200)]
checkbutton: Remove redundant is_drawable() check

13 years agocheckbutton: Remove excessive is_drawable() check
Benjamin Otte [Wed, 8 Sep 2010 12:55:53 +0000 (14:55 +0200)]
checkbutton: Remove excessive is_drawable() check

13 years agohandlebox: Port to draw vfunc
Benjamin Otte [Wed, 8 Sep 2010 12:54:15 +0000 (14:54 +0200)]
handlebox: Port to draw vfunc

13 years agohandlebox: Simplify painting code
Benjamin Otte [Wed, 8 Sep 2010 12:40:22 +0000 (14:40 +0200)]
handlebox: Simplify painting code

13 years agohandlebox: Don't draw outside of expose events
Benjamin Otte [Wed, 8 Sep 2010 12:30:30 +0000 (14:30 +0200)]
handlebox: Don't draw outside of expose events

We do a queue_draw() via queue_resize() here, so everything's fine.

13 years agobutton: Port to draw vfunc
Benjamin Otte [Tue, 7 Sep 2010 22:23:04 +0000 (00:23 +0200)]
button: Port to draw vfunc

Also port togglebutton, they use the same paint function.

13 years agobutton: Remove is_drawable() check
Benjamin Otte [Tue, 7 Sep 2010 22:12:35 +0000 (00:12 +0200)]
button: Remove is_drawable() check

It's already done in the expose function

13 years agotearoffmenuitem: remove is_drawable() check
Benjamin Otte [Tue, 14 Sep 2010 11:22:29 +0000 (13:22 +0200)]
tearoffmenuitem: remove is_drawable() check

13 years agoAPI: checkmenuitem: Port to draw vfunc
Benjamin Otte [Tue, 7 Sep 2010 22:03:42 +0000 (00:03 +0200)]
API: checkmenuitem: Port to draw vfunc

Requires changing the draw_indicator vfunc to take a cairo_t.

13 years agotearoffmenuitem: Port to draw vfunc
Benjamin Otte [Tue, 7 Sep 2010 21:16:56 +0000 (23:16 +0200)]
tearoffmenuitem: Port to draw vfunc

13 years agotearoffmenuitem: Don't clear the window, it should be clear already
Benjamin Otte [Tue, 7 Sep 2010 20:45:21 +0000 (22:45 +0200)]
tearoffmenuitem: Don't clear the window, it should be clear already

13 years agotearoffmenuitem: Merge paint() into expose()
Benjamin Otte [Tue, 7 Sep 2010 20:12:33 +0000 (22:12 +0200)]
tearoffmenuitem: Merge paint() into expose()

13 years agomenuitem: Remove is_drawable() check
Benjamin Otte [Tue, 14 Sep 2010 11:19:16 +0000 (13:19 +0200)]
menuitem: Remove is_drawable() check

13 years agomenuitem: Port to draw vfunc
Benjamin Otte [Tue, 7 Sep 2010 20:10:15 +0000 (22:10 +0200)]
menuitem: Port to draw vfunc

13 years agomenuitem: Move paint function into expose function
Benjamin Otte [Tue, 7 Sep 2010 18:33:39 +0000 (20:33 +0200)]
menuitem: Move paint function into expose function

13 years agocombobox: Port to draw vfunc
Benjamin Otte [Tue, 7 Sep 2010 18:17:39 +0000 (20:17 +0200)]
combobox: Port to draw vfunc

13 years agoeventbox: Port to draw vfunc
Benjamin Otte [Tue, 7 Sep 2010 18:13:50 +0000 (20:13 +0200)]
eventbox: Port to draw vfunc

13 years agoeventbox: Merge paint function into expose function
Benjamin Otte [Tue, 7 Sep 2010 17:29:03 +0000 (19:29 +0200)]
eventbox: Merge paint function into expose function

13 years agoscrolledwindow: Port to draw vfunc
Benjamin Otte [Tue, 7 Sep 2010 17:18:46 +0000 (19:18 +0200)]
scrolledwindow: Port to draw vfunc

13 years agoscrolledwindow: Move paint function into expose handler
Benjamin Otte [Tue, 7 Sep 2010 14:59:32 +0000 (16:59 +0200)]
scrolledwindow: Move paint function into expose handler

Also remove the is_drawable() check. It will not be needed once we have
the draw vfunc.

13 years agoviewport: No need to check if the widget is drawable anymore
Benjamin Otte [Tue, 14 Sep 2010 11:11:53 +0000 (13:11 +0200)]
viewport: No need to check if the widget is drawable anymore

13 years agoviewport: Port to draw vfunc
Benjamin Otte [Tue, 7 Sep 2010 14:56:46 +0000 (16:56 +0200)]
viewport: Port to draw vfunc

13 years agoviewport: Pass sizes explicitly to paint functions
Benjamin Otte [Tue, 7 Sep 2010 14:48:29 +0000 (16:48 +0200)]
viewport: Pass sizes explicitly to paint functions

13 years agoviewport: Merge gtk_viewport_paint() into expose function
Benjamin Otte [Tue, 7 Sep 2010 14:41:57 +0000 (16:41 +0200)]
viewport: Merge gtk_viewport_paint() into expose function

13 years agoviewport: Don't paint stuff in realize handler
Benjamin Otte [Tue, 7 Sep 2010 14:37:27 +0000 (16:37 +0200)]
viewport: Don't paint stuff in realize handler

13 years agonotebook: Port to draw vfunc
Benjamin Otte [Tue, 7 Sep 2010 00:39:44 +0000 (02:39 +0200)]
notebook: Port to draw vfunc

13 years agonotebook: The drawable check is not necessary
Benjamin Otte [Tue, 7 Sep 2010 00:28:26 +0000 (02:28 +0200)]
notebook: The drawable check is not necessary

Large patch, but that's only indentation.

13 years agonotebook: Draw tabs and arrows with Cairo
Benjamin Otte [Mon, 6 Sep 2010 23:33:25 +0000 (01:33 +0200)]
notebook: Draw tabs and arrows with Cairo

Includes a fix to only draw the current page once during a drag
operation.

13 years agonotebook: Simplify draw_tab function a bit
Benjamin Otte [Mon, 6 Sep 2010 23:09:41 +0000 (01:09 +0200)]
notebook: Simplify draw_tab function a bit

Don't keep lots of local variables that are only used once.

13 years agonotebook: remove check for is_drawable
Benjamin Otte [Mon, 6 Sep 2010 21:20:03 +0000 (23:20 +0200)]
notebook: remove check for is_drawable

When we reach that code, the widget will always be drawable

13 years agonotebook: Reorder expose function in preparation of draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 21:18:14 +0000 (23:18 +0200)]
notebook: Reorder expose function in preparation of draw vfunc

13 years agonotebook: Use a for loop when iterating over a list
Benjamin Otte [Mon, 6 Sep 2010 21:15:56 +0000 (23:15 +0200)]
notebook: Use a for loop when iterating over a list

13 years agonotebook: Draw focus when drawing tab
Benjamin Otte [Mon, 6 Sep 2010 21:12:32 +0000 (23:12 +0200)]
notebook: Draw focus when drawing tab

Instead of using a special function, draw the focus of a tab when the
tab actually is painted. Simplifies the code quite a bit.

13 years agonotebook: Remove useless optimization
Benjamin Otte [Mon, 6 Sep 2010 21:07:52 +0000 (23:07 +0200)]
notebook: Remove useless optimization

It will become especially useless once we draw with Cairo exclusively.

13 years agopaned: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 18:00:13 +0000 (20:00 +0200)]
paned: Port to draw vfunc

13 years agoinfobar: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 17:44:32 +0000 (19:44 +0200)]
infobar: Port to draw vfunc

13 years agostatusbar: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 17:40:47 +0000 (19:40 +0200)]
statusbar: Port to draw vfunc

13 years agolayout: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 17:30:22 +0000 (19:30 +0200)]
layout: Port to draw vfunc

13 years agoiconview: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 16:54:04 +0000 (18:54 +0200)]
iconview: Port to draw vfunc

13 years agoiconview: Check if the cr is clipped instead of using region
Benjamin Otte [Mon, 6 Sep 2010 16:44:32 +0000 (18:44 +0200)]
iconview: Check if the cr is clipped instead of using region

13 years agoiconview: Simplify rubberband drawing
Benjamin Otte [Mon, 6 Sep 2010 15:46:37 +0000 (17:46 +0200)]
iconview: Simplify rubberband drawing

13 years agomenu: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 15:32:30 +0000 (17:32 +0200)]
menu: Port to draw vfunc

13 years agomenubar: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 15:23:40 +0000 (17:23 +0200)]
menubar: Port to draw vfunc

13 years agotextview: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 14:38:08 +0000 (16:38 +0200)]
textview: Port to draw vfunc

13 years agoseparatortoolitem: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 14:20:30 +0000 (16:20 +0200)]
separatortoolitem: Port to draw vfunc

13 years agotoolbar: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 14:10:08 +0000 (16:10 +0200)]
toolbar: Port to draw vfunc

13 years agotoolbar: Don't propagate events to placeholders
Benjamin Otte [Mon, 6 Sep 2010 14:07:44 +0000 (16:07 +0200)]
toolbar: Don't propagate events to placeholders

In particular don't when that's done using uninitialized memory

13 years agotoolpalette: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 11:56:26 +0000 (13:56 +0200)]
toolpalette: Port to draw vfunc

13 years agotreeview: Port to draw vfunc
Benjamin Otte [Mon, 6 Sep 2010 11:51:17 +0000 (13:51 +0200)]
treeview: Port to draw vfunc

13 years agotreeview: Update rubberbanding code to Cairo
Benjamin Otte [Thu, 9 Sep 2010 19:38:15 +0000 (21:38 +0200)]
treeview: Update rubberbanding code to Cairo

13 years agotreeview: Do not put different windows in else if branches anymore
Benjamin Otte [Mon, 6 Sep 2010 11:31:33 +0000 (13:31 +0200)]
treeview: Do not put different windows in else if branches anymore

13 years agotreeview: Use Cairo for all bin window drawing
Benjamin Otte [Mon, 6 Sep 2010 10:39:00 +0000 (12:39 +0200)]
treeview: Use Cairo for all bin window drawing

13 years agotreeview: Invalidate on expander changes, don't just repaint
Benjamin Otte [Mon, 6 Sep 2010 11:27:50 +0000 (13:27 +0200)]
treeview: Invalidate on expander changes, don't just repaint

Repaints are supposed to be initiated by GDK, not by random repaints.

13 years agotreeview: Draw empty tree view with Cairo
Benjamin Otte [Mon, 6 Sep 2010 10:19:58 +0000 (12:19 +0200)]
treeview: Draw empty tree view with Cairo

13 years agoAPI: Add gtk_container_propagate_draw()
Benjamin Otte [Mon, 6 Sep 2010 09:34:07 +0000 (11:34 +0200)]
API: Add gtk_container_propagate_draw()

Equivalent to gtk_container_propagate_expose(), just for the draw event.
Also port GtkContainer to the draw vfunc

13 years agowidget: Store the expose event in the cairo_t, not just the window
Benjamin Otte [Mon, 6 Sep 2010 09:33:21 +0000 (11:33 +0200)]
widget: Store the expose event in the cairo_t, not just the window

This way we can grab it for propagating expose events. Not sure if we
need to do this once we're all Cairo, but for now we do.

13 years agoaccellabel: Port to draw vfunc
Benjamin Otte [Sun, 5 Sep 2010 18:42:56 +0000 (20:42 +0200)]
accellabel: Port to draw vfunc

13 years agolabel: Port to draw vfunc
Benjamin Otte [Sun, 5 Sep 2010 18:04:10 +0000 (20:04 +0200)]
label: Port to draw vfunc

13 years agoscale: Port to draw vfunc
Benjamin Otte [Sat, 4 Sep 2010 21:16:16 +0000 (23:16 +0200)]
scale: Port to draw vfunc

13 years agorange: Port to draw vfunc
Benjamin Otte [Sat, 4 Sep 2010 19:44:54 +0000 (21:44 +0200)]
range: Port to draw vfunc

13 years agorange: Make drawing use a single cairo context
Benjamin Otte [Sat, 4 Sep 2010 19:34:01 +0000 (21:34 +0200)]
range: Make drawing use a single cairo context

13 years agotests: Remove ability to set backend from testfilechooser
Benjamin Otte [Sat, 4 Sep 2010 17:53:18 +0000 (19:53 +0200)]
tests: Remove ability to set backend from testfilechooser

There's no backends anymore

13 years agoarrow: Port to draw vfunc
Benjamin Otte [Sat, 4 Sep 2010 17:28:22 +0000 (19:28 +0200)]
arrow: Port to draw vfunc

13 years agocalendar: Port to draw vfunc
Benjamin Otte [Sat, 4 Sep 2010 17:16:26 +0000 (19:16 +0200)]
calendar: Port to draw vfunc

13 years agocalendar: Fix drawing order for windows
Benjamin Otte [Sat, 4 Sep 2010 17:09:13 +0000 (19:09 +0200)]
calendar: Fix drawing order for windows

13 years agocalendar: Create one cairo_t per expose event and pass it around
Benjamin Otte [Sat, 4 Sep 2010 17:07:39 +0000 (19:07 +0200)]
calendar: Create one cairo_t per expose event and pass it around

13 years agocellview: Port to draw vfunc
Benjamin Otte [Fri, 3 Sep 2010 16:41:52 +0000 (18:41 +0200)]
cellview: Port to draw vfunc

13 years agospinner: Port to draw vfunc
Benjamin Otte [Fri, 3 Sep 2010 16:30:30 +0000 (18:30 +0200)]
spinner: Port to draw vfunc

13 years agoimage: Port to draw vfunc
Benjamin Otte [Fri, 3 Sep 2010 16:22:59 +0000 (18:22 +0200)]
image: Port to draw vfunc

13 years agoimage: Always render the whole image
Benjamin Otte [Fri, 3 Sep 2010 16:18:28 +0000 (18:18 +0200)]
image: Always render the whole image

Otherwise effects like blur etc will have funny seams on repaints.
Oh, and also, the draw vfunc doesn't have an equivalent to event->area
;)

13 years agospinbutton: Port to draw vfunc
Benjamin Otte [Thu, 9 Sep 2010 19:22:43 +0000 (21:22 +0200)]
spinbutton: Port to draw vfunc

13 years agoentry: Remove gtk_entry_is_drawable() checks when painting
Benjamin Otte [Fri, 3 Sep 2010 16:03:18 +0000 (18:03 +0200)]
entry: Remove gtk_entry_is_drawable() checks when painting

13 years agoentry: Port to draw signal
Benjamin Otte [Fri, 3 Sep 2010 15:53:08 +0000 (17:53 +0200)]
entry: Port to draw signal

13 years agoentry: Split else ifs into separate if statements
Benjamin Otte [Fri, 3 Sep 2010 15:25:26 +0000 (17:25 +0200)]
entry: Split else ifs into separate if statements

Preparation for the draw vfunc

13 years agoentry: Add bug reference to workaround
Benjamin Otte [Thu, 2 Sep 2010 22:17:35 +0000 (00:17 +0200)]
entry: Add bug reference to workaround

13 years agoAPI: Add gtk_cairo_should_draw_window()
Benjamin Otte [Thu, 2 Sep 2010 21:26:13 +0000 (23:26 +0200)]
API: Add gtk_cairo_should_draw_window()

See the function documentation for its purpose and the next commit(s)
for examples on how to use it.