summaryrefslogtreecommitdiff
path: root/libwnck
Commit message (Collapse)AuthorAgeFilesLines
* updated to a tango styled pixmapBaptiste Mille-Mathias2008-08-201-0/+0
| | | | | | | | | 2008-08-20 Baptiste Mille-Mathias <baptiste.millemathias@gmail.com> * libwnck/default_icon.png: updated to a tango styled pixmap svn path=/trunk/; revision=1645
* return TRUE when both list of windows are empty. Fix a bug where when theVincent Untz2008-06-111-3/+2
| | | | | | | | | | | | | 2008-06-11 Vincent Untz <vuntz@gnome.org> * libwnck/screen.c: (arrays_contain_same_windows): return TRUE when both list of windows are empty. Fix a bug where when the last window disappears, libwnck internals don't get updated and you still have a window in the window list, eg. See http://code.google.com/p/xmonad/issues/detail?id=195 Patch by Malebria <malebria@riseup.net> svn path=/trunk/; revision=1628
* Fix moving a window to an arbitrary workspace in viewport mode. Fix bugVincent Untz2008-03-191-5/+2
| | | | | | | | | | | | 2008-03-19 Vincent Untz <vuntz@gnome.org> Fix moving a window to an arbitrary workspace in viewport mode. Fix bug #520726. * libwnck/window-action-menu.c: (item_activated_callback): get the maths right. svn path=/trunk/; revision=1617
* Unstick windows when moving them in another workspace (viewport mode),Vincent Untz2008-03-191-2/+7
| | | | | | | | | | | | | | 2008-03-19 Vincent Untz <vuntz@gnome.org> Unstick windows when moving them in another workspace (viewport mode), else the windows are just outside the visible screen. Fix bug #520704. Patch by Travis Watkins <amaranth@ubuntu.com> * libwnck/window-action-menu.c: (item_activated_callback): well, do what I already described svn path=/trunk/; revision=1616
* List windows that demands attention in the tasklist when they're in theVincent Untz2008-03-191-1/+3
| | | | | | | | | | | | 2008-03-19 Vincent Untz <vuntz@gnome.org> List windows that demands attention in the tasklist when they're in the current workspace but they're not visible in the viewport. Fix bug #520124 * libwnck/tasklist.c: (wnck_task_state_changed): just do it svn path=/trunk/; revision=1615
* Fix crash on logout because of some race condition. Fix bug #517750Vincent Untz2008-03-191-15/+44
| | | | | | | | | | | | | | | | 2008-03-19 Vincent Untz <vuntz@gnome.org> Fix crash on logout because of some race condition. Fix bug #517750 * libwnck/pager.c: (wnck_pager_connect_window): use g_signal_connect() instead of g_signal_connect_object() since we'll disconnect the handlers (wnck_pager_disconnect_screen): disconnect signal handlers for all windows (wnck_pager_disconnect_window): helper function svn path=/trunk/; revision=1614
* fix wnck_window_set_geometry() (again). The top frame was not takenMikkel Kamstrup Erlandsen2008-03-031-1/+1
| | | | | | | | | | | 2008-03-04 Mikkel Kamstrup Erlandsen <kamstrup@cvs.gnome.org> * libwnck/window.c: (wnck_window_set_geometry): fix wnck_window_set_geometry() (again). The top frame was not taken correctly into account. This was only evident when aligning to a top panel or screen edge. Should close bug #518606. svn path=/trunk/; revision=1597
* fix wnck_window_set_geometry() to really work as intended, ie includingVincent Untz2008-03-031-0/+5
| | | | | | | | | | | | | 2008-03-03 Vincent Untz <vuntz@gnome.org> * libwnck/window.c: (wnck_window_set_geometry): fix wnck_window_set_geometry() to really work as intended, ie including decorations. The _NET_MOVERESIZE_WINDOW message do not include decorations. Fix part of bug #518606, patch by Mikkel Kamstrup Erlandsen <mikkel.kamstrup@gmail.com>, with feedback from Elijah & Vincent. svn path=/trunk/; revision=1596
* have the --help output translated. The strings were marked forVincent Untz2008-03-031-1/+7
| | | | | | | | | | | 2008-03-03 Vincent Untz <vuntz@gnome.org> * libwnck/wnckprop.c: (main): have the --help output translated. The strings were marked for translations before, but some steps were forgotten. Fix bug #518070 svn path=/trunk/; revision=1595
* don't push twice the error trap, pop it the second time! Should fix bugVincent Untz2008-02-191-1/+1
| | | | | | | | | | | 2008-02-20 Vincent Untz <vuntz@gnome.org> * libwnck/xutils.c: (_wnck_set_window_geometry): don't push twice the error trap, pop it the second time! Should fix bug #517570 (wnck_window_set_geometry() not working in some cases). svn path=/trunk/; revision=1579
* Make the pager always work in multiscreen environment. Fix bug #479959.Vincent Untz2008-01-211-1/+12
| | | | | | | | | | | | | | | | | | | | | 2008-01-21 Vincent Untz <vuntz@gnome.org> Make the pager always work in multiscreen environment. Fix bug #479959. Thanks go to David Sundqvist <bugzilla@dystopic.org> for the help in debugging this. * libwnck/pager.c: (_wnck_pager_set_screen): do nothing if the pager is not on a screen. Else, we might work on the default screen, which is bad in a multiscreen environment. (wnck_pager_set_layout_hint): do not assume that _wnck_pager_set_screen() worked. Someone can call this function before the pager has been added to a widget hierarchy, and so before we know the screen the pager will work on. (wnck_pager_set_orientation): document this specific case of failure (wnck_pager_set_n_rows): ditto svn path=/trunk/; revision=1556
* Rework again so that we also work with Xorg 6.8, which doesn't have .pcVincent Untz2007-11-131-2/+2
| | | | | | | | | | | | | | | | 2007-11-13 Vincent Untz <vuntz@gnome.org> * configure.in: * libwnck-1.0-uninstalled.pc.in: * libwnck-1.0.pc.in: * libwnck/Makefile.am: Rework again so that we also work with Xorg 6.8, which doesn't have .pc files. I'm sure it's a bit broken in a corner case for Xorg 6.8, but it should work anyway. Keep using .pc files when available. * doc/tmpl/window-action-menu.sgml: updated svn path=/trunk/; revision=1519
* don't make this function a define. We need the symbol for now, if we don'tVincent Untz2007-11-132-12/+18
| | | | | | | | | | 2007-11-13 Vincent Untz <vuntz@gnome.org> * libwnck/window-action-menu.[ch]: (wnck_create_window_action_menu): don't make this function a define. We need the symbol for now, if we don't want to break the ABI... svn path=/trunk/; revision=1518
* change _wnck_atom_get() and _wnck_atom_name() to be #define forVincent Untz2007-11-122-50/+2
| | | | | | | | | | 2007-11-12 Vincent Untz <vuntz@gnome.org> * libwnck/xutils.[ch]: change _wnck_atom_get() and _wnck_atom_name() to be #define for gdk_x11_get_xatom_by_name() and gdk_x11_get_xatom_name(). No need to duplicate what's GDK is doing. svn path=/trunk/; revision=1512
* Clean up the autotools and the pkg-config files. We now require a x11.pcVincent Untz2007-11-111-2/+2
| | | | | | | | | | | | | | | | | | 2007-11-12 Vincent Untz <vuntz@gnome.org> Clean up the autotools and the pkg-config files. We now require a x11.pc file, and optionally a xres.pc file. This might break on some systems with old X, but I'm not sure we still support those. Let's see if it breaks :-) (and fix bug #332264) * configure.in: use AC_MSG_CHECKING/AC_MSG_RESULT instead of echo'ing, remove old X libraries detection method and use pkg-config * libwnck/Makefile.am: remove useless X_LIBS * libwnck-1.0-uninstalled.pc.in: * libwnck-1.0.pc.in: add lots of Requires and Requires.private svn path=/trunk/; revision=1511
* Activate the window when the user drags and drops it quickly on itself.Vincent Untz2007-11-111-0/+45
| | | | | | | | | | | | | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> Activate the window when the user drags and drops it quickly on itself. "Quickly" is defined by gtk-double-click-time. Based on patch by Jan Niklas Hasse <jhasse@gmail.com> Fix bug #460403. * libwnck/tasklist.c: add a new drag_start_time field per tasklist (wnck_tasklist_init): initialize the new field (wnck_task_popup_menu): connect to drag_end (wnck_task_drag_begin): set drag_start_time too (wnck_task_drag_end): (new) reset drag_start_time to 0 (wnck_task_drag_data_received): if the found window is the same as the dragged one, then check if it was dropped quickly. If yes, then activate it and make the drag and drop a success (wnck_task_create_widgets): connect to drag end svn path=/trunk/; revision=1510
* Be more paranoid about the fact that the window of the WnckActionMenuVincent Untz2007-11-111-0/+8
| | | | | | | | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> Be more paranoid about the fact that the window of the WnckActionMenu might have been not set. This case can probably happen in bindings... * libwnck/window-action-menu.c: (wnck_action_menu_set_property): check that the window is really a WnckWindow (wnck_action_menu_constructor): handle the case and print a warning when the window has not been set * doc/libwnck-docs.sgml: add index of new symbols in 2.22 svn path=/trunk/; revision=1509
* remove useless include use wnck_action_menu_new() instead of deprecatedVincent Untz2007-11-112-3/+2
| | | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> * libwnck/pager.c: remove useless include * libwnck/tasklist.c: (wnck_task_popup_menu), (wnck_task_button_press_event): use wnck_action_menu_new() instead of deprecated wnck_create_window_action_menu() svn path=/trunk/; revision=1508
* Objectify window-action-menu.c so that we have a real WnckActionMenuVincent Untz2007-11-112-293/+441
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> Objectify window-action-menu.c so that we have a real WnckActionMenu widget. * doc/libwnck-docs.sgml: * doc/libwnck-sections.txt: * doc/libwnck.types: * doc/tmpl/window-action-menu.sgml: doc updates for the change * libwnck/window-action-menu.[ch]: (window_weak_notify), (get_action_menu), (item_activated_callback), (update_menu_state), (queue_update), (state_changed_callback), (actions_changed_callback), (workspace_changed_callback), (screen_workspace_callback), (viewports_changed_callback), (make_radio_menu_item), (make_check_menu_item), (make_menu_item), (refill_submenu_workspace), (refill_submenu_viewport), (wnck_action_menu_get_property), (wnck_action_menu_set_property), (wnck_action_menu_init), (wnck_action_menu_constructor), (wnck_action_menu_class_init), (wnck_action_menu_finalize), (wnck_action_menu_new): many changes, but nothing really interesting since it's only about making this an object. Deprecate wnck_create_window_action_menu() in favor of wnck_action_menu_new() svn path=/trunk/; revision=1507
* Change API doc to use Gets instead of Returns in the description of theVincent Untz2007-11-115-89/+89
| | | | | | | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> Change API doc to use Gets instead of Returns in the description of the functions. Fix bug #477847. * libwnck/application.c: * libwnck/class-group.c: * libwnck/screen.c: * libwnck/window.c: * libwnck/workspace.c: svn path=/trunk/; revision=1506
* Add a context for some strings. This is needed by French at least. Fix bugVincent Untz2007-11-111-8/+16
| | | | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> Add a context for some strings. This is needed by French at least. Fix bug #476512. * libwnck/wnckprop.c: (print_screen), (print_workspace), (print_application), (print_window): svn path=/trunk/; revision=1505
* remove dead conditions. Patch by Roland Bär <roland@verifysoft.de>. FixVincent Untz2007-11-111-6/+4
| | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> * libwnck/screen.c: (update_viewport_settings): remove dead conditions. Patch by Roland Bär <roland@verifysoft.de>. Fix bug #494077. svn path=/trunk/; revision=1504
* correctly initialize some variables. Patch by Roland BärVincent Untz2007-11-111-2/+3
| | | | | | | | | | 2007-11-11 Vincent Untz <vuntz@gnome.org> * libwnck/util.c: (wnck_pid_read_resource_usage_fill_cache): correctly initialize some variables. Patch by Roland Bär <roland@verifysoft.de>. Fix bug #494077. svn path=/trunk/; revision=1503
* Avoid crashing if the X Resource extension is not present. (#489087)Matthias Clasen2007-10-221-27/+36
| | | | | | | | | | 2007-10-22 Matthias Clasen <mclasen@redhat.com> * libwnck/util.c: Avoid crashing if the X Resource extension is not present. (#489087) svn path=/trunk/; revision=1493
* Better fix for bug #476299.Vincent Untz2007-10-152-10/+15
| | | | | | | | | | | | 2007-10-16 Vincent Untz <vuntz@gnome.org> Better fix for bug #476299. * libwnck/tasklist.c: (wnck_task_get_text): revert the change here * libwnck/util.c: (_wnck_util_sn_utf8_validator): new (_wnck_init): tell libsn to use the glib utf-8 validator svn path=/trunk/; revision=1485
* validate the strings coming from libsn so we're sure they're UTF-8. FixVincent Untz2007-10-151-1/+10
| | | | | | | | | | 2007-10-16 Vincent Untz <vuntz@gnome.org> * libwnck/tasklist.c: (wnck_task_get_text): validate the strings coming from libsn so we're sure they're UTF-8. Fix bug #476299. svn path=/trunk/; revision=1484
* always connect to the window events, even if the menu is not opened. WeVincent Untz2007-10-101-2/+2
| | | | | | | | | | 2007-10-10 Vincent Untz <vuntz@gnome.org> * libwnck/selector.c: (wnck_selector_window_opened): always connect to the window events, even if the menu is not opened. We want to know about the icon changes if the window becomes the active window, eg. svn path=/trunk/; revision=1483
* Add translator comments. Fixes bug #468320.Andre Klapper2007-08-212-3/+67
| | | | | | | | | | | 2007-08-21 Andre Klapper <a9016009@gmx.de> * libwnck/wnckprop.c: * libwnck/test-selector.c: Add translator comments. Fixes bug #468320. svn path=/trunk/; revision=1442
* remove weak pointers on fields in task structure before freeing task blockRay Strode2007-07-311-0/+4
| | | | | | | | | | 2007-07-30 Ray Strode <rstrode@redhat.com> * libwnck/tasklist.c (wnck_task_finalize): remove weak pointers on fields in task structure before freeing task block (bug 139080) svn path=/trunk/; revision=1424
* Fix typo in message (missing right parenthesis).Theppitak Karoonboonyanan2007-07-101-1/+1
| | | | | | | | | | | | 2007-07-10 Theppitak Karoonboonyanan <thep@linux.thai.net> * libwnck/wnckprop.c: (window_entries): Fix typo in message (missing right parenthesis). * po/th.po: Updated Thai translation. svn path=/trunk/; revision=1410
* use Deprecated:2.20: instead of just Deprecated:Vincent Untz2007-07-106-12/+13
| | | | | | | | | | | 2007-07-10 Vincent Untz <vuntz@gnome.org> * libwnck/pager.c: * libwcnk/screen.[ch]: * libwnck/tasklist.c: * libwnck/util.c: use Deprecated:2.20: instead of just Deprecated: svn path=/trunk/; revision=1409
* add myself add myself for the copyright of relevant filesVincent Untz2007-07-1022-0/+22
| | | | | | | | | 2007-07-10 Vincent Untz <vuntz@gnome.org> * AUTHORS: add myself * libwnck/*: add myself for the copyright of relevant files svn path=/trunk/; revision=1408
* reorganize a bit some part of the API documentationVincent Untz2007-07-101-7/+19
| | | | | | | | | | | | | 2007-07-10 Vincent Untz <vuntz@gnome.org> * libwnck/doc/libwnck-docs.sgml: * libwnck/doc/libwnck-sections.txt: * libwnck/doc/tmpl/misc.sgml: * libwnck/doc/tmpl/resource.sgml: * libwnck/libwnck/util.c: reorganize a bit some part of the API documentation svn path=/trunk/; revision=1407
* mention that it works as expected with viewport.Vincent Untz2007-07-101-0/+9
| | | | | | | | | 2007-07-10 Vincent Untz <vuntz@gnome.org> * tasklist.c: (wnck_tasklist_set_include_all_workspaces): mention that it works as expected with viewport. svn path=/trunk/; revision=1406
* Correctly draw workspaces with viewport in the pager. As a special case,Vincent Untz2007-07-101-17/+115
| | | | | | | | | | | | | | 2007-07-10 Vincent Untz <vuntz@gnome.org> Correctly draw workspaces with viewport in the pager. As a special case, when the width/height of the workspace allows to have a round number of viewports, draw the various viewports as if they were workspaces. * libwnck/pager.c: (wnck_pager_draw_workspace): add lot of code to handle the viewport case svn path=/trunk/; revision=1405
* Make the window action menu work with viewport, for our compiz friends.Vincent Untz2007-07-101-98/+382
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-10 Vincent Untz <vuntz@gnome.org> Make the window action menu work with viewport, for our compiz friends. This mode is active when there's only one workspace with a viewport. Fix part of bug #352383. * libwnck/window-action-menu.c: (item_activated_callback): make pin/unpin stick/unstick the window, make the switch workspace items work with viewport (update_menu_state): update for the viewport mode (viewports_changed_callback): if the viewport has changed, update the menu (get_workspace_name_with_accel): add a comment to keep in sync with strings for the viewport (refill_submenu_workspace): remove useless stuff (refill_submenu_viewport): new (wnck_create_window_action_menu): update API doc to tell about the new behavior for viewport, rename the pin/unpin to have the right name for the right item, connect to the viewports_changed signal svn path=/trunk/; revision=1404
* Make the window action menu work when more things change.Vincent Untz2007-07-081-96/+164
| | | | | | | | | | | | | | | | | | | | | 2007-07-08 Vincent Untz <vuntz@gnome.org> Make the window action menu work when more things change. * libwnck/window-action-menu.c: (update_menu_state): hide/show left/right/up/down items, refill the workspace submenu when needed, hide the unpin item and popdown the workspace submenu when there is only one workspace (workspace_changed_callback): new, update the menu when the window is on another workspace (screen_workspace_callback): new, update the menu when a workspace is created/destroyed (refill_submenu): new, from code from wnck_create_window_action_menu() (wnck_create_window_action_menu): always create left/right/up/down items, don't create the workspace submenu here, connect to workspace_changed, workspace_created and workspace_destroyed svn path=/trunk/; revision=1399
* Add wnck_window_is_below()/make_below()/unmake_below() Fix bug #453982.Vincent Untz2007-07-073-4/+90
| | | | | | | | | | | | | | | | | | | | | 2007-07-07 Vincent Untz <vuntz@gnome.org> Add wnck_window_is_below()/make_below()/unmake_below() Fix bug #453982. * doc/libwnck-sections.txt: * doc/tmpl/window.sgml: update doc * libwnck/window.c: (wnck_window_init): init new field (wnck_window_class_init): update doc (wnck_window_is_below), (wnck_window_make_below), (wnck_window_unmake_below): new (update_state): handle below * libwnck/window.h: updated * libwnck/wnckprop.c: add --make-below and --unmake-below (validate_options), (update_window): handle new options (print_window): print below state, and add FIXME svn path=/trunk/; revision=1395
* Keep a list of tasks that don't belong to any class group. Fix bugVincent Untz2007-07-061-0/+41
| | | | | | | | | | | | | | | | | | | | 2007-07-07 Vincent Untz <vuntz@gnome.org> Keep a list of tasks that don't belong to any class group. Fix bug #453777. And complete fix for bug #165075. * libwnck/tasklist.c: (wnck_tasklist_init): initialize new windows_without_class_group field. (wnck_tasklist_finalize): add new assertion (wnck_tasklist_size_allocate): append the tasks from windows_without_class_group to the list of visible tasks (wnck_tasklist_remove): remove the task from windows_without_class_group when it's needed (wnck_tasklist_free_tasks): add assertion (wnck_tasklist_update_lists): if there's no class group for the window, add it to windows_without_class_group svn path=/trunk/; revision=1394
* add assertion to make it clear how this works. Makes it possible to closeVincent Untz2007-06-291-0/+2
| | | | | | | | | | | 2007-06-29 Vincent Untz <vuntz@gnome.org> * libwnck/application.c: (update_name): add assertion to make it clear how this works. Makes it possible to close bug #77942, since people were not understanding this right. svn path=/trunk/; revision=1383
* Fix bug #308552.Vincent Untz2007-06-261-43/+53
| | | | | | | | | | | | | | | 2007-06-26 Vincent Untz <vuntz@gnome.org> Fix bug #308552. * libwnck/tasklist.c: (wnck_tasklist_size_request): some clean up, and add a comment about wnck_task_size_allocated() (wnck_task_size_allocated): new, hide widget the image or label in the task button if the width is really small (wnck_task_create_widgets): connect to the size-allocate signal of the buttons svn path=/trunk/; revision=1379
* updated (wnck_tasklist_set_minimum_width),Vincent Untz2007-06-262-40/+18
| | | | | | | | | | | | | | 2007-06-26 Vincent Untz <vuntz@gnome.org> * libwnck/tasklist.[ch]: (wnck_tasklist_init): updated (wnck_tasklist_set_minimum_width), (wnck_tasklist_get_minimum_width), (wnck_tasklist_set_minimum_height), (wnck_tasklist_get_minimum_height): deprecate those functions, since the new size algorithm makes them more or less useless now. So they don't do anything anymore. svn path=/trunk/; revision=1378
* Fix size of buttons in tasklist changing with the text. Fix bug #310809.Vincent Untz2007-06-261-12/+32
| | | | | | | | | | | | | | | | | | 2007-06-26 Vincent Untz <vuntz@gnome.org> Fix size of buttons in tasklist changing with the text. Fix bug #310809. * libwnck/tasklist.c: (wnck_tasklist_get_button_size): new, get the ideal button size based on the icon size and a maximum number of characters for the text (wnck_tasklist_size_request): use wnck_tasklist_get_button_size() for the maximum button width, ignore the minimum width/height since they're useless and making things more complex than they should be, use the maximum size hint for the requested width (wnck_task_create_widgets): don't call gtk_label_set_max_width_chars() svn path=/trunk/; revision=1377
* call _wnck_error_trap_push() and _wnck_error_trap_pop() (mainly for theVincent Untz2007-06-243-30/+112
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-25 Vincent Untz <vuntz@gnome.org> * libwnck/screen.c: (wnck_screen_change_workspace_count): call _wnck_error_trap_push() and _wnck_error_trap_pop() (mainly for the XSync() call in _wnck_error_trap_push()) * libwnck/xutils.c: (_wnck_close), (_wnck_keyboard_move), (_wnck_keyboard_size), (_wnck_change_state), (_wnck_change_workspace), (_wnck_activate), (_wnck_activate_workspace), (_wnck_change_viewport), (_wnck_toggle_showing_desktop), (_wnck_gdk_pixbuf_get_from_pixmap), (_wnck_set_window_geometry), (_wnck_free_layout_manager), (_wnck_try_desktop_layout_manager), (_wnck_release_desktop_layout_manager): ditto. This is needed for wnckprop to correctly work. * libwnck/wnckprop.c: (timestamp_predicate), (get_xserver_timestamp): new, stolen from xutils.c (update_screen): we don't need the timestamp here (update_workspace): get a real xserver timestamp (update_window): ditto svn path=/trunk/; revision=1375
* make "wnckprop --list" (and others action on the screen without a --screenVincent Untz2007-06-241-1/+8
| | | | | | | | | | 2007-06-24 Vincent Untz <vuntz@gnome.org> * libwnck/wnckprop.c: (validate_options): make "wnckprop --list" (and others action on the screen without a --screen option) work again, instead of having it force the user to select a window svn path=/trunk/; revision=1374
* fix the doc API for wnck_application_get_icon() andVincent Untz2007-06-241-6/+6
| | | | | | | | | 2007-06-24 Vincent Untz <vuntz@gnome.org> * libwnck/application.c: fix the doc API for wnck_application_get_icon() and wnck_application_get_mini_icon() svn path=/trunk/; revision=1373
* Make it possible to print information about a class group or anVincent Untz2007-06-241-53/+206
| | | | | | | | | | | | | | | | | | | | | | | | 2007-06-24 Vincent Untz <vuntz@gnome.org> Make it possible to print information about a class group or an application by selecting a window. Also, if no argument is specified for --screen or --workspace, use the default screen or the active workspace. * libwnck/wnckprop.c: force no conflict resolution for --activate (used in --workspace and --window) (option_parse): new, we need this since we have optional arguments for some options (validate_options): updated (handle_button_press_event): updated, since we'll return to main() which will handle everything (main): updated to use the active workspace if no number is specified after --workspace, and to let the user select a window for a class group or an application * doc/tmpl/workspace.sgml: forgot to update this svn path=/trunk/; revision=1372
* add wnck_workspace_get_screen() API, for consistencyVincent Untz2007-06-243-164/+400
| | | | | | | | | | | | | | | 2007-06-24 Vincent Untz <vuntz@gnome.org> * doc/libwnck-sections.txt: * libwnck/workspace.[ch]: (wnck_workspace_get_screen): add wnck_workspace_get_screen() API, for consistency * libwnck/wnckprop.c: add parameters to print information about a class group and an application, make --list list windows for a screen, workspace, class group or application. This removes --list-windows and friends. svn path=/trunk/; revision=1371
* updated to use wnck_workspace_get_neighbor()Vincent Untz2007-06-241-27/+17
| | | | | | | | | | | | 2007-06-24 Vincent Untz <vuntz@gnome.org> * libwnck/window-action-menu.c: (item_activated_callback): updated to use wnck_workspace_get_neighbor() (wnck_create_window_action_menu): don't use wnck_screen_calc_workspace_layout(), and just check if neighbors exist with wnck_workspace_get_neighbor() svn path=/trunk/; revision=1369
* Add new API to get layout information about a workspace. Also add a modeVincent Untz2007-06-245-123/+552
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-24 Vincent Untz <vuntz@gnome.org> Add new API to get layout information about a workspace. Also add a mode to wnckprop to interact with workspaces. * libwnck/workspace.[ch]: (wnck_workspace_get_layout_row), (wnck_workspace_get_layout_column), (wnck_workspace_get_neighbor): 3 new API, that are useful for knowing more about the layout * libwnck/screen.[ch]: (wnck_screen_get_workspace_neighbor): deprecate this function, wnck_workspace_get_neighbor() is simpler and should be used instead (update_workspace_layout): if the number of rows (or columns) is not set on the screen, compute it using the number of columns (or rows) and the number of workspaces * libwnck/wnckprop.c: (set_mode): new (validate_options): updated (update_screen_props): remove the part about workspace activation (update_space_props): new (print_screen_props): indentation fixes (print_space_props): new (handle_button_press_event): updated (main): updated svn path=/trunk/; revision=1368