Commit Graph

20229 Commits

Author SHA1 Message Date
Cody Russell
170d8bf584 Use RGBA by default, not just on GtkWindow 2010-04-16 14:17:51 -05:00
Cody Russell
d2458cc41a extents WIP 2010-04-16 14:17:51 -05:00
Cody Russell
acc1f888ac Make the window's popup more useful, with min/max/close features at least 2010-04-16 14:17:51 -05:00
Cody Russell
e16f97df03 small fix 2010-04-16 14:17:51 -05:00
Cody Russell
7e174a8c4e cursor management changes 2010-04-16 14:17:51 -05:00
Cody Russell
a571b168d7 add gdk_window_get_cursor() 2010-04-16 14:17:51 -05:00
Cody Russell
3fbf650536 remove oops :) 2010-04-16 14:17:51 -05:00
Cody Russell
be24e12939 popup menu when clicking on the title icon 2010-04-16 14:17:51 -05:00
Cody Russell
eb661febec basic right-click menu support 2010-04-16 14:17:51 -05:00
Cody Russell
1d61421cbe double-click toggles maximize window 2010-04-16 14:17:51 -05:00
Cody Russell
860b49cf51 handle PROP_DISABLE_CLIENT_SIDE_DECORATIONS in {get,set}_property methods 2010-04-16 14:17:51 -05:00
Cody Russell
ce5a7d4cfb remove gtk_window_disable_client_side_decorations function, add construct-only property 2010-04-16 14:17:51 -05:00
Cody Russell
9ccc8fa2ee remove gtk_window_get_client_side_decorations() 2010-04-16 14:17:51 -05:00
Matthias Clasen
315bf62ec9 Ignore double-clicks 2010-04-16 14:17:51 -05:00
Matthias Clasen
f44c76de5c Implement RTL flipping for window controls 2010-04-16 14:17:51 -05:00
Matthias Clasen
67c79563f3 Respect geometry hints
Only set cursors and start resizing if the geometry hints allow it.
Allow to 'shake loose' maximized windows.
2010-04-16 14:17:51 -05:00
Matthias Clasen
330d760a2d Redo region handling
Rewrite the region determination to be more symmetric. And don't
constantly set cursors.
2010-04-16 14:17:51 -05:00
Matthias Clasen
6cb831b9ed Make resize handles larger
There is now a ::decoration-resize-handle style property to control
the size of these handles; also clean up some confusion where the old
window->frame_width was used.
2010-04-16 14:17:51 -05:00
Cody Russell
4ef1a16536 remove decoration-button-size and ecoration-button-y-offset properties 2010-04-16 14:17:51 -05:00
Cody Russell
91b255034a ellipsize client-side title labels 2010-04-16 14:17:51 -05:00
Cody Russell
d65909b168 change top/left/right/bottom properties to be just one border width property 2010-04-16 14:17:51 -05:00
Matthias Clasen
713996c69d Make switching from and to csd work 2010-04-16 14:17:51 -05:00
Matthias Clasen
1ed0ac92bf Add focus color
Redraw window frames on focus in and focus out and make
focused windows use the selection color for their frame.
2010-04-16 14:17:50 -05:00
Matthias Clasen
d2dae1b01d Toggle the max button image
Show a different image in maximized state; this is common in window
manager themes.
2010-04-16 14:17:50 -05:00
Cody Russell
e13f21b458 avoid calling is_client_side_decorated() multiple times in one function 2010-04-16 14:17:50 -05:00
Cody Russell
80979520e3 gtk_window_button_press_event() return FALSE at the end 2010-04-16 14:17:50 -05:00
Cody Russell
e184fa85bf unset GTK_CAN_FOCUS flag on min/max/close buttons 2010-04-16 14:17:50 -05:00
Cody Russell
e173e3f72b tooltip text on min/max/close buttons 2010-04-16 14:17:50 -05:00
Cody Russell
aa0f5fb87d fix oops 2010-04-16 14:17:50 -05:00
Cody Russell
d4c721a9e1 remove test code again 2010-04-16 14:17:50 -05:00
Cody Russell
cd5ede55c9 add support for window icons 2010-04-16 14:17:50 -05:00
Cody Russell
fe8ad4d746 hide and show min/max buttons based on GdmWMDecorations value 2010-04-16 14:17:50 -05:00
Cody Russell
ea7b05024e check is_client_side_decorated() in ensure_title_box() 2010-04-16 14:17:50 -05:00
Cody Russell
f0c0032171 only update mouse cursor to non-arrow if window is resizable 2010-04-16 14:17:50 -05:00
Cody Russell
f5c141d746 no need for toggle logic in min_button_clicked() 2010-04-16 14:17:50 -05:00
Cody Russell
c59a059551 remove some temporary code 2010-04-16 14:17:50 -05:00
Cody Russell
a3ffbcacba add widget names so they can be accessed from the theme 2010-04-16 14:17:50 -05:00
Cody Russell
4bba6ac660 fix title setting bug 2010-04-16 14:17:50 -05:00
Cody Russell
ceec85b195 fix GtkPlug to always force cs-decorations off 2010-04-16 14:17:50 -05:00
Cody Russell
0358e0d7f7 remove the rgba stuff for now for firefox; temp hack for is_client_side_decorated 2010-04-16 14:17:50 -05:00
Cody Russell
b1ad5235b9 check for both ->client_side_decorated && ->decorated; motion/click only when not maximized 2010-04-16 14:17:50 -05:00
Cody Russell
ad24eb34d5 remove unnecessary change 2010-04-16 14:17:50 -05:00
Cody Russell
3cb8bc456b allocate bin.child's x-position and height by MAX(title height, box height) 2010-04-16 14:17:50 -05:00
Cody Russell
72c57c1b64 fix a mistake in gtkwindow.h 2010-04-16 14:17:50 -05:00
Cody Russell
52276a1402 add container::remove interface 2010-04-16 14:17:50 -05:00
Cody Russell
c284f256c7 button event handlers 2010-04-16 14:17:50 -05:00
Cody Russell
4a3a775aac add buttons 2010-04-16 14:17:50 -05:00
Cody Russell
842e7a216e remove frame event stuff 2010-04-16 14:17:50 -05:00
Cody Russell
cab5f6e0d8 cursor support 2010-04-16 14:17:50 -05:00
Cody Russell
0e6e52c19b remove compute_child_allocation from GtkWindowClass 2010-04-16 14:17:50 -05:00