Gnome2-Wnck-0.16/0000755000175000017500000000000010767215015013451 5ustar torstentorstenGnome2-Wnck-0.16/xs/0000755000175000017500000000000010767215015014103 5ustar torstentorstenGnome2-Wnck-0.16/xs/Wnck.xs0000644000175000017500000000270210106210451015344 0ustar torstentorsten/* * Copyright (C) 2003-2004 by the gtk2-perl team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/xs/Wnck.xs,v 1.8 2004/08/10 18:17:13 kaffeetisch Exp $ */ #include "wnck2perl.h" MODULE = Gnome2::Wnck PACKAGE = Gnome2::Wnck =for object Gnome2::Wnck::main =cut BOOT: #include "register.xsh" #include "boot.xsh" void GET_VERSION_INFO (class) PPCODE: EXTEND (SP, 3); PUSHs (sv_2mortal (newSViv (WNCK_MAJOR_VERSION))); PUSHs (sv_2mortal (newSViv (WNCK_MINOR_VERSION))); PUSHs (sv_2mortal (newSViv (WNCK_MICRO_VERSION))); PERL_UNUSED_VAR (ax); bool CHECK_VERSION (class, major, minor, micro) int major int minor int micro CODE: RETVAL = WNCK_CHECK_VERSION (major, minor, micro); OUTPUT: RETVAL Gnome2-Wnck-0.16/xs/WnckPager.xs0000644000175000017500000000420210654436036016341 0ustar torstentorsten/* * Copyright (C) 2003-2004 by the gtk2-perl team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/xs/WnckPager.xs,v 1.7 2007/08/02 20:15:43 kaffeetisch Exp $ */ #include "wnck2perl.h" MODULE = Gnome2::Wnck::Pager PACKAGE = Gnome2::Wnck::Pager PREFIX = wnck_pager_ ## GtkWidget* wnck_pager_new (WnckScreen *screen) GtkWidget* wnck_pager_new (class, screen) WnckScreen *screen C_ARGS: screen ## void wnck_pager_set_screen (WnckPager *pager, WnckScreen *screen) void wnck_pager_set_screen (pager, screen) WnckPager *pager WnckScreen *screen ## gboolean wnck_pager_set_orientation (WnckPager *pager, GtkOrientation orientation) gboolean wnck_pager_set_orientation (pager, orientation) WnckPager *pager GtkOrientation orientation ## void wnck_pager_set_n_rows (WnckPager *pager, int n_rows) void wnck_pager_set_n_rows (pager, n_rows) WnckPager *pager int n_rows ## void wnck_pager_set_display_mode (WnckPager *pager, WnckPagerDisplayMode mode) void wnck_pager_set_display_mode (pager, mode) WnckPager *pager WnckPagerDisplayMode mode ## void wnck_pager_set_show_all (WnckPager *pager, gboolean show_all_workspaces) void wnck_pager_set_show_all (pager, show_all_workspaces) WnckPager *pager gboolean show_all_workspaces ## void wnck_pager_set_shadow_type (WnckPager *pager, GtkShadowType shadow_type) void wnck_pager_set_shadow_type (pager, shadow_type) WnckPager *pager GtkShadowType shadow_type Gnome2-Wnck-0.16/xs/WnckWorkspace.xs0000644000175000017500000000471710654436036017254 0ustar torstentorsten/* * Copyright (C) 2003 by the gtk2-perl team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/xs/WnckWorkspace.xs,v 1.8 2007/08/02 20:15:43 kaffeetisch Exp $ */ #include "wnck2perl.h" MODULE = Gnome2::Wnck::Workspace PACKAGE = Gnome2::Wnck::Workspace PREFIX = wnck_workspace_ ## int wnck_workspace_get_number (WnckWorkspace *space) int wnck_workspace_get_number (space) WnckWorkspace *space ## const char* wnck_workspace_get_name (WnckWorkspace *space) const char* wnck_workspace_get_name (space) WnckWorkspace *space ## void wnck_workspace_change_name (WnckWorkspace *space, const char *name) void wnck_workspace_change_name (space, name) WnckWorkspace *space const char *name ## void wnck_workspace_activate (WnckWorkspace *space, guint32 timestamp) void wnck_workspace_activate (space, timestamp) WnckWorkspace *space guint32 timestamp ## int wnck_workspace_get_width (WnckWorkspace *space) int wnck_workspace_get_width (space) WnckWorkspace *space ## int wnck_workspace_get_height (WnckWorkspace *space) int wnck_workspace_get_height (space) WnckWorkspace *space ## int wnck_workspace_get_viewport_x (WnckWorkspace *space) int wnck_workspace_get_viewport_x (space) WnckWorkspace *space ## int wnck_workspace_get_viewport_y (WnckWorkspace *space) int wnck_workspace_get_viewport_y (space) WnckWorkspace *space ## gboolean wnck_workspace_is_virtual (WnckWorkspace *space) gboolean wnck_workspace_is_virtual (space) WnckWorkspace *space WnckScreen* wnck_workspace_get_screen (WnckWorkspace *space); int wnck_workspace_get_layout_row (WnckWorkspace *space); int wnck_workspace_get_layout_column (WnckWorkspace *space); WnckWorkspace_ornull* wnck_workspace_get_neighbor (WnckWorkspace *space, WnckMotionDirection direction); Gnome2-Wnck-0.16/xs/WnckSelector.xs0000644000175000017500000000214710654436036017071 0ustar torstentorsten/* * Copyright (C) 2006 by the gtk2-perl team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/xs/WnckSelector.xs,v 1.2 2007/08/02 20:15:43 kaffeetisch Exp $ */ #include "wnck2perl.h" MODULE = Gnome2::Wnck::Selector PACKAGE = Gnome2::Wnck::Selector PREFIX = wnck_selector_ # GtkWidget *wnck_selector_new (void); GtkWidget *wnck_selector_new (class) C_ARGS: /* void */ Gnome2-Wnck-0.16/xs/WnckTasklist.xs0000644000175000017500000001136710654436036017113 0ustar torstentorsten/* * Copyright (C) 2003-2004 by the gtk2-perl team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/xs/WnckTasklist.xs,v 1.10 2007/08/02 20:15:43 kaffeetisch Exp $ */ #include "wnck2perl.h" static GPerlCallback * wnck2perl_load_icon_function_create (SV *func, SV *data) { GType param_types [] = { G_TYPE_STRING, G_TYPE_INT, G_TYPE_UINT }; return gperl_callback_new (func, data, G_N_ELEMENTS (param_types), param_types, GDK_TYPE_PIXBUF); } GdkPixbuf* wnck2perl_load_icon_function (const char *icon_name, int size, unsigned int flags, gpointer data) { GPerlCallback *callback = (GPerlCallback*) data; GValue value = {0,}; GdkPixbuf* retval; g_value_init (&value, callback->return_type); gperl_callback_invoke (callback, &value, icon_name, size, flags); retval = g_value_get_object (&value); g_value_unset (&value); return retval; } MODULE = Gnome2::Wnck::Tasklist PACKAGE = Gnome2::Wnck::Tasklist PREFIX = wnck_tasklist_ ## GtkWidget *wnck_tasklist_new (WnckScreen *screen) GtkWidget * wnck_tasklist_new (class, screen) WnckScreen *screen C_ARGS: screen ## void wnck_tasklist_set_screen (WnckTasklist *tasklist, WnckScreen *screen) void wnck_tasklist_set_screen (tasklist, screen) WnckTasklist *tasklist WnckScreen *screen =for apidoc Returns a list of integers. =cut ## const int *wnck_tasklist_get_size_hint_list (WnckTasklist *tasklist, int *n_elements) void wnck_tasklist_get_size_hint_list (tasklist) WnckTasklist *tasklist PREINIT: const int *list; int n_elements, i; PPCODE: list = wnck_tasklist_get_size_hint_list (tasklist, &n_elements); EXTEND (sp, n_elements); for (i = 0; i < n_elements; i++) PUSHs (sv_2mortal (newSViv (list[i]))); ## void wnck_tasklist_set_grouping (WnckTasklist *tasklist, WnckTasklistGroupingType grouping) void wnck_tasklist_set_grouping (tasklist, grouping) WnckTasklist *tasklist WnckTasklistGroupingType grouping ## void wnck_tasklist_set_switch_workspace_on_unminimize (WnckTasklist *tasklist, gboolean switch_workspace_on_unminimize) void wnck_tasklist_set_switch_workspace_on_unminimize (tasklist, switch_workspace_on_unminimize) WnckTasklist *tasklist gboolean switch_workspace_on_unminimize ## void wnck_tasklist_set_grouping_limit (WnckTasklist *tasklist, gint limit) void wnck_tasklist_set_grouping_limit (tasklist, limit) WnckTasklist *tasklist gint limit ## void wnck_tasklist_set_include_all_workspaces (WnckTasklist *tasklist, gboolean include_all_workspaces) void wnck_tasklist_set_include_all_workspaces (tasklist, include_all_workspaces) WnckTasklist *tasklist gboolean include_all_workspaces ## void wnck_tasklist_set_minimum_width (WnckTasklist *tasklist, gint size) void wnck_tasklist_set_minimum_width (tasklist, size) WnckTasklist *tasklist gint size ## gint wnck_tasklist_get_minimum_width (WnckTasklist *tasklist) gint wnck_tasklist_get_minimum_width (tasklist) WnckTasklist *tasklist ## void wnck_tasklist_set_minimum_height (WnckTasklist *tasklist, gint size) void wnck_tasklist_set_minimum_height (tasklist, size) WnckTasklist *tasklist gint size ## gint wnck_tasklist_get_minimum_height (WnckTasklist *tasklist) gint wnck_tasklist_get_minimum_height (tasklist) WnckTasklist *tasklist ## void wnck_tasklist_set_icon_loader (WnckTasklist *tasklist, WnckLoadIconFunction load_icon_func, void *data, GDestroyNotify free_data_func) void wnck_tasklist_set_icon_loader (tasklist, func, data=NULL) WnckTasklist *tasklist SV *func SV *data PREINIT: GPerlCallback *callback; CODE: callback = wnck2perl_load_icon_function_create (func, data); wnck_tasklist_set_icon_loader (tasklist, wnck2perl_load_icon_function, callback, (GDestroyNotify) gperl_callback_destroy); ## void wnck_tasklist_set_button_relief (WnckTasklist *tasklist, GtkReliefStyle relief) void wnck_tasklist_set_button_relief (tasklist, relief) WnckTasklist *tasklist GtkReliefStyle relief Gnome2-Wnck-0.16/xs/WnckWindow.xs0000644000175000017500000002506110654436036016560 0ustar torstentorsten/* * Copyright (C) 2003-2004 by the gtk2-perl team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/xs/WnckWindow.xs,v 1.19 2007/08/02 20:15:43 kaffeetisch Exp $ */ #include "wnck2perl.h" MODULE = Gnome2::Wnck::Window PACKAGE = Gnome2::Wnck::Window PREFIX = wnck_window_ ## WnckWindow* wnck_window_get (gulong xwindow) WnckWindow* wnck_window_get (class, xwindow) gulong xwindow C_ARGS: xwindow ## WnckScreen* wnck_window_get_screen (WnckWindow *window) WnckScreen* wnck_window_get_screen (window) WnckWindow *window ## const char* wnck_window_get_name (WnckWindow *window) const char* wnck_window_get_name (window) WnckWindow *window ## const char* wnck_window_get_icon_name (WnckWindow *window) const char* wnck_window_get_icon_name (window) WnckWindow *window ## WnckApplication* wnck_window_get_application (WnckWindow *window) WnckApplication* wnck_window_get_application (window) WnckWindow *window ## gulong wnck_window_get_group_leader (WnckWindow *window) gulong wnck_window_get_group_leader (window) WnckWindow *window ## gulong wnck_window_get_xid (WnckWindow *window) gulong wnck_window_get_xid (window) WnckWindow *window ## const char* wnck_window_get_session_id (WnckWindow *window) const char* wnck_window_get_session_id (window) WnckWindow *window ## const char* wnck_window_get_session_id_utf8 (WnckWindow *window) const char* wnck_window_get_session_id_utf8 (window) WnckWindow *window ## int wnck_window_get_pid (WnckWindow *window) int wnck_window_get_pid (window) WnckWindow *window ## gboolean wnck_window_is_minimized (WnckWindow *window) gboolean wnck_window_is_minimized (window) WnckWindow *window ## gboolean wnck_window_is_maximized_horizontally (WnckWindow *window) gboolean wnck_window_is_maximized_horizontally (window) WnckWindow *window ## gboolean wnck_window_is_maximized_vertically (WnckWindow *window) gboolean wnck_window_is_maximized_vertically (window) WnckWindow *window ## gboolean wnck_window_is_maximized (WnckWindow *window) gboolean wnck_window_is_maximized (window) WnckWindow *window ## gboolean wnck_window_is_shaded (WnckWindow *window) gboolean wnck_window_is_shaded (window) WnckWindow *window ## gboolean wnck_window_is_skip_pager (WnckWindow *window) gboolean wnck_window_is_skip_pager (window) WnckWindow *window ## gboolean wnck_window_is_skip_tasklist (WnckWindow *window) gboolean wnck_window_is_skip_tasklist (window) WnckWindow *window ## gboolean wnck_window_is_sticky (WnckWindow *window) gboolean wnck_window_is_sticky (window) WnckWindow *window ## void wnck_window_set_skip_pager (WnckWindow *window, gboolean skip) void wnck_window_set_skip_pager (window, skip) WnckWindow *window gboolean skip ## void wnck_window_set_skip_tasklist (WnckWindow *window, gboolean skip) void wnck_window_set_skip_tasklist (window, skip) WnckWindow *window gboolean skip ## void wnck_window_close (WnckWindow *window, guint32 timestamp) void wnck_window_close (window, timestamp) WnckWindow *window guint32 timestamp ## void wnck_window_minimize (WnckWindow *window) void wnck_window_minimize (window) WnckWindow *window ## void wnck_window_unminimize (WnckWindow *window, guint32 timestamp) void wnck_window_unminimize (window, timestamp) WnckWindow *window guint32 timestamp ## void wnck_window_maximize (WnckWindow *window) void wnck_window_maximize (window) WnckWindow *window ## void wnck_window_unmaximize (WnckWindow *window) void wnck_window_unmaximize (window) WnckWindow *window ## void wnck_window_maximize_horizontally (WnckWindow *window) void wnck_window_maximize_horizontally (window) WnckWindow *window ## void wnck_window_unmaximize_horizontally (WnckWindow *window) void wnck_window_unmaximize_horizontally (window) WnckWindow *window ## void wnck_window_maximize_vertically (WnckWindow *window) void wnck_window_maximize_vertically (window) WnckWindow *window ## void wnck_window_unmaximize_vertically (WnckWindow *window) void wnck_window_unmaximize_vertically (window) WnckWindow *window ## void wnck_window_shade (WnckWindow *window) void wnck_window_shade (window) WnckWindow *window ## void wnck_window_unshade (WnckWindow *window) void wnck_window_unshade (window) WnckWindow *window ## void wnck_window_stick (WnckWindow *window) void wnck_window_stick (window) WnckWindow *window ## void wnck_window_unstick (WnckWindow *window) void wnck_window_unstick (window) WnckWindow *window ## void wnck_window_keyboard_move (WnckWindow *window) void wnck_window_keyboard_move (window) WnckWindow *window ## void wnck_window_keyboard_size (WnckWindow *window) void wnck_window_keyboard_size (window) WnckWindow *window ## WnckWorkspace* wnck_window_get_workspace (WnckWindow *window) WnckWorkspace* wnck_window_get_workspace (window) WnckWindow *window ## void wnck_window_move_to_workspace (WnckWindow *window, WnckWorkspace *space) void wnck_window_move_to_workspace (window, space) WnckWindow *window WnckWorkspace *space ## gboolean wnck_window_is_pinned (WnckWindow *window) gboolean wnck_window_is_pinned (window) WnckWindow *window ## void wnck_window_pin (WnckWindow *window) void wnck_window_pin (window) WnckWindow *window ## void wnck_window_unpin (WnckWindow *window) void wnck_window_unpin (window) WnckWindow *window ## void wnck_window_activate (WnckWindow *window, guint32 timestamp) void wnck_window_activate (window, timestamp) WnckWindow *window guint32 timestamp ## gboolean wnck_window_is_active (WnckWindow *window) gboolean wnck_window_is_active (window) WnckWindow *window ## void wnck_window_activate_transient (WnckWindow *window, guint32 timestamp) void wnck_window_activate_transient (window, timestamp) WnckWindow *window guint32 timestamp ## GdkPixbuf* wnck_window_get_icon (WnckWindow *window) GdkPixbuf* wnck_window_get_icon (window) WnckWindow *window ## GdkPixbuf* wnck_window_get_mini_icon (WnckWindow *window) GdkPixbuf* wnck_window_get_mini_icon (window) WnckWindow *window ## gboolean wnck_window_get_icon_is_fallback (WnckWindow *window) gboolean wnck_window_get_icon_is_fallback (window) WnckWindow *window ## void wnck_window_set_icon_geometry (WnckWindow *window, int x, int y, int width, int height) void wnck_window_set_icon_geometry (window, x, y, width, height) WnckWindow *window int x int y int width int height ## WnckWindowActions wnck_window_get_actions (WnckWindow *window) WnckWindowActions wnck_window_get_actions (window) WnckWindow *window ## WnckWindowState wnck_window_get_state (WnckWindow *window) WnckWindowState wnck_window_get_state (window) WnckWindow *window ## void wnck_window_get_geometry (WnckWindow *window, int *xp, int *yp, int *widthp, int *heightp) void wnck_window_get_geometry (WnckWindow *window, OUTLIST int xp, OUTLIST int yp, OUTLIST int widthp, OUTLIST int heightp) void wnck_window_set_geometry (WnckWindow *window, WnckWindowGravity gravity, WnckWindowMoveResizeMask geometry_mask, int x, int y, int width, int height); ## gboolean wnck_window_is_visible_on_workspace (WnckWindow *window, WnckWorkspace *workspace) gboolean wnck_window_is_visible_on_workspace (window, workspace) WnckWindow *window WnckWorkspace *workspace ## gboolean wnck_window_is_on_workspace (WnckWindow *window, WnckWorkspace *workspace) gboolean wnck_window_is_on_workspace (window, workspace) WnckWindow *window WnckWorkspace *workspace ## gboolean wnck_window_is_in_viewport (WnckWindow *window, WnckWorkspace *workspace) gboolean wnck_window_is_in_viewport (window, workspace) WnckWindow *window WnckWorkspace *workspace ## WnckClassGroup *wnck_window_get_class_group (WnckWindow *window) WnckClassGroup * wnck_window_get_class_group (window) WnckWindow *window ## WnckWindowType wnck_window_get_window_type (WnckWindow *window) WnckWindowType wnck_window_get_window_type (window) WnckWindow *window ## gboolean wnck_window_is_fullscreen (WnckWindow *window) gboolean wnck_window_is_fullscreen (window) WnckWindow *window ## void wnck_window_set_fullscreen (WnckWindow *window, gboolean fullscreen) void wnck_window_set_fullscreen (window, fullscreen) WnckWindow *window gboolean fullscreen ## gboolean wnck_window_is_most_recently_activated (WnckWindow *window) gboolean wnck_window_is_most_recently_activated (window) WnckWindow *window ## gint wnck_window_get_sort_order (WnckWindow *window) gint wnck_window_get_sort_order (window) WnckWindow *window ## gboolean wnck_window_needs_attention (WnckWindow *window); gboolean wnck_window_needs_attention (window) WnckWindow *window ## gboolean wnck_window_or_transient_needs_attention (WnckWindow *window) gboolean wnck_window_or_transient_needs_attention (window) WnckWindow *window ## gboolean wnck_window_transient_is_most_recently_activated (WnckWindow *window) gboolean wnck_window_transient_is_most_recently_activated (window) WnckWindow *window ## WnckWindow * wnck_window_get_transient (WnckWindow *window) WnckWindow * wnck_window_get_transient (window) WnckWindow *window ## void wnck_window_set_window_type (WnckWindow *window, WnckWindowType wintype) void wnck_window_set_window_type (window, wintype) WnckWindow *window WnckWindowType wintype gboolean wnck_window_is_above (WnckWindow *window); void wnck_window_make_above (WnckWindow *window); void wnck_window_unmake_above (WnckWindow *window); void wnck_window_get_client_window_geometry (WnckWindow *window, OUTLIST int x, OUTLIST int y, OUTLIST int width, OUTLIST int height); void wnck_window_set_sort_order (WnckWindow *window, gint order); gboolean wnck_window_is_below (WnckWindow *window); void wnck_window_make_below (WnckWindow *window); void wnck_window_unmake_below (WnckWindow *window); MODULE = Gnome2::Wnck::Window PACKAGE = Gnome2::Wnck::Window PREFIX = wnck_ ## GtkWidget* wnck_create_window_action_menu (WnckWindow *window) GtkWidget* wnck_create_window_action_menu (window) WnckWindow *window ALIAS: create_action_menu = 0 CLEANUP: PERL_UNUSED_VAR (ix); Gnome2-Wnck-0.16/xs/WnckApplication.xs0000644000175000017500000000527610654436036017562 0ustar torstentorsten/* * Copyright (C) 2003 by the gtk2-perl team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/xs/WnckApplication.xs,v 1.7 2007/08/02 20:15:43 kaffeetisch Exp $ */ #include "wnck2perl.h" MODULE = Gnome2::Wnck::Application PACKAGE = Gnome2::Wnck::Application PREFIX = wnck_application_ ## WnckApplication* wnck_application_get (gulong xwindow) WnckApplication* wnck_application_get (class, xwindow) gulong xwindow C_ARGS: xwindow ## gulong wnck_application_get_xid (WnckApplication *app) gulong wnck_application_get_xid (app) WnckApplication *app =for apidoc Returns a list of WnckWindow's. =cut ## GList* wnck_application_get_windows (WnckApplication *app) void wnck_application_get_windows (app) WnckApplication *app PREINIT: GList *i, *list = NULL; PPCODE: list = wnck_application_get_windows (app); for (i = list; i != NULL; i = i->next) XPUSHs (sv_2mortal (newSVWnckWindow (i->data))); ## int wnck_application_get_n_windows (WnckApplication *app) int wnck_application_get_n_windows (app) WnckApplication *app ## const char* wnck_application_get_name (WnckApplication *app) const char* wnck_application_get_name (app) WnckApplication *app ## const char* wnck_application_get_icon_name (WnckApplication *app) const char* wnck_application_get_icon_name (app) WnckApplication *app ## int wnck_application_get_pid (WnckApplication *app) int wnck_application_get_pid (app) WnckApplication *app ## GdkPixbuf* wnck_application_get_icon (WnckApplication *app) GdkPixbuf* wnck_application_get_icon (app) WnckApplication *app ## GdkPixbuf* wnck_application_get_mini_icon (WnckApplication *app) GdkPixbuf* wnck_application_get_mini_icon (app) WnckApplication *app ## gboolean wnck_application_get_icon_is_fallback (WnckApplication *app) gboolean wnck_application_get_icon_is_fallback (app) WnckApplication *app ## const char* wnck_application_get_startup_id (WnckApplication *app) const char* wnck_application_get_startup_id (app) WnckApplication *app Gnome2-Wnck-0.16/xs/WnckScreen.xs0000644000175000017500000001166510654436036016535 0ustar torstentorsten/* * Copyright (C) 2003-2004 by the gtk2-perl team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/xs/WnckScreen.xs,v 1.11 2007/08/02 20:15:43 kaffeetisch Exp $ */ #include "wnck2perl.h" MODULE = Gnome2::Wnck::Screen PACKAGE = Gnome2::Wnck::Screen PREFIX = wnck_screen_ ## WnckScreen* wnck_screen_get_default (void) WnckScreen* wnck_screen_get_default (class) C_ARGS: /* void */ ## WnckScreen* wnck_screen_get (int index) WnckScreen* wnck_screen_get (class, index) int index C_ARGS: index ## WnckScreen* wnck_screen_get_for_root (gulong root_window_id) WnckScreen* wnck_screen_get_for_root (class, root_window_id) gulong root_window_id C_ARGS: root_window_id ## WnckWorkspace* wnck_screen_get_workspace (WnckScreen *screen, int workspace) WnckWorkspace* wnck_screen_get_workspace (screen, workspace) WnckScreen *screen int workspace ## WnckWorkspace* wnck_screen_get_active_workspace (WnckScreen *screen) WnckWorkspace* wnck_screen_get_active_workspace (screen) WnckScreen *screen ## WnckWindow* wnck_screen_get_active_window (WnckScreen *screen) WnckWindow* wnck_screen_get_active_window (screen) WnckScreen *screen ## WnckWindow * wnck_screen_get_previously_active_window (WnckScreen *screen) WnckWindow * wnck_screen_get_previously_active_window (screen) WnckScreen *screen =for apidoc Returns a list of WnckWindow's. =cut ## GList* wnck_screen_get_windows (WnckScreen *screen) void wnck_screen_get_windows (screen) WnckScreen *screen PREINIT: GList *i, *list = NULL; PPCODE: list = wnck_screen_get_windows (screen); for (i = list; i != NULL; i = i->next) XPUSHs (sv_2mortal (newSVWnckWindow (i->data))); =for apidoc Returns a list of WnckWindow's. =cut ## GList* wnck_screen_get_windows_stacked (WnckScreen *screen) void wnck_screen_get_windows_stacked (screen) WnckScreen *screen PREINIT: GList *i, *list = NULL; PPCODE: list = wnck_screen_get_windows_stacked (screen); for (i = list; i != NULL; i = i->next) XPUSHs (sv_2mortal (newSVWnckWindow (i->data))); ## void wnck_screen_force_update (WnckScreen *screen) void wnck_screen_force_update (screen) WnckScreen *screen ## int wnck_screen_get_workspace_count (WnckScreen *screen) int wnck_screen_get_workspace_count (screen) WnckScreen *screen ## void wnck_screen_change_workspace_count (WnckScreen *screen, int count) void wnck_screen_change_workspace_count (screen, count) WnckScreen *screen int count ## gboolean wnck_screen_net_wm_supports (WnckScreen *screen, const char *atom) gboolean wnck_screen_net_wm_supports (screen, atom) WnckScreen *screen const char *atom ## gulong wnck_screen_get_background_pixmap (WnckScreen *screen) gulong wnck_screen_get_background_pixmap (screen) WnckScreen *screen ## int wnck_screen_get_width (WnckScreen *screen) int wnck_screen_get_width (screen) WnckScreen *screen ## int wnck_screen_get_height (WnckScreen *screen) int wnck_screen_get_height (screen) WnckScreen *screen ## gboolean wnck_screen_get_showing_desktop (WnckScreen *screen) gboolean wnck_screen_get_showing_desktop (screen) WnckScreen *screen ## void wnck_screen_toggle_showing_desktop (WnckScreen *screen, gboolean show) void wnck_screen_toggle_showing_desktop (screen, show) WnckScreen *screen gboolean show ## void wnck_screen_move_viewport (WnckScreen *screen, int x, int y) void wnck_screen_move_viewport (screen, x, y) WnckScreen *screen int x int y ## int wnck_screen_try_set_workspace_layout (WnckScreen *screen, int current_token, int rows, int columns) int wnck_screen_try_set_workspace_layout (screen, current_token, rows, columns) WnckScreen *screen int current_token int rows int columns ## void wnck_screen_release_workspace_layout (WnckScreen *screen, int current_token) void wnck_screen_release_workspace_layout (screen, current_token) WnckScreen *screen int current_token # GList * wnck_screen_get_workspaces (WnckScreen *screen); void wnck_screen_get_workspaces (WnckScreen *screen) PREINIT: GList *list, *i; PPCODE: list = wnck_screen_get_workspaces (screen); for (i = list; i != NULL; i = i->next) XPUSHs (sv_2mortal (newSVWnckWorkspace (i->data))); const char_ornull * wnck_screen_get_window_manager_name (WnckScreen *screen); int wnck_screen_get_number (WnckScreen *screen); Gnome2-Wnck-0.16/xs/WnckClassGroup.xs0000644000175000017500000000426210654436036017373 0ustar torstentorsten/* * Copyright (C) 2004 by the gtk2-perl team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/xs/WnckClassGroup.xs,v 1.3 2007/08/02 20:15:43 kaffeetisch Exp $ */ #include "wnck2perl.h" MODULE = Gnome2::Wnck::ClassGroup PACKAGE = Gnome2::Wnck::ClassGroup PREFIX = wnck_class_group_ ## WnckClassGroup *wnck_class_group_get (const char *res_class) WnckClassGroup * wnck_class_group_get (class, res_class) const char *res_class C_ARGS: res_class =for apidoc Returns a list of WnckWindows. =cut ## GList *wnck_class_group_get_windows (WnckClassGroup *class_group) void wnck_class_group_get_windows (class_group) WnckClassGroup *class_group PREINIT: GList *i, *list; PPCODE: list = wnck_class_group_get_windows (class_group); for (i = list; i != NULL; i = i->next) XPUSHs (sv_2mortal (newSVWnckWindow (i->data))); ## const char * wnck_class_group_get_res_class (WnckClassGroup *class_group) const char * wnck_class_group_get_res_class (class_group) WnckClassGroup *class_group ## const char * wnck_class_group_get_name (WnckClassGroup *class_group) const char * wnck_class_group_get_name (class_group) WnckClassGroup *class_group ## GdkPixbuf *wnck_class_group_get_icon (WnckClassGroup *class_group) GdkPixbuf * wnck_class_group_get_icon (class_group) WnckClassGroup *class_group ## GdkPixbuf *wnck_class_group_get_mini_icon (WnckClassGroup *class_group) GdkPixbuf * wnck_class_group_get_mini_icon (class_group) WnckClassGroup *class_group Gnome2-Wnck-0.16/t/0000755000175000017500000000000010767215015013714 5ustar torstentorstenGnome2-Wnck-0.16/t/WnckWindow.t0000644000175000017500000001114310654436036016176 0ustar torstentorsten#!/usr/bin/perl -w use strict; use Test::More; use Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/t/WnckWindow.t,v 1.20 2007/08/02 20:15:43 kaffeetisch Exp $ unless (Gtk2 -> init_check()) { plan skip_all => "Couldn't initialize Gtk2"; } else { Gtk2 -> init(); plan tests => 46; } ############################################################################### my $screen = Gnome2::Wnck::Screen -> get_default(); $screen -> force_update(); ############################################################################### SKIP: { my $window = $screen -> get_active_window(); skip("no active window found", 46) unless (defined($window)); my $workspace = $window -> get_workspace(); my $have_workspaces = defined $workspace; SKIP: { skip("windowmanager doesn't appear to support workspaces", 1) unless ($have_workspaces); isa_ok($workspace, "Gnome2::Wnck::Workspace"); } isa_ok($window -> get_application(), "Gnome2::Wnck::Application"); isa_ok($window -> get_icon(), "Gtk2::Gdk::Pixbuf"); isa_ok($window -> get_mini_icon(), "Gtk2::Gdk::Pixbuf"); isa_ok($window -> create_window_action_menu(), "Gtk2::Menu"); isa_ok($window -> create_action_menu(), "Gtk2::Menu"); is($window -> get_screen(), $screen); ok($window -> get_name()); ok($window -> get_icon_name()); like($window -> get_group_leader(), qr/^\d+$/); like($window -> get_xid(), qr/^\d+$/); like($window -> get_pid(), qr/^\d+$/); is(Gnome2::Wnck::Window -> get($window -> get_xid()), $window); # ok($window -> get_session_id()); # ok($window -> get_session_id_utf8()); $window -> activate(time()); $window -> activate_transient(time()); SKIP: { skip("windowmanager doesn't appear to support workspaces", 3) unless ($have_workspaces); ok($window -> is_on_workspace($window -> get_workspace())); ok($window -> is_visible_on_workspace($window -> get_workspace())); ok($window -> is_in_viewport($window -> get_workspace())); } isa_ok($window -> get_class_group(), "Gnome2::Wnck::ClassGroup"); ok(defined($window -> get_window_type())); my $number = qr/^\d+$/; my $boolean = qr/^(|1)$/; $window -> set_window_type("normal"); my $transient = $window -> get_transient(); ok(not defined $transient || ref $transient eq "Gnome2::Wnck::Window"); like($window -> needs_attention(), $boolean); like($window -> or_transient_needs_attention(), $boolean); like($window -> transient_is_most_recently_activated(), $boolean); like($window -> get_sort_order(), $number); my ($x, $y, $width, $height) = $window -> get_geometry(); like($x, $number); like($y, $number); like($width, $number); like($height, $number); $window -> set_geometry("current", [], $x, $y, $width, $height); $window -> set_icon_geometry(10, 10, 100, 100); like($window -> is_minimized(), $boolean); like($window -> is_maximized_horizontally(), $boolean); like($window -> is_maximized_vertically(), $boolean); like($window -> is_maximized(), $boolean); like($window -> is_shaded(), $boolean); like($window -> is_skip_pager(), $boolean); like($window -> is_skip_tasklist(), $boolean); like($window -> is_sticky(), $boolean); like($window -> is_pinned(), $boolean); like($window -> is_active(), $boolean); like($window -> is_fullscreen(), $boolean); $window -> set_fullscreen($window -> is_fullscreen()); like($window -> is_most_recently_activated(), $boolean); $window -> set_skip_pager($window -> is_skip_pager()); $window -> set_skip_tasklist($window -> is_skip_tasklist()); like($window -> get_icon_is_fallback(), $boolean); isa_ok($window -> get_actions(), "Gnome2::Wnck::WindowActions"); isa_ok($window -> get_state(), "Gnome2::Wnck::WindowState"); $window -> make_above(); $window -> unmake_above(); ok(!$window -> is_above()); $window -> make_below(); $window -> unmake_below(); ok(!$window -> is_below()); ($x, $y, $width, $height) = $window -> get_client_window_geometry(); ok(defined $x && defined $y && defined $width && defined $height); $window -> set_sort_order(23); is($window -> get_sort_order(), 23); # $window -> minimize(); # $window -> unminimize(); # $window -> maximize(); # $window -> unmaximize(); # $window -> maximize_horizontally(); # $window -> unmaximize_horizontally(); # $window -> maximize_vertically(); # $window -> unmaximize_vertically(); # $window -> shade(); # $window -> unshade(); # $window -> stick(); # $window -> unstick(); # $window -> pin(); # $window -> unpin(); # $window -> move_to_workspace(...); # $window -> close(); # $window -> keyboard_move(); # $window -> keyboard_size(); } Gnome2-Wnck-0.16/t/WnckPager.t0000644000175000017500000000167710654436036016000 0ustar torstentorsten#!/usr/bin/perl -w use strict; use Test::More; use Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/t/WnckPager.t,v 1.10 2007/08/02 20:15:43 kaffeetisch Exp $ unless ($ENV{WNCK_TEST_PAGER}) { plan skip_all => "Not testing pager unless WNCK_TEST_PAGER is set"; } unless (Gtk2 -> init_check()) { plan skip_all => "Couldn't initialize Gtk2"; } else { Gtk2 -> init(); plan tests => 2; } ############################################################################### my $screen = Gnome2::Wnck::Screen -> get_default(); $screen -> force_update(); ############################################################################### my $pager = Gnome2::Wnck::Pager -> new($screen); isa_ok($pager, "Gnome2::Wnck::Pager"); $pager -> set_screen($screen); $pager -> set_shadow_type("etched-in"); $pager -> set_display_mode("content"); ok(defined $pager -> set_orientation("vertical")); $pager -> set_n_rows(3); $pager -> set_show_all(1); Gnome2-Wnck-0.16/t/WnckScreen.t0000644000175000017500000000455010654436036016152 0ustar torstentorsten#!/usr/bin/perl -w use strict; use Test::More; use Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/t/WnckScreen.t,v 1.11 2007/08/02 20:15:43 kaffeetisch Exp $ unless (Gtk2 -> init_check()) { plan skip_all => "Couldn't initialize Gtk2"; } else { Gtk2 -> init(); plan tests => 16; } ############################################################################### my $screen = Gnome2::Wnck::Screen -> get(0); isa_ok($screen, "Gnome2::Wnck::Screen"); # get_for_root() $screen = Gnome2::Wnck::Screen -> get_default(); isa_ok($screen, "Gnome2::Wnck::Screen"); $screen -> force_update(); SKIP: { my $workspace = $screen -> get_workspace(0); skip("couldn't get first workspace", 1) unless (defined($workspace)); isa_ok($workspace, "Gnome2::Wnck::Workspace"); } SKIP: { my $workspace = $screen -> get_active_workspace(); skip("couldn't get active workspace", 1) unless (defined($workspace)); isa_ok($workspace, "Gnome2::Wnck::Workspace"); } SKIP: { my $active_window = $screen -> get_active_window(); skip("no active window found", 1) unless (defined($active_window)); isa_ok($active_window, "Gnome2::Wnck::Window"); } SKIP: { my $prev_window = $screen -> get_previously_active_window(); skip("no previously active window found", 1) unless (defined($prev_window)); isa_ok($prev_window, "Gnome2::Wnck::Window"); } SKIP: { my @windows = $screen -> get_windows(); skip("couldn't get windows", 1) unless (@windows); isa_ok($windows[0], "Gnome2::Wnck::Window"); } SKIP: { my @windows = $screen -> get_windows_stacked(); skip("couldn't get stacked windows", 1) unless (@windows); isa_ok($windows[0], "Gnome2::Wnck::Window"); } SKIP: { like($screen -> get_workspace_count(), qr/^\d+$/); like($screen -> get_showing_desktop(), qr/^(?:1|)$/); # $screen -> toggle_showing_desktop(1); } like($screen -> get_background_pixmap(), qr/^\d+$/); like($screen -> get_width(), qr/^\d+$/); like($screen -> get_height(), qr/^\d+$/); like($screen -> net_wm_supports("_NET_WM_PID"), qr/^(?:1|)$/); # $screen -> change_workspace_count(10); # $screen -> move_viewport(23, 42); # $screen -> try_set_workspace_layout(...); # $screen -> release_workspace_layout(...); my @workspaces = $screen -> get_workspaces(); isa_ok($workspaces[0], 'Gnome2::Wnck::Workspace'); $screen -> get_window_manager_name(); # might be undef ok(defined $screen -> get_number()); Gnome2-Wnck-0.16/t/Wnck.t0000644000175000017500000000134710272014215014776 0ustar torstentorsten#!/usr/bin/perl -w use strict; use Test::More; use Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/t/Wnck.t,v 1.9 2005/07/27 23:28:13 kaffeetisch Exp $ unless (Gtk2 -> init_check()) { plan skip_all => "Couldn't initialize Gtk2"; } else { Gtk2 -> init(); plan tests => 1; } ############################################################################### my $screen = Gnome2::Wnck::Screen -> get_default(); $screen -> force_update(); ############################################################################### SKIP: { my $active_window = $screen -> get_active_window(); skip("no active window found", 1) unless (defined($active_window)); isa_ok($active_window -> create_action_menu(), "Gtk2::Menu"); } Gnome2-Wnck-0.16/t/WnckTasklist.t0000644000175000017500000000236610654436036016534 0ustar torstentorsten#!/usr/bin/perl -w use strict; use Test::More; use Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/t/WnckTasklist.t,v 1.11 2007/08/02 20:15:43 kaffeetisch Exp $ unless (Gtk2 -> init_check()) { plan skip_all => "Couldn't initialize Gtk2"; } else { Gtk2 -> init(); plan tests => 2; } ############################################################################### my $screen = Gnome2::Wnck::Screen -> get_default(); $screen -> force_update(); ############################################################################### my $tasklist = Gnome2::Wnck::Tasklist -> new($screen); $tasklist -> set_screen($screen); $tasklist -> set_icon_loader(sub { my ($icon_name, $size, $flags, $data) = @_; warn join(", ", ($icon_name, $size, $flags, $data)); warn join(", ", $tasklist -> get_size_hint_list()); return Gtk2::Gdk::Pixbuf -> new(); }, "bla"); $tasklist -> set_grouping("auto-group"); $tasklist -> set_switch_workspace_on_unminimize(1); $tasklist -> set_grouping_limit(5); $tasklist -> set_include_all_workspaces(0); $tasklist -> set_minimum_width(50); ok(defined $tasklist -> get_minimum_width()); $tasklist -> set_minimum_height(20); ok(defined $tasklist -> get_minimum_height()); $tasklist -> set_button_relief("normal"); Gnome2-Wnck-0.16/t/WnckWorkspace.t0000644000175000017500000000243310654436036016667 0ustar torstentorsten#!/usr/bin/perl -w use strict; use Test::More; use Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/t/WnckWorkspace.t,v 1.12 2007/08/02 20:15:43 kaffeetisch Exp $ unless (Gtk2 -> init_check()) { plan skip_all => "Couldn't initialize Gtk2"; } else { Gtk2 -> init(); plan tests => 10; } ############################################################################### my $screen = Gnome2::Wnck::Screen -> get_default(); $screen -> force_update(); ############################################################################### my $workspace = $screen -> get_workspace(0); SKIP: { skip("couldn't get first workspace", 10) unless (defined($workspace)); is($workspace -> get_number(), 0); ok(defined($workspace -> get_name())); like($workspace -> get_width(), qr/^\d+$/); like($workspace -> get_height(), qr/^\d+$/); like($workspace -> get_viewport_x(), qr/^\d+$/); like($workspace -> get_viewport_y(), qr/^\d+$/); ok(not $workspace -> is_virtual()); $screen -> get_active_workspace() -> activate(time()); isa_ok($workspace -> get_screen(), 'Gnome2::Wnck::Screen'); ok(defined $workspace -> get_layout_row()); ok(defined $workspace -> get_layout_column()); $workspace -> get_neighbor('right'); # might be undef # $workspace -> change_name(...); } Gnome2-Wnck-0.16/t/WnckSelector.t0000644000175000017500000000110310654436036016502 0ustar torstentorsten#!/usr/bin/perl -w use strict; use Test::More; use Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/t/WnckSelector.t,v 1.2 2007/08/02 20:15:43 kaffeetisch Exp $ unless (Gnome2::Wnck -> CHECK_VERSION(2, 10, 0)) { plan skip_all => "WnckSelector is new in 2.10"; } unless (Gtk2 -> init_check()) { plan skip_all => "Couldn't initialize Gtk2"; } else { Gtk2 -> init(); plan tests => 1; } ############################################################################### my $selector = Gnome2::Wnck::Selector -> new(); isa_ok($selector, "Gtk2::Widget"); Gnome2-Wnck-0.16/t/WnckClassGroup.t0000644000175000017500000000206110654436036017010 0ustar torstentorsten#!/usr/bin/perl -w use strict; use Test::More; use Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/t/WnckClassGroup.t,v 1.2 2007/08/02 20:15:43 kaffeetisch Exp $ unless (Gtk2 -> init_check()) { plan skip_all => "Couldn't initialize Gtk2"; } else { Gtk2 -> init(); plan tests => 6; } ############################################################################### my $screen = Gnome2::Wnck::Screen -> get_default(); $screen -> force_update(); ############################################################################### SKIP: { my $window = $screen -> get_active_window(); skip("no active window found", 6) unless (defined($window)); my $group = $window -> get_class_group(); isa_ok(($group -> get_windows())[0], "Gnome2::Wnck::Window"); ok(defined($group -> get_res_class())); ok(defined($group -> get_name())); isa_ok($group -> get_icon(), "Gtk2::Gdk::Pixbuf"); isa_ok($group -> get_mini_icon(), "Gtk2::Gdk::Pixbuf"); isa_ok(Gnome2::Wnck::ClassGroup -> get($group -> get_res_class()), "Gnome2::Wnck::ClassGroup"); } Gnome2-Wnck-0.16/t/WnckApplication.t0000644000175000017500000000245410106210451017156 0ustar torstentorsten#!/usr/bin/perl -w use strict; use Test::More; use Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/t/WnckApplication.t,v 1.7 2004/08/10 18:17:13 kaffeetisch Exp $ unless (Gtk2 -> init_check()) { plan skip_all => "Couldn't initialize Gtk2"; } else { Gtk2 -> init(); plan tests => 10; } ############################################################################### my $screen = Gnome2::Wnck::Screen -> get_default(); $screen -> force_update(); ############################################################################### SKIP: { my $window = $screen -> get_active_window(); skip("no active window found", 10) unless (defined($window)); my $application = $window -> get_application(); isa_ok($application -> get_icon(), "Gtk2::Gdk::Pixbuf"); isa_ok($application -> get_mini_icon(), "Gtk2::Gdk::Pixbuf"); like($application -> get_xid(), qr/^\d+$/); is(Gnome2::Wnck::Application -> get($application -> get_xid()), $application); like($application -> get_pid(), qr/^\d+$/); like($application -> get_n_windows(), qr/^\d+$/); ok($application -> get_name()); ok($application -> get_icon_name()); isa_ok(($application -> get_windows())[0], "Gnome2::Wnck::Window"); like($application -> get_icon_is_fallback(), qr/^(?:1|)$/); # $application -> get_startup_id(); } Gnome2-Wnck-0.16/maps0000644000175000017500000000222110654436036014334 0ustar torstentorstenWNCK_TYPE_PAGER WnckPager GtkObject Gnome2::Wnck::Pager WNCK_TYPE_TASKLIST WnckTasklist GtkObject Gnome2::Wnck::Tasklist WNCK_TYPE_APPLICATION WnckApplication GObject Gnome2::Wnck::Application WNCK_TYPE_CLASS_GROUP WnckClassGroup GObject Gnome2::Wnck::ClassGroup WNCK_TYPE_SCREEN WnckScreen GObject Gnome2::Wnck::Screen WNCK_TYPE_WINDOW WnckWindow GObject Gnome2::Wnck::Window WNCK_TYPE_WORKSPACE WnckWorkspace GObject Gnome2::Wnck::Workspace WNCK_TYPE_MOTION_DIRECTION WnckMotionDirection GEnum Gnome2::Wnck::MotionDirection WNCK_TYPE_PAGER_DISPLAY_MODE WnckPagerDisplayMode GEnum Gnome2::Wnck::PagerDisplayMode WNCK_TYPE_TASKLIST_GROUPING_TYPE WnckTasklistGroupingType GEnum Gnome2::Wnck::TasklistGroupingType WNCK_TYPE_WINDOW_GRAVITY WnckWindowGravity GEnum Gnome2::Wnck::WindowGravity WNCK_TYPE_WINDOW_TYPE WnckWindowType GEnum Gnome2::Wnck::WindowType WNCK_TYPE_WINDOW_ACTIONS WnckWindowActions GFlags Gnome2::Wnck::WindowActions WNCK_TYPE_WINDOW_MOVE_RESIZE_MASK WnckWindowMoveResizeMask GFlags Gnome2::Wnck::WindowMoveResizeMask WNCK_TYPE_WINDOW_STATE WnckWindowState GFlags Gnome2::Wnck::WindowState Gnome2-Wnck-0.16/Wnck.pm0000644000175000017500000000222010767214704014711 0ustar torstentorstenpackage Gnome2::Wnck; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/Wnck.pm,v 1.23 2008/03/16 12:59:48 kaffeetisch Exp $ use 5.008; use strict; use warnings; use Gtk2; require DynaLoader; our @ISA = qw(DynaLoader); our $VERSION = '0.16'; sub import { my $self = shift(); $self -> VERSION(@_); } sub dl_load_flags { $^O eq 'darwin' ? 0x00 : 0x01 } Gnome2::Wnck -> bootstrap($VERSION); 1; __END__ =head1 NAME Gnome2::Wnck - Perl interface to the Window Navigator Construction Kit =head1 SYNOPSIS use Gtk2 -init; use Gnome2::Wnck; my $screen = Gnome2::Wnck::Screen -> get_default(); $screen -> force_update(); my $pager = Gnome2::Wnck::Pager -> new($screen); my $tasklist = Gnome2::Wnck::Tasklist -> new($screen); =head1 ABSTRACT This module allows a Perl developer to use the Window Navigator Construction Kit library (libwnck for short) to write tasklists and pagers. =head1 SEE ALSO L(3pm), L(3pm), L(3pm) and the source code of libwnck. =head1 AUTHOR Torsten Schoenfeld Ekaffeetisch@web.deE =head1 COPYRIGHT AND LICENSE Copyright (C) 2003-2006 by the gtk2-perl team =cut Gnome2-Wnck-0.16/MANIFEST0000644000175000017500000000102710767215015014602 0ustar torstentorstenChangeLog copyright.pod LICENSE Makefile.PL MANIFEST This list of files MANIFEST.SKIP maps NEWS perl-Gnome2-Wnck.spec.in README t/Wnck.t t/WnckApplication.t t/WnckClassGroup.t t/WnckPager.t t/WnckScreen.t t/WnckSelector.t t/WnckTasklist.t t/WnckWindow.t t/WnckWorkspace.t Wnck.pm wnck2perl.h xs/Wnck.xs xs/WnckApplication.xs xs/WnckClassGroup.xs xs/WnckPager.xs xs/WnckScreen.xs xs/WnckSelector.xs xs/WnckTasklist.xs xs/WnckWindow.xs xs/WnckWorkspace.xs META.yml Module meta-data (added by MakeMaker) Gnome2-Wnck-0.16/MANIFEST.SKIP0000644000175000017500000000016610726772437015365 0ustar torstentorsten~$ \.bak$ blib \.bs$ build \.c$ CVS \.cvsignore$ Makefile$ Makefile\.old$ \.o$ \.spec$ \.sw.$ \.tar\.gz$ \.releaserc$ Gnome2-Wnck-0.16/perl-Gnome2-Wnck.spec.in0000644000175000017500000000354510136752630017727 0ustar torstentorstenSummary: Gnome2-Wnck Perl module Name: perl-Gnome2-Wnck Version: @VERSION@ Release: 1 Packager: gtk-perl-list@gnome.org License: LGPL Group: Development/Libraries URL: http://search.cpan.org/dist/Gnome2-Wnck/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: perl >= 2:5.8.0 BuildRequires: libwnck-devel >= @GNOME_WNCK@ BuildRequires: perl-ExtUtils-Depends >= @PERL_EXTUTILS_DEPENDS@ BuildRequires: perl-ExtUtils-PkgConfig >= @PERL_EXTUTILS_DEPENDS@ BuildRequires: perl-Glib >= @PERL_GLIB@ BuildRequires: perl-Gtk2 >= @PERL_GTK@ Requires: libwnck >= %(pkg-config --modversion libwnck-1.0) Requires: perl-Glib >= @PERL_GLIB@ Requires: perl-Gtk2 >= @PERL_GTK@ Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }') Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }') Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }') Source0: @SOURCE@ %description %{summary}. %prep %setup -q -n Gnome2-Wnck-%{version} %build CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} make OPTIMIZE="$RPM_OPT_FLAGS" make test %install %makeinstall [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; find $RPM_BUILD_ROOT/usr -type f -print | \ sed "s@^$RPM_BUILD_ROOT@@g" | \ grep -v perllocal.pod | \ grep -v "\.packlist" > %{name}-%{version}-filelist if [ "$(cat %{name}-%{version}-filelist)X" = "X" ] ; then exit -1 fi %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-filelist %defattr(-,root,root) %changelog * @DATE@ gtk-perl-list@gnome.org - @VERSION@ - Specfile autogenerated. Gnome2-Wnck-0.16/copyright.pod0000644000175000017500000000020210457400614016154 0ustar torstentorstenCopyright (C) 2003-2006 by the gtk2-perl team. This software is licensed under the LGPL. See L for a full notice. Gnome2-Wnck-0.16/ChangeLog0000644000175000017500000003255710767214667015253 0ustar torstentorsten2008-03-16 Torsten Schoenfeld * NEWS * README * Wnck.pm: Version 0.16. 2008-03-16 Torsten Schoenfeld * Makefile.PL: Announce our Makefile.PL-time dependencies via META.yml's configure_requires key. 2007-12-29 Torsten Schoenfeld * Wnck.pm (SYNPOSIS): Add use Gtk2 -init; to the example code so it doesn't die with a segmentation fault. 2007-12-09 Torsten Schoenfeld * Makefile.PL * README: Require libwnck >= 2.20.0. * NEWS * Wnck.pm: Version 0.15. 2007-08-02 kaffeetisch libwnck changed API in a way that doesn't appear to be manageable in the bindings. So we adapt and require libwnck >= 2.19.5. * Makefile.PL * README: Require libwnck >= 2.19.5. * t/WnckPager.t * xs/WnckPager.xs: wnck_pager_set_orientation now returns a boolean. * t/WnckScreen.t * xs/WnckScreen.xs: Wrap wnck_screen_get_workspaces, wnck_screen_get_window_manager_name, and wnck_screen_get_number. * t/WnckSelector.t * xs/WnckSelection.xs: wnck_selector_new doesn't take a screen parameter anymore. * t/WnckWindow.t * xs/WnckWindow.xs: Wrap wnck_window_get_client_window_geometry, wnck_window_set_sort_order, wnck_window_is_below, wnck_window_make_below, and wnck_window_unmake_below. * maps * t/WnckWorkspace.t * xs/WnckWorkspace.xs: Wrap wnck_workspace_get_screen, wnck_workspace_get_layout_row, wnck_workspace_get_layout_column, and wnck_workspace_get_neighbor. * Makefile.PL * wnck2perl.h * t/WnckClassGroup.t * t/WnckPager.t * t/WnckScreen.t * t/WnckSelector.t * t/WnckTasklist.t * t/WnckWindow.t * t/WnckWorkspace.t * xs/WnckApplication.xs * xs/WnckClassGroup.xs * xs/WnckPager.xs * xs/WnckScreen.xs * xs/WnckSelection.xs * xs/WnckTasklist.xs * xs/WnckWindow.xs * xs/WnckWorkspace.xs: Get rid of now unneeded version checks and support code for older libwnck versions. * wnck2perl.h * xs/WnckApplication.xs * xs/WnckClassGroup.xs * xs/WnckPager.xs * xs/WnckScreen.xs * xs/WnckSelection.xs * xs/WnckTasklist.xs * xs/WnckWindow.xs * xs/WnckWorkspace.xs: Get rid of needless whitespace. 2006-09-23 kaffeetisch * NEWS, Wnck.pm: Version 0.14. 2006-09-23 kaffeetisch * maps, t/WnckWindow.t, xs/WnckWindow.xs: Bind and test wnck_window_set_geometry. 2006-07-19 kaffeetisch * MANIFEST, Makefile.PL, NEWS, Wnck.pm, copyright.pod: Version 0.13. 2006-07-19 kaffeetisch * t/WnckSelector.t, xs/WnckSelector.xs: Wrap WnckSelector. * t/WnckPager.t: Only run if WNCK_TEST_PAGER is set to avoid changing the user's pager settings. 2006/02/04 kaffeetisch * NEWS, Wnck.pm: Version 0.12. 2006/02/01 kaffeetisch * t/WnckWindow.t, xs/WnckWindow.xs: Bind wnck_window_is_above, wnck_window_make_above, and wnck_window_unmake_above. * maps: Rearrange. 2005/09/17 kaffeetisch * NEWS, Wnck.pm: Version 0.11. * Makefile.PL, README: Require libwnck 2.12.0. * wnck2perl.h, t/WnckPager.t, t/WnckTasklist.t, t/WnckWindow.t, t/WnckWorkspace.t, xs/WnckPager.xs, xs/WnckTasklist.xs, xs/WnckWindow.xs, xs/WnckWorkspace.xs: Make all version checks refer to stable releases. 2005/07/28 kaffeetisch * MANIFEST, genmaps.pl, META.yml: Retire good old genmaps.pl and META.yml. * t/Wnck.t: Remove useless test. * t/WnckTasklist.t, t/WnckWindow.t, xs/WnckTaskList.xs, xs/WnckWindow.xs: Adapt to API changes: wnck_window_demands_attention -> wnck_window_needs_attention, wnck_window_or_transient_demands_attention -> wnck_window_or_transient_needs_attention, wnck_window_transient_is_active -> wnck_window_transient_is_most_recently_activated. Add wnck_window_get_transient, wnck_window_set_window_type and wnck_tasklist_set_button_relief. 2005/02/24 kaffeetisch * META.yml, NEWS, Wnck.pm: Version 0.10. 2005/02/24 kaffeetisch * t/WnckWindow.t, xs/WnckWindow.xs: Bind and test wnck_window_get_sort_order, wnck_window_or_transient_demands_attention, and wnck_window_transient_is_active. * t/WnckWindow.t, t/WnckWorkspace.t, xs/WnckWindow.xs xs/WnckWorkspace.xs: Accomodate for upstream API changes: Add a timeout parameter to wnck_window_unminimize, wnck_window_activate, wnck_window_activate_transient, wnck_workspace_activate. Don't include window-menu.h and don't bind wnck_create_window_menu if they're not available anymore. 2005/01/27 20:32 (+0100) kaffeetisch * t/WnckWindow.t, xs/WnckWindow.xs: is_fullscreen and set_fullscreen were made public in 2.8.0, not 2.4.0. Fix the version checks accordingly. 2004/11/03 23:52 (+0100) kaffeetisch * t/WnckWindow.t: Fix test failure reported by Yaakov Selkowitz. * META.yml, NEWS, Wnck.pm: Version 0.09. 2004/10/25 21:00 (+0200) kaffeetisch * META.yml, NEWS, Wnck.pm: Version 0.08. 2004/10/25 20:49 (+0200) kaffeetisch * t/WnckScreen.t, xs/WnckScreen.xs: Bind and test wnck_screen_get_previously_active_window. * t/WnckWindow.t, xs/WnckWindow.xs: Bind and test wnck_window_is_fullscreen, wnck_window_set_fullscreen and wnck_window_is_most_recently_activated. 2004/10/24 11:55 (-0400) rwmcfa1 * MANIFEST.SKIP: updates * perl-Gnome2-Wnck.spec.in: new scheme that addresses x86_64 problems found by Carl Nygard 2004/08/13 10:40 (+0200) kaffeetisch * NEWS, Wnck.pm: Version 0.07. 2004/08/10 20:07 (+0200) kaffeetisch * t/WnckApplication.t, t/WnckScreen.t, t/WnckWindow.t: Add new tests for several methods. * t/Wnck.t, xs/Wnck.xs: Remove the binding for wnck_gtk_window_set_dock_type. It was intrusive and very obscure. This is an API break. If you used that method please scream and I'll add it again. * maps, t/WnckPager.t, xs/WnckPager.xs: Bind and test set_display_mode. * maps, t/WnckTasklist.t, xs/WnckTasklist.xs: Bind and test set_grouping. * maps, t/WnckWindow.t, xs/WnckWindow.xs: Bind and test get_window_type and demands_attention. 2004/07/26 23:39 (+0200) kaffeetisch * Makefile.PL, WnckWindow.xs: Fix build when compiling against libwnck 2.6.2.1. (Thanks to Thierry Vignaud for reporting the issue.) * NEWS, Wnck.pm: Version 0.06. 2004/07/10 16:41 (+0200) kaffeetisch A NEWS * MANIFEST * Wnck.pm: Version 0.05. 2004/07/10 16:20 (+0200) kaffeetisch * xs/WnckWindow.xs: In libwnck 2.6.3, wnck_window_close now takes an additional argument. Respond to this API break with some preprocessor ugliness. 2004/05/22 17:49 (+0200) kaffeetisch * xs/WnckClassGroup.xs: Mark 'file' unused in case there are no xsubs at all. 2004/05/16 17:48 (+0200) kaffeetisch * xs/WnckScreen.xs: Protect change_workspace_count with version guards. * xs/WnckTasklist.xs: Protect wnck2perl_load_icon_function_create with version guards. 2004/05/06 21:05 (-0400) muppetman * Wnck.pm: update copyright notice for 2004 2004/04/24 17:24 (+0200) kaffeetisch * Makefile.PL * README * Wnck.pm: Version 0.04. 2004/04/24 17:14 (+0200) kaffeetisch * wnck2perl.h: Only include libwnck/class-group.h if we're running against 2.6.0. 2004/04/20 17:17 (+0200) kaffeetisch * Wnck.pm: Add an import method to enable version checking. A t/WnckClassGroup.t A xs/WnckClassGroup.xs * MANIFEST * maps * wnck2perl.h: Bind and test WnckClassGroup. * t/WnckScreen.t: Skip the get_workspace_count test when not running 2.0.0 or higher. * t/WnckTasklist.t: Test set_icon_loader. * t/WnckWindow.t: Test activate_transient, set_icon_geometry, get_icon_is_fallback, get_actions, and get_state. * t/WnckWindow.t * xs/WnckWindow.xs: Bind and test get_class_group. * t/WnckWindow.t * t/WnckWorkspace.t * xs/WnckScreen.xs * xs/WnckWindow.xs * xs/WnckWorkspace.xs: Check for stable releases only. 2004/03/03 20:35 (+0100) kaffeetisch * t/WnckPager.t * t/WnckTasklist.t * t/WnckWindow.t * t/WnckWorkspace.t * xs/Wnck.xs: Adapt to the new version information implementation policy. 2004/02/16 17:08 (+0100) kaffeetisch * MANIFEST: Sort. * Makefile.PL: Depend on Glib 1.035. * README: Update required versions of EU::Depends and ::PkgConfig. * Wnck.pm: Version 0.03. * t/Wnck.t * t/WnckApplication.t * t/WnckPager.t * t/WnckScreen.t * t/WnckTasklist.t * t/WnckWindow.t * t/WnckWorkspace.t: In addition to Gtk2 -> init_check, also call Gtk2 -> init to make sure everything is initialized properly. (Found by Marc Brockschmidt.) 2004/02/14 16:39 (+0100) kaffeetisch A copyright.pod * Makefile.PL: Switch to the new EU::Depends and ::PkgConfig versions. 2004/01/24 21:44 (-0500) rwmcfa1 * Makefile.PL: removed runtime_reqs stuff, replaced by the pkg-config trick * perl-Gnome2-Wnck.spec.in: use pkg-config for Requires version 2004/01/06 15:37 (-0500) muppetman * xs/WnckWindow.xs: use PERL_UNUSED_VAR to hush the compiler 2004/01/02 15:09 (-0500) rwmcfa1 * Makefile.PL: rpm stuff added * perl-Gnome2-Wnck.spec.in: initial import 2003/12/31 02:26 (-0500) muppetman * Wnck.xs: mark ax unused in functions which don't touch the input stack, to hush compiler warnings 2003/12/28 01:44 (-0500) muppetman * t/WnckWindow.t: one more skip hack to support window managers which don't support workspaces. 2003/12/28 00:55 (+0100) kaffeetisch Applying a patch from muppet. * Wnck.pm: Don't initialize Gtk2. * t/WnckWindow.t: Skip another workspace related test if workspaces aren't available. * t/Wnck.t * t/WnckApplication.t * t/WnckPager.t * t/WnckScreen.t * t/WnckTasklist.t * t/WnckWindow.t * t/WnckWorkspace.t: Skip all tests if Gtk2 can't be initialized. 2003/12/26 11:44 (+0100) kaffeetisch * t/WnckScreen.t * t/WnckWorkspace.t: Skip the workspace related tests if no workspace is available. 2003/12/22 23:59 (-0500) muppetman * t/Wnck.t, t/WnckApplication.t, t/WnckWindow.t: skp => skip 2003/12/23 01:30 (+0100) kaffeetisch * Makefile.PL: Don't call do_pod_files twice. 2003/12/18 22:21 (+0100) kaffeetisch * Wnck.pm: Mention Gnome2::Wnck::index. 2003/12/12 23:37 (+0100) kaffeetisch A README * MANIFEST: Add a README. * Wnck.pm: Add a copyright notice. * xs/WnckScreen.xs * xs/WnckWindow.xs: Add API doc. 2003/11/30 15:24 (+0100) kaffeetisch A MANIFEST.SKIP * MANIFEST: Imported a skip file. 2003/11/28 22:38 (+0100) kaffeetisch * META.yml * Wnck.pm: Prepare the release of 0.02. 2003/11/26 22:16 (+0100) kaffeetisch Applying a patch from muppet. * xs/WnckApplication.xs * xs/WnckPager.xs * xs/WnckScreen.xs * xs/WnckTasklist.xs * xs/WnckWindow.xs * xs/WnckWorkspace.xs: #ifdef functions that aren't available in libwnck's older than 2.0.0. * t/WnckPager.t * t/WnckScreen.t * t/WnckTasklist.t: Skip certain tests for the same reason. * Makefile.PL: Support older versions of libwnck. Use a default micro version if there's none. 2003/11/25 00:19 (+0100) kaffeetisch * t/Wnck.t * t/WnckApplication.t * t/WnckScreen.t * t/WnckWindow.t: Skip all or some tests if there's no active window. 2003/11/24 11:22 (-0500) muppetman * xs/Wnck.xs: keep from clobbering Gtk2::Window's docs, put these docs someplace else. note: Gnome2::Wnck::main also sucks as a manpage name; a better solution would be to include this somehow in the main page, either by hand docs or include directives. 2003/11/17 22:35 (+0100) kaffeetisch * Wnck.pm: Pass -init to Gtk2 when use'ing it so that users don't have to. * t/Wnck.t * t/WnckApplication.t * t/WnckPager.t * t/WnckScreen.t * t/WnckTasklist.t * t/WnckWindow.t * t/WnckWorkspace.t: Don't 'use Gtk2', see above. 2003/11/15 12:19 (+0100) kaffeetisch * xs/WnckApplication.xs * xs/WnckTasklist.xs: Add API documentation. 2003/11/14 19:57 (+0100) kaffeetisch * xs/Wnck.xs * xs/WnckApplication.xs * xs/WnckPager.xs * xs/WnckScreen.xs * xs/WnckTasklist.xs * xs/WnckWindow.xs * xs/WnckWorkspace.xs: Add license boilerplate. 2003/11/13 17:49 (+0100) kaffeetisch * Makefile.PL: Install manpage as Gnome2::Wnck.3pm, not as Wnck.3pm. 2003/11/09 03:15 (+0100) kaffeetisch * Makefile.PL: Require version 1.01 of Glib and version 1.00 of Gtk2. Migrate to Glib::MakeHelper. Generate POD documentation. * xs/Wnck.xs * xs/WcnkApplication.xs * xs/WnckPager.xs * xs/WnckScreen.xs * xs/WnckTasklist.xs * xs/WnckWindow.xs: Remove declarations of class parameters. * xs/WnckWindow.xs: Rearrange ALIAS sections. * xs/WnckWindow.xs: Add =for directives to keep the Gnome2::Wnck manpage from being overwritten. 2003/10/30 16:32 (+0100) kaffeetisch * xs/Wnck.xs: Implement Gnome2::Wnck::get_version_info and Gnome2::Wnck::check_version. * t/WnckWorkspace.t * t/WnckWindow.t: Reenable certain tests. Skip those that need a certain version unless we fulfill that requirement. 2003/10/28 23:25 (+0100) kaffeetisch * xs/WnckScreen.xs * xs/WnckApplication.xs: Don't free what wnck_screen_get_windows, wnck_screen_get_windows_stacked and wnck_application_get_windows return. It's not ours. * t/WnckWorkspace.t: Disable $workspace -> get_name() test as the name may have been modified by the user. Thanks to Christian Borup for pointing this out. :-) 2003/10/12 03:19 (+0200) kaffeetisch * Makefile.PL: Add muppet's version macro generation code to create wnck2perl-version.h. * wnck2perl.h: Include wnck2perl-version.h. * xs/WnckScreen.xs * xs/WnckWindow.xs * xs/WnckWorkspace.xs: Use the new version macro to enable viewport functions introduced in libwnck 2.3.1. 2003/10/11 20:31 (+0200) kaffeetisch A LICENSE A MANIFEST A META.yml A Makefile.PL A Wnck.pm A genmaps.pl A maps A t/Wnck.t A t/WnckApplication.t A t/WnckPager.t A t/WnckScreen.t A t/WnckTasklist.t A t/WnckWindow.t A t/WnckWorkspace.t A wnck2perl.h A xs/Wnck.t A xs/WnckApplication.t A xs/WnckPager.t A xs/WnckScreen.t A xs/WnckTasklist.t A xs/WnckWindow.t A xs/WnckWorkspace.t: Initial import. Gnome2-Wnck-0.16/NEWS0000644000175000017500000000535110767214512014155 0ustar torstentorstenOverview of changes in Gnome2::Wnck 0.16 ======================================== * Fix documentation and build issues. Overview of changes in Gnome2::Wnck 0.15 ======================================== * Require libwnck >= 2.20.0 due to API changes that can't be worked around. * Adapt to API changes: - wnck_pager_set_orientation now returns a boolean - wnck_selector_new doesn't take a screen parameter anymore * Wrap new API: - wnck_screen_get_workspaces, wnck_screen_get_window_manager_name, and wnck_screen_get_number - wnck_window_get_client_window_geometry, wnck_window_set_sort_order, wnck_window_is_below, wnck_window_make_below, and wnck_window_unmake_below - wnck_workspace_get_screen, wnck_workspace_get_layout_row, wnck_workspace_get_layout_column, and wnck_workspace_get_neighbor Overview of changes in Gnome2::Wnck 0.14 ======================================== * Add new binding for wnck_window_set_geometry. Overview of changes in Gnome2::Wnck 0.13 ======================================== * Add support for WnckSelector. * Don't run the pager test by default to avoid changing the user's current pager settings. Overview of changes in Gnome2::Wnck 0.12 ======================================== * Add Gnome2::Wnck::Window::is_above, make_above, and unmake_above. Overview of changes in Gnome2::Wnck 0.11 ======================================== * Adapt to upstream API changes. Require libwnck 2.12.0. * Change some internal details. Overview of changes in Gnome2::Wnck 0.10 ======================================== * Fix some version checks. * Accomodate for upstream API changes. * Add new API: - wnck_window_get_sort_order, - wnck_window_or_transient_demands_attention, and - wnck_window_transient_is_active. Overview of changes in Gnome2::Wnck 0.09 ======================================== * Fix test failure. Overview of changes in Gnome2::Wnck 0.08 ======================================== * New bindings for: - wnck_screen_get_previously_active_window - wnck_window_is_fullscreen - wnck_window_set_fullscreen - wnck_window_is_most_recently_activated Overview of changes in Gnome2::Wnck 0.07 ======================================== * Bind and test wnck_window_get_window_type, wnck_window_demands_attention, wnck_tasklist_set_grouping, and wnck_pager_set_display_mode. * Remove the binding for wnck_gtk_window_set_dock_type. Overview of changes in Gnome2::Wnck 0.06 ======================================== * Make we sure we compile against libwnck 2.6.2.1. Overview of changes in Gnome2::Wnck 0.05 ======================================== * Improve compatibility with older versions of libwnck. * Make sure we work with libwnck 2.6.3, which introduces an incompatible API change -- in a stable release. Gnome2-Wnck-0.16/wnck2perl.h0000644000175000017500000000213510654436036015535 0ustar torstentorsten/* * Copyright (C) 2003 by the gtk2-perl team (see the file AUTHORS) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/wnck2perl.h,v 1.7 2007/08/02 20:15:42 kaffeetisch Exp $ */ #ifndef _WNCK2PERL_H_ #define _WNCK2PERL_H_ #include #include #include "wnck2perl-version.h" #include "wnck2perl-autogen.h" #endif /* _WNCK2PERL_H_ */ Gnome2-Wnck-0.16/Makefile.PL0000644000175000017500000000620210767214550015426 0ustar torstentorsten#!/usr/bin/perl BEGIN { require 5.008; } use strict; use warnings; use ExtUtils::MakeMaker; use Cwd; use File::Spec; # $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2-Wnck/Makefile.PL,v 1.17 2008/03/16 12:58:16 kaffeetisch Exp $ my %build_reqs = ( 'perl-ExtUtils-Depends' => '0.20', 'perl-ExtUtils-PkgConfig' => '1.03', 'perl-Glib' => '1.180', 'perl-Gtk2' => '1.00', 'Wnck' => '2.20.0', ); my %pm_reqs = ( 'Glib' => $build_reqs{'perl-Glib'}, 'Gtk2' => $build_reqs{'perl-Gtk2'}, 'ExtUtils::Depends' => $build_reqs{'perl-ExtUtils-Depends'}, 'ExtUtils::PkgConfig' => $build_reqs{'perl-ExtUtils-PkgConfig'}, ); unless (eval "use ExtUtils::Depends '$build_reqs{'perl-ExtUtils-Depends'}';" . "use ExtUtils::PkgConfig '$build_reqs{'perl-ExtUtils-PkgConfig'}';" . "use Glib '$build_reqs{'perl-Glib'}';" . "use Gtk2 '$build_reqs{'perl-Gtk2'}';" . "use Glib::MakeHelper;" . "use Gtk2::CodeGen;" . "1") { warn "$@\n"; WriteMakefile( PREREQ_FATAL => 1, PREREQ_PM => \%pm_reqs, ); exit 1; # not reached } # --------------------------------------------------------------------------- # my %pkgcfg = ExtUtils::PkgConfig->find("libwnck-1.0 >= $build_reqs{Wnck}"); mkdir 'build', 0777; my @xs_files = ; my %pod_files = ( 'Wnck.pm' => '$(INST_MAN3DIR)/Gnome2::Wnck.$(MAN3EXT)', Glib::MakeHelper->do_pod_files (@xs_files), ); Gtk2::CodeGen->parse_maps('wnck2perl'); Gtk2::CodeGen->write_boot(ignore => qr/^Gnome2::Wnck$/); ExtUtils::PkgConfig->write_version_macros ( "build/wnck2perl-version.h", "libwnck-1.0" => "WNCK", ); # --------------------------------------------------------------------------- # my $wnck = ExtUtils::Depends->new('Gnome2::Wnck', 'Gtk2'); $wnck->set_inc($pkgcfg{cflags} . " -DWNCK_I_KNOW_THIS_IS_UNSTABLE"); $wnck->set_libs($pkgcfg{libs}); $wnck->add_xs(@xs_files); $wnck->add_pm('Wnck.pm' => '$(INST_LIBDIR)/Wnck.pm'); $wnck->add_typemaps(map {File::Spec->catfile(cwd(), $_)} 'build/wnck2perl.typemap'); $wnck->install(qw(wnck2perl.h build/wnck2perl-autogen.h build/wnck2perl-version.h)); $wnck->save_config('build/IFiles.pm'); my $configure_requires = Glib::MakeHelper->get_configure_requires_yaml(%pm_reqs); WriteMakefile( NAME => 'Gnome2::Wnck', VERSION_FROM => 'Wnck.pm', # finds $VERSION ABSTRACT_FROM => 'Wnck.pm', # retrieve abstract from module XSPROTOARG => '-noprototypes', MAN3PODS => \%pod_files, PREREQ_PM => \%pm_reqs, $wnck->get_makefile_vars, EXTRA_META => $configure_requires, ); sub MY::postamble { return Glib::MakeHelper->postamble_clean () . Glib::MakeHelper->postamble_docs_full ( DEPENDS => $wnck, COPYRIGHT_FROM => 'copyright.pod') . Glib::MakeHelper->postamble_rpms ( GNOME_WNCK => $build_reqs{'Wnck'}, PERL_EXTUTILS_DEPENDS => $build_reqs{'perl-ExtUtils-Depends'}, PERL_EXTUTILS_PKGCONFIG => $build_reqs{'perl-ExtUtils-PkgConfig'}, PERL_GLIB => $build_reqs{'perl-Glib'}, PERL_GTK => $build_reqs{'perl-Gtk2'}); } Gnome2-Wnck-0.16/LICENSE0000644000175000017500000006346507742047113014475 0ustar torstentorsten GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! Gnome2-Wnck-0.16/README0000644000175000017500000000120310767214363014332 0ustar torstentorsten Gnome2::Wnck -------------- This module allows you to use the Window Navigator Construction Kit library (libwnck for short) from Perl. The index of the automatically generated API documentation can be accessed with: perldoc Gnome2::Wnck::index Installation -------------- To install Gnome2::Wnck run the following commands: perl Makefile.PL make make test make install Dependencies -------------- Gnome2::Wnck depends on: ExtUtils::Depends >= 0.20 ExtUtils::PkgConfig >= 1.03 Glib >= 1.180 Gtk2 >= 1.00 libwnck >= 2.20.0 If you need support for libwnck < 2.20.0, use Gnome2::Wnck 0.14. Gnome2-Wnck-0.16/META.yml0000644000175000017500000000122010767215015014715 0ustar torstentorsten--- #YAML:1.0 name: Gnome2-Wnck version: 0.16 abstract: Perl interface to the Window Navigator Construction Kit license: ~ author: ~ generated_by: ExtUtils::MakeMaker version 6.44 distribution_type: module requires: ExtUtils::Depends: 0.20 ExtUtils::PkgConfig: 1.03 Glib: 1.180 Gtk2: 1.00 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.3.html version: 1.3 configure_requires: Glib: 1.180 ExtUtils::Depends: 0.20 Gtk2: 1.00 ExtUtils::PkgConfig: 1.03