Gnome2

 view release on metacpan or  search on metacpan

ChangeLog.pre-git  view on Meta::CPAN

	instead of the unconditional skip now that the bug has been fixed.

	* t/GnomePasswordDialog.t
	* xs/GnomePasswordDialog.xs: Bind and test
	set_show_userpass_buttons and anon_selected.

	* xs/GnomeColorPicker.xs
	* xs/GnomeEntry.xs
	* xs/GnomeFontPicker.xs
	* xs/GnomeIconTheme.xs
	* xs/GnomePopupMenu.xs: Add #undef GNOME_DISABLE_DEPRECATED to
	stuff that was deprecated after we wrapped it.

2004/06/28 19:35 (+0200) kaffeetisch

	* Gnome2.pm
	* NEWS
	* README: Version 1.011.

2004/06/14 19:35 (+0200) kaffeetisch

ChangeLog.pre-git  view on Meta::CPAN


	* xs/GnomeConfig.xs: Remove a now invalid FIXME comment.

	* maps
	* t/GnomePasswordDialog.t
	* xs/GnomePasswordDialog.xs: Bind and test API that was added in
	2.5.1: set_show_username, set_show_domain, set_show_password,
	set_domain, set_readonly_domain, set_show_remember, set_remember,
	get_remember, and get_domain.

	* t/GnomePopupMenu.t
	* xs/GnomePopupMenu.xs: Change the binding for
	gnome_popup_menu_append to Gtk2::Menu::append_from.  This is
	necessary to avoid a collision with gtk_menu_append.  Applications
	using Gtk2::Menu::append and expecting to get
	gnome_popup_menu_append will have to be changed.

2004/02/15 13:32 (-0500) rwmcfa1

	* Makefile.PL, perl-Gnome2.spec.in: fixed some of the dependancies, 
	added Gnome2-VFS, Gnome2-Canvas to the spec file and the postable_rpms.

2004/02/12 19:55 (+0100) kaffeetisch

	* Gnome2.pm

ChangeLog.pre-git  view on Meta::CPAN

	* README: Version 0.92.

2004/02/12 19:21 (+0100) kaffeetisch

	* t/GnomeIconTheme.t: Only test if get_search_path returned
	something defined.

	* t/GnomeProgram.t: Use properties that are not construct-only to
	work around the problem for now.

	* t/GnomePopupMenu.t
	* xs/GnomePopupMenu.xs: Change the binding for
	gnome_popup_menu_attach to Gtk2::Menu::attach_to.

2004/02/11 02:02 (+0100) kaffeetisch

	* Makefile.PL
	* xs/GnomeProgram.xs
	* t/GnomeProgram.t: Use and test the new GPerlArgv helper.

2004/02/10 19:01 (+0100) kaffeetisch

	* t/GnomeConfig.t: Re-enable the get_float_with_default test, with

ChangeLog.pre-git  view on Meta::CPAN

	* t/*: Put some boilerplate code into an external file.  Skip most
	tests if Gtk2->init_check fails.

	* README: Reformat slightly.

	* Gnome2.pm
	* META.yml: Bump version to 0.90.

2003/12/14 20:48 (+0100) kaffeetisch

	* xs/GnomeAppHelper.xs: In the custom marshaller for GnomePopupMenu
	callbacks, don't use GPERL_CALLBACK_MARSHAL_INIT on callback because it
	would try to access callback->priv, which doesn't exist since callback
	is a plain SV.

2003/12/14 05:37 (+0100) kaffeetisch

	* xs/GnomeAppHelper.xs
	* xs/GnomePopupMenu.xs: Use custom marshalling for all callbacks
	specified in GnomeUIInfo's used from GnomePopupMenu.  In addition
	to making callbacks work, this even solves the user data problem
	in GnomePopupMenu.  Many thanks to muppet for this great idea.

	* t/GnomePopupMenu.t: Add some user data and callback bits to test
	our new toys.

2003/12/13 23:41 (+0100) kaffeetisch

	* t/GnomeConfig.t
	* xs/GnomeConfig.xs: Implement and test iterators.

2003/12/13 21:35 (+0100) kaffeetisch

	* t/GnomeAppHelper.t: Change the callback tests so that it's easy

ChangeLog.pre-git  view on Meta::CPAN

	* xs/GnomeAppHelper.xs: Store and restore the "widget" member of
	GnomeUIInfo's if it exists.  Use GNOME2PERL_WIDGET_ARRAY_INDEX
	instead of the last used index + 1 for the widget's array index.
	Allow GNOME_APP_UI_ITEM_CONFIGURABLE to have callbacks.  If there
	is a callback, arrange for it to be invisible to the C backend --
	otherwise the SV would be stored and later used as if it were a
	function pointer, thus causing a segfault.  Use a global
	GnomeUIBuilderData instead of a separate one for every function.

	* xs/GnomeAppHelper.xs
	* xs/GnomePopupMenu.xs: Refill the GnomeUIInfo's used here so that
	we can warn about callbacks not working currently.

2003/12/12 23:26 (+0100) kaffeetisch

	* TODO: Removed reference to gnome-ui-init.  It's bound.

	* README: Mention Gnome2::VFS as a dependency.  Remove license
	boilerplate.

2003/12/12 03:35 (+0100) kaffeetisch

ChangeLog.pre-git  view on Meta::CPAN

	* t/GnomeIconTheme.t
	* xs/GnomeIconLookup.xs: Implement and test
	Gnome2::IconTheme::lookup.  That required adding Gnome2::VFS to
	the dependencies.

	* xs/GnomeIconLookup.xs: Check and free the icon return value of
	gnome_icon_lookup_sync.

2003/11/21 02:15 (-0500) muppetman

	* xs/GnomeAppHelper.xs, xs/GnomeWindow.xs, xs/GnomePopupMenu.xs,
	xs/GnomeThumbnail.xs: shuffle docs around to keep from clobbering
	docs from other extensions.

2003/11/15 12:13 (+0100) kaffeetisch

	* Gnome2.pm: Add a comma.

	* xs/BonoboDock.xs
	* xs/GnomeDruid.xs
	* xs/GnomeIconList.xs

ChangeLog.pre-git  view on Meta::CPAN

	* xs/GnomeHRef.xs
	* xs/GnomeHelp.xs
	* xs/GnomeI18N.xs
	* xs/GnomeIconEntry.xs
	* xs/GnomeIconList.xs
	* xs/GnomeIconSelection.xs
	* xs/GnomeIconTheme.xs
	* xs/GnomeInit.xs
	* xs/GnomeModuleInfo.xs
	* xs/GnomePixmapEntry.xs
	* xs/GnomePopupMenu.xs
	* xs/GnomeProgram.xs
	* xs/GnomeScore.xs
	* xs/GnomeScores.xs
	* xs/GnomeSound.xs
	* xs/GnomeThumbnail.xs
	* xs/GnomeUIDefs.xs
	* xs/GnomeURL.xs
	* xs/GnomeUtil.xs: Remove declarations of class variables to
	silence compiler warnings and make the documentation generator
	create correct POD.

ChangeLog.pre-git  view on Meta::CPAN

2003/09/29 16:33 (+0200) kaffeetisch

	* xs/GnomeDateEdit.xs
	* t/GnomeDateEdit.t: Change gnome_date_edit_get_flags to return a
	proper flag value instead of a plain integer.

	* t/GnomeThumbnail.t: Add comment to methods that are segfaulting.

2003/09/27 01:35 (+0200) kaffeetisch

	* t/GnomePopupMenu.t: Re-enabled the popup code, but make it skip it if
	we are not running 2.2.0 (which introduced Gtk2::Gdk::Event->new) or
	above.

2003/09/26 16:20 (+0200) kaffeetisch

	* TODO: Added libbonoboui.  Added explanations to gnome-config,
	gnome-triggers and GnomeThemeFile.

	* t/*: Removed unneeded main loops.  Fixed comments.

ChangeLog.pre-git  view on Meta::CPAN


	* Gnome2.pm, META.yml, README, debian/changelog: release 0.36

	* Gnome2.pm: removed extraneous Exporter stuff.  we export nothing,
	don't waste the space.  add L<> to stuff in See Also.  update the
	Authors section to reflect the fact that torsten > is da man.

	* t/GnomeI18N.t: removed the no-op main loop to quell strange
	behavior that made the test turn up "dubious".

	* t/GnomePopupMenu.t: there is no Gtk2::Gdk::Event->new(), so the
	event synthesizing code just makes the test fail.  disabled for now.

2003/09/25 16:22 (+0200) kaffeetisch

	A t/GnomeI18N.t
	A xs/GnomeI18N.xs
	* MANIFEST
	* TODO: Initial implementation of GnomeI18N.

	A t/GnomeScore

ChangeLog.pre-git  view on Meta::CPAN

	GnomeAppHelper.

	* xs/GnomeAbout.xs: Fix indention.

	* xs/GnomeApp.xs: Provide member accessors.  Implement
	gnome_app_add_toolbar, gnome_app_add_docked,
	gnome_app_add_dock_item, gnome_app_get_dock and
	gnome_app_get_dock_item_by_name.

	* xs/GnomeAppHelper.xs: Import the menu functions into the
	Gtk2::MenuShell namespace.  Implement gnome_app_find_menu_pos,
	gnome_app_fill_toolbar*, gnome_app_insert_menus*,
	gnome_app_remove_menus, gnome_app_remove_menu_range,
	gnome_app_install_menu_hints, gnome_app_setup_toolbar,
	gnome_app_install_appbar_menu_hints and
	gnome_app_install_statusbar_menu_hints.

	* xs/GnomeClient.xs: Implement gnome_client_set_*_command and
	gnome_client_add_static_arg.

	* xs/GnomeDateEdit.xs: Add FIXME comment.

ChangeLog.pre-git  view on Meta::CPAN

	A xs/GnomeScores.xs,
	A xs/GnomeThumbnail.xs,
	A xs/GnomeWindow.xs,
	* MANIFEST: Initial implementation.

	A xs/GnomeModuleInfo.xs
	* xs/GnomeInit.xs,
	* MANIFEST: Moved ModuleInfo accessors into their own file.
	Implemented member accessors.

	* xs/GnomePopupMenu.xs: Fix bug that kept you from passing undef
	for the accelgroup parameter to gnome_popup_menu_new.  Import
	gnome_gtk_widget_add_popup_items into the Gtk2::Widget namespace.

	* xs/GnomeProgram.xs: Create convenience functions to handle ARGV and
	ModuleInfo's.  In gnome_program_locate_file, initialize the lists,
	check if the returned value is non-NULL and use newSVGChar instead of
	newSVpv.  Make gnome_program_module_register and
	gnome_program_module_registered work.

	R t/00.Gnome2.t

ChangeLog.pre-git  view on Meta::CPAN

	A t/GnomeDruid.t
	A t/GnomeEntry.t
	A t/GnomeFileEntry.t
	A t/GnomeFontPicker.t
	A t/GnomeHRef.t
	A t/GnomeIconEntry.t
	A t/GnomeIconList.t
	A t/GnomeIconSelection.t
	A t/GnomeIconTheme.t
	A t/GnomePixmapEntry.t
	A t/GnomePopupMenu.t
	A t/GnomeProgram.t
	A t/GnomeScores.t
	A t/GnomeThumbnail.t
	* MANIFEST: New, fairly comprehensive test suite.

2003/09/17 10:44 rwmcfa1

	* Makefile.PL: ExtUtils::PkgConfig can now deal with version 
	requirements using pkg-config's interface, make use of it.

ChangeLog.pre-git  view on Meta::CPAN

2003/09/06 19:23 rwmcfa1

	* Makefile.PL: dist-rpms build target added

	* perl-Gnome2.spec.in: initial import

2003/09/04 21:32 muppetman

	* Gnome2.pm, README, debian/changelog, META.yml: prep for 0.34 release

	* xs/GnomePopupMenu.xs, MANIFEST: new stuff.

	* TODO: updated

2003/08/22 01:57 muppetman

	* Gnome2.pm, README, META.yml, debian/changelog, MANIFEST:
	updated for 0.32 release

2003/08/19 21:11 rwmcfa1

ChangeLog.pre-git  view on Meta::CPAN

	Gtk2/xs/GtkTextBuffer.xs, Gtk2/xs/GtkToolbar.xs,
	Gtk2/xs/GtkTooltips.xs, Gtk2/xs/GtkTreeViewColumn.xs: use newSVGChar
	and SvGChar instead of newSVpv and SvPV_nolen for gchar*, to ensure
	valid utf8 handling.  this definitely needs testing.

2003/05/06 12:56 rwmcfa1

	* Gtk2/t/1.GtkWindow.t, Gtk2/t/2.GtkButton.t: prevent windows from
	fighting over focus and thus stall tests (happends with wmaker)

	* Gtk2/t/16.GtkMenu-etc.t: we don't really know how to use 
	tearoff_state so for the time being we won't

2003/05/05 23:11 muppetman

	* G/G.pm, Gtk2/Gtk2.pm: pod updates

2003/05/05 16:35 muppetman

	* Gtk2/xs/GtkTooltips.xs: work around a (bug|feature) in the Gtk+
	C library by storing a GtkTooltips reference in the GtkWidget's user

ChangeLog.pre-git  view on Meta::CPAN

	* Gtk2/gtk-demo/panes.pl: another piece of the gtk-demo pie

	* G/G.pm G/GObject.xs: overload the == operator, for more natural
	object comparisons

	* Gtk2/xs/GtkPaned.xs: struct member access

	* Gtk2/Makefile.PL Gtk2/genkeysyms.pl: create a big hash of key
	symbols in Gtk2::Gdk::Keysyms, a la gtk-perl

	* Gtk2/xs/GtkRadioButton.xs, Gtk2/xs/GtkRadioMenuItem.xs,
	Gtk2/xs/GtkButton.xs, Gtk2/xs/GtkCheckButton.xs,
	Gtk2/xs/GtkCheckMenuItem.xs, Gtk2/xs/GtkImageMenuItem.xs,
	Gtk2/xs/GtkMenuItem.xs, Gtk2/xs/GtkToggleButton.xs: consolidate
	constructors with ALIAS to avoid copying code.  make sure that
	group isn't a valid SV pointing to undef

	* Gtk2/xs/GtkWidget.xs: implemented queue_draw, add_accelerator,
	remove_accelerator, and get_display

2003/04/27 08:52- rwmcfa1
	
	* Gtk2/t/16.GtkMenu-etc.t: Added a first pass at the testing of
	GtkMenu and friends.

	* Gtk2/t/15.GtkHandleBox.t: Added a decently complete test of
	GtkHandleBox

	* Gtk2/t/14.GtkToolbar.t: Added a decently complete test of GtkToolbar

	* Gtk2/xs/GtkToolbar.xs: Fixed a bug where GtkToolbarChildType was
	wrongly being used as a gtype, caused all _element functions to fail

	* Gtk2/t/13.GtkTooltips.t: Added a decently complete test of

ChangeLog.pre-git  view on Meta::CPAN

	* GtkSpell/GtkSpell.xs: gtkspell_get_from_text_view now accepts and
	ignores a class

	* Gtk2/t/10.GtkProgressBar.t, Gtk2/t/11.GtkStatusBar.t: first passes
	at testing the two modules

	* Gtk2/maps: hand added a (maybe temporary) entry for Gtk2::Progress

	* Gtk2/xs/GtkProgressBar.xs: removed a bunch of deprecated functions

	* Gtk2/xs/GtkMenuItem.xs, Gtk2/xs/GtkRadioButton.xs,
	Gtk2/xs/GtkRadioMenuItem.xs, Gtk2/xs/GtkToggleButton.xs: now new with
	string new('string') uses mnemonic instead of label. seems like a good
	idea. you can use new_with_label if you don't want this behavior. also
	impelented news with aliases for new and new_with_mnemonic (saves code
	space/copying).

	* Gtk2/xs/GtkCheckButton.xs, Gtk2/xs/GtkCheckMenuItem.xs,
	Gtk2/xs/GtkImageMenuItem.xs: same as ^ with the addition of: wrappers
	for _new_with_label were invalid they're now fixed.

2003/04/25 23:01 rwmcfa1

	* GtkSpell/: Initial import of working (for me anyway) GtkSpell
	mappings, give them a try.

2003/04/25 18:17 muppetman

	* Gtk2/gtk-demo/changedisplay.pl, Gtk2/gtk-demo/drawingarea.pl,

ChangeLog.pre-git  view on Meta::CPAN


	* Gtk2/xs/GtkFileSelection.xs:  clarified the a for loop's operations
	in get_selections

	* Gtk2/xs/GtkTreeStore.xs, Gtk2/xs/GtkListStore.xs: added itital pass
	at _store_reorder

	* Gtk2/maps: added stuff new as of gtk2.2.1

	* Gtk2/xs/GtkPlug.xs Gtk2/xs/GtkWindow.xs Gtk2/xs/GdkCursor.xs
	Gtk2/xs/GdkDrawable.xs Gtk2/xs/GtkInvisible.xs Gtk2/xs/GtkMenu.xs:
	uncommented stuff new to gtk 2.2 now that maps is up to date for 2.2.1

2003/04/24 18:24 muppetman

	* Gtk2/gtk-demo/appwindow.pl, Gtk2/gtk-demo/button_box.pl,
	Gtk2/gtk-demo/colorsel.pl, Gtk2/gtk-demo/dialog.pl: more pieces of
	the demo

	* Gtk2/xs/GtkToolbar.xs: implemented all the append/prepend/insert
	functions that were left out because they require callbacks

ChangeLog.pre-git  view on Meta::CPAN

	* Gtk2/gtk2perl.h, Gtk2/xs/GdkTypes.xs: special handling for
	GdkModifierType flags...  GDK_MODIFIER_MASK matches all of the flag
	values, and causes nasty problems when you try to convert the SV flags
	wrapper *back* to C.  so, handle it separately, and don't allow
	GDK_MODIFIER_MASK to make it into perl from C. (can still go the other
	way, though)

	* Gtk2/xs/GtkItemFactory.xs: bracket callback with ENTER/SAVETMPS &
	FREETMPS/LEAVE

	* Gtk2/xs/GtkMenu.xs: implemented gtk_menu_popup

	* Gtk2/xs/GtkTreeModel.xs: it's possible for gtk_tree_model_iter_next
	to return NULL

	* Gtk2/xs/GtkTreeView.xs: implemented
	gtk_tree_view_insert_column_with_data_func

	* Gtk2/xs/GtkTreeViewColumn.xs: implemented
	gtk_tree_view_column_set_cell_data_func

ChangeLog.pre-git  view on Meta::CPAN


	* Gtk2/t/9.GtkRadioButton.t: test out a little more throughly

	* Gtk2/xs/GtkFileSelection.xs: first pass at
	gtk_file_selection_get_selections, needs to be utf8
	tested/implemented maybe

	* Gtk2/xs/GtkRadioButton.xs: crash bug, need to make sure that svp
	exists

	* Gtk2/xs/GtkRadioMenuItem.xs: first pass at implementing this class,
	not tested yet

2003/04/21 muppetman

	* G/G.xs, G/gperl.h: added gperl_alloc_temp

	* G/GClosure.xs: added GPerlCallback, and made some robustness fixes
	for GPerlClosure.  (there was bizarre stuff happening in the
	marshaller, wrong number of items in the supplemental arguments
	array.)

Gnome2.pm  view on Meta::CPAN


=over

=item gnome_program_get

Gnome2::Program->get has been renamed to ->get_program to avoid a clash with
GObject->get.

=item gnome_popup_menu_attach

Gtk2::Menu->attach has been renamed to ->attach_to to avoid a clash with
gtk_menu_attach.

=item gnome_popup_menu_append

Gtk2::Menu->append has been renamed to ->append_from to avoid a clash with
gtk_menu_shell_append.

=back

=head1 DIFFERENT CALL SIGNATURES OR SEMANTICS

=over

=item gnome_client_set_restart_command

MANIFEST  view on Meta::CPAN

t/GnomeFontPicker.t
t/GnomeHRef.t
t/GnomeHelp
t/GnomeI18N.t
t/GnomeIconEntry.t
t/GnomeIconList.t
t/GnomeIconSelection.t
t/GnomeIconTheme.t
t/GnomePasswordDialog.t
t/GnomePixmapEntry.t
t/GnomePopupMenu.t
t/GnomeProgram.t
t/GnomeScore
t/GnomeScores.t
t/GnomeSound
t/GnomeThumbnail.t
t/GnomeURL
t/GnomeUtil.t
t/TestBoilerplate
xs/BonoboDock.xs
xs/BonoboDockItem.xs

MANIFEST  view on Meta::CPAN

xs/GnomeIconEntry.xs
xs/GnomeIconList.xs
xs/GnomeIconLookup.xs
xs/GnomeIconSelection.xs
xs/GnomeIconTextItem.xs
xs/GnomeIconTheme.xs
xs/GnomeInit.xs
xs/GnomeModuleInfo.xs
xs/GnomePasswordDialog.xs
xs/GnomePixmapEntry.xs
xs/GnomePopupMenu.xs
xs/GnomeProgram.xs
xs/GnomeScore.xs
xs/GnomeScores.xs
xs/GnomeSound.xs
xs/GnomeThumbnail.xs
xs/GnomeUIDefs.xs
xs/GnomeURL.xs
xs/GnomeUtil.xs
xs/GnomeWindow.xs
xs/GnomeWindowIcon.xs

NEWS  view on Meta::CPAN

* Depend on Glib 1.04, Gnome2::Canvas 1.00, and Gnome2::VFS 1.00.

Overview of changes in Gnome2 0.94
==================================

* Document which functions may croak on error.

Overview of changes in Gnome2 0.93
==================================

* Changed the binding of gnome_popup_menu_append from Gtk2::Menu::append to
  Gtk2::Menu::append_from.  This is API breakage.  Any existing application
  using Gtk2::Menu::append and expecting to get gnome_popup_menu_append needs
  to be changed.
* Added new GnomePasswordDialog methods.
* Switched to the new version information policy introduced by Glib and Gtk2.
* Made minor bug fixes and improvements.
* In accordance with the GNOME Bindings release plan, Gnome2 froze API.

t/GnomeApp.t  view on Meta::CPAN


  my $app = Gnome2::App -> new("test", "Test");
  isa_ok($app, "Gnome2::App");

  is($app -> prefix, "/test/");
  isa_ok($app -> dock, "Gnome2::Bonobo::Dock");
  isa_ok($app -> vbox, "Gtk2::VBox");
  isa_ok($app -> layout, "Gnome2::Bonobo::DockLayout");
  isa_ok($app -> accel_group, "Gtk2::AccelGroup");

  $app -> set_menus(Gtk2::MenuBar -> new());
  isa_ok($app -> menubar, "Gtk2::MenuBar");

  $app -> set_toolbar(Gtk2::Toolbar -> new());

  $app -> set_statusbar(Gtk2::Label -> new("Statusbar"));
  # $app -> set_statusbar_custom(Gtk2::HBox -> new(0, 0), Gtk2::Label -> new("Statusbar"));
  isa_ok($app -> statusbar, "Gtk2::Label");

  $app -> set_contents(Gtk2::Label -> new("Content"));
  isa_ok($app -> contents, "Gtk2::Label");

t/GnomeAppHelper.t  view on Meta::CPAN

    { type => "toggleitem", label => "Toggle", callback => sub { warn @_; } }
  ];

  #############################################################################

  Gnome2 -> accelerators_sync();

  my $app = Gnome2::App -> new("test", "Test");

  my $accel_group = Gtk2::AccelGroup -> new();
  my $menubar = Gtk2::MenuBar -> new();
  my $toolbar = Gtk2::Toolbar -> new();

  $menubar -> fill_menu($menubar_info, $accel_group, 1, 1);
  $toolbar -> fill_toolbar($toolbar_info, $accel_group);

  $app -> create_menus($menubar_info);
  $app -> create_toolbar($toolbar_info);

  $app -> insert_menus("Toggle", $menubar_info);

  my ($widget, $pos) = $menubar -> find_menu_pos("Item");
  isa_ok($widget, "Gtk2::MenuBar");
  is($pos, 1);

  $app -> remove_menus("Item", 1);
  $app -> remove_menu_range("Toggle", 1, 2);

  my $dock_item = Gnome2::Bonobo::DockItem -> new("dock item", "normal");
  my $dock_toolbar = Gtk2::Toolbar -> new();

  $dock_item -> add($dock_toolbar);
  $app -> setup_toolbar($dock_toolbar, $dock_item);

t/GnomePopupMenu.t  view on Meta::CPAN

      ]
    }
  ];

  my $additional_uiinfo = [
    { type => "item", label => "Really?" }
  ];

  #############################################################################

  my $popup = Gnome2::PopupMenu -> new($uiinfo);
  isa_ok($popup, "Gtk2::Menu");
  isa_ok($popup -> get_accel_group(), "Gtk2::AccelGroup");

  $popup = Gnome2::PopupMenu -> new_with_accelgroup($uiinfo);
  isa_ok($popup, "Gtk2::Menu");
  isa_ok($popup -> get_accel_group(), "Gtk2::AccelGroup");

  $popup = Gnome2::PopupMenu -> new_with_accelgroup($uiinfo, Gtk2::AccelGroup -> new());
  isa_ok($popup, "Gtk2::Menu");
  isa_ok($popup -> get_accel_group(), "Gtk2::AccelGroup");

  $popup -> append_from($additional_uiinfo);

  my $window = Gtk2::Window -> new("toplevel");
  my $button = Gtk2::Button -> new("BUH!");

  $window -> add($button);

  $popup -> attach_to($button);

xs/GnomeApp.xs  view on Meta::CPAN

## Create a new (empty) application window.  You must specify the application's
## name (used internally as an identifier).  The window title can be left as
## NULL, in which case the window's title will not be set.
GtkWidget *gnome_app_new (class, appname, title=NULL)
	const gchar *appname
	const gchar *title
    C_ARGS:
	appname, title

## Sets the menu bar of the application window
void gnome_app_set_menus (GnomeApp *app, GtkMenuBar *menubar);

## Sets the main toolbar of the application window
void gnome_app_set_toolbar (GnomeApp *app, GtkToolbar *toolbar);

## Sets the status bar of the application window
void gnome_app_set_statusbar (GnomeApp *app, GtkWidget *statusbar);

## Sets the status bar of the application window, but uses the given
## container widget rather than creating a new one.
void gnome_app_set_statusbar_custom (GnomeApp *app, GtkWidget *container, GtkWidget *statusbar);

xs/GnomeAppHelper.xs  view on Meta::CPAN

			      "but none was specified");
		/* It's just a string */
		info->moreinfo = SvGChar ((SV*)info->moreinfo);
		break;

	    case GNOME_APP_UI_ITEM:
	    case GNOME_APP_UI_ITEM_CONFIGURABLE:
	    case GNOME_APP_UI_TOGGLEITEM:
		if (info->moreinfo) {
			/* We simply swap moreinfo and user_data here so that
			   the GnomePopupMenu functions don't see the SV but our
			   custom marshaller.  GnomeAppHelper isn't directly
			   affected since we use the GnomeUIBuilderData thingy
			   there anyway. */
			info->user_data = info->moreinfo;
			info->moreinfo = gnome2perl_popup_menu_activate_func;
		}
		break;

	    default:
		/* Do nothing */

xs/GnomeAppHelper.xs  view on Meta::CPAN

  }

=cut

## void gnome_accelerators_sync (void) 
void
gnome_accelerators_sync (class)
    C_ARGS:
	/*void*/

MODULE = Gnome2::AppHelper	PACKAGE = Gtk2::MenuShell	PREFIX = gnome_app_

=for object Gnome2::AppHelper
=cut

### void gnome_app_fill_menu (GtkMenuShell *menu_shell, GnomeUIInfo *uiinfo, GtkAccelGroup *accel_group, gboolean uline_accels, gint pos) 
### void gnome_app_fill_menu_with_data (GtkMenuShell *menu_shell, GnomeUIInfo *uiinfo, GtkAccelGroup *accel_group, gboolean uline_accels, gint pos, gpointer user_data) 
### void gnome_app_fill_menu_custom (GtkMenuShell *menu_shell, GnomeUIInfo *uiinfo, GnomeUIBuilderData *uibdata, GtkAccelGroup *accel_group, gboolean uline_accels, gint pos) 
void
gnome_app_fill_menu (menu_shell, uiinfo, accel_group, uline_accels, pos)
	GtkMenuShell *menu_shell
	GnomeUIInfo *uiinfo
	GtkAccelGroup *accel_group
	gboolean uline_accels
	gint pos
    CODE:
	gnome_app_fill_menu_custom (menu_shell, uiinfo, &ui_builder_data, accel_group, uline_accels, pos);
	gnome2perl_refill_infos (ST (1), uiinfo);

=for apidoc

xs/GnomePopupMenu.xs  view on Meta::CPAN

 * See the LICENSE file in the top level of this distribution
 * for the complete license terms.
 *
 */

#include "gnome2perl.h"

/* gnome-popup-menu.h was deprecated in 2003. */
#undef GNOME_DISABLE_DEPRECATED

extern void gtk2perl_menu_position_func (GtkMenu       * menu,
                                         gint          * x,
                                         gint          * y,
                                         gboolean      * push_in,
                                         GPerlCallback * callback);

MODULE = Gnome2::PopupMenu	PACKAGE = Gnome2::PopupMenu	PREFIX = gnome_popup_menu_

##  GtkWidget *gnome_popup_menu_new (GnomeUIInfo *uiinfo) 
##  GtkWidget *gnome_popup_menu_new_with_accelgroup (GnomeUIInfo *uiinfo, GtkAccelGroup *accelgroup) 
GtkWidget *
gnome_popup_menu_new (class, uiinfo, accelgroup=NULL)
	GnomeUIInfo *uiinfo
	GtkAccelGroup *accelgroup
    ALIAS:
	new_with_accelgroup = 1
    CODE:
	if (ix == 1 || accelgroup != NULL)
		RETVAL = gnome_popup_menu_new_with_accelgroup (uiinfo,
		                                               accelgroup);
	else
		RETVAL = gnome_popup_menu_new (uiinfo);

	gnome2perl_refill_infos_popup (ST (1), uiinfo);
    OUTPUT:
	RETVAL

MODULE = Gnome2::PopupMenu	PACKAGE = Gtk2::Menu	PREFIX = gnome_popup_menu_

=for object Gnome2::PopupMenu
=cut

## same as gtk_menu_get_accel_group
##  GtkAccelGroup *gnome_popup_menu_get_accel_group(GtkMenu *menu) 

##  void gnome_popup_menu_attach (GtkWidget *popup, GtkWidget *widget, gpointer user_data) 
void
gnome_popup_menu_attach_to (popup, widget, user_data=NULL)
	GtkWidget *popup
	GtkWidget *widget
	SV * user_data
    CODE:
	gnome_popup_menu_attach (popup, widget, user_data);

####  void gnome_popup_menu_do_popup (GtkWidget *popup, GtkMenuPositionFunc pos_func, gpointer pos_data, GdkEventButton *event, gpointer user_data, GtkWidget *for_widget) 
void
gnome_popup_menu_do_popup (popup, pos_func, pos_data, event, user_data, for_widget)
	GtkMenu * popup
	SV * pos_func
	SV * pos_data
	GdkEvent * event
	SV * user_data
	GtkWidget * for_widget
    CODE:
	if (SvTRUE (pos_func)) {
		GPerlCallback * callback;
		/* we don't need to worry about the callback arg types since
		 * we already have to marshall this callback ourselves. */
		callback = gperl_callback_new (pos_func, pos_data, 0, NULL, 0);
		gnome_popup_menu_do_popup (GTK_WIDGET (popup),
		                           (GtkMenuPositionFunc)
		                                 gtk2perl_menu_position_func,
		                           callback, (GdkEventButton*) event,
		                           user_data, for_widget);
		/* NOTE: this isn't a proper destructor, as it could leak
		 *    if replaced somewhere else.  on the other hand, how
		 *    likely is that? */
		g_object_set_data_full (G_OBJECT (popup), "_menu_pos_callback",
		                        callback,
		                        (GDestroyNotify)
		                             gperl_callback_destroy);
	} else
		gnome_popup_menu_do_popup (GTK_WIDGET (popup), NULL, NULL,
		                           (GdkEventButton*) event,
		                           user_data, for_widget);


####  int gnome_popup_menu_do_popup_modal (GtkWidget *popup, GtkMenuPositionFunc pos_func, gpointer pos_data, GdkEventButton *event, gpointer user_data, GtkWidget *for_widget) 
int
gnome_popup_menu_do_popup_modal (popup, pos_func, pos_data, event, user_data, for_widget)
	GtkMenu * popup
	SV * pos_func
	SV * pos_data
	GdkEvent * event
	SV * user_data
	GtkWidget * for_widget
    CODE:
	if (SvTRUE (pos_func)) {
		GPerlCallback * callback;
		/* we don't need to worry about the callback arg types since
		 * we already have to marshall this callback ourselves. */
		callback = gperl_callback_new (pos_func, pos_data, 0, NULL, 0);
		RETVAL = gnome_popup_menu_do_popup_modal (GTK_WIDGET (popup),
		                      (GtkMenuPositionFunc)
		                            gtk2perl_menu_position_func,
		                      callback, (GdkEventButton *) event,
		                      user_data, for_widget);
		gperl_callback_destroy (callback);
	} else
		RETVAL = gnome_popup_menu_do_popup_modal
		                        (GTK_WIDGET (popup), NULL, NULL,
		                        (GdkEventButton*) event, user_data,
		                        for_widget);
    OUTPUT:

xs/GnomePopupMenu.xs  view on Meta::CPAN


##  void gnome_popup_menu_append (GtkWidget *popup, GnomeUIInfo *uiinfo) 
void
gnome_popup_menu_append_from (popup, uiinfo)
	GtkWidget *popup
	GnomeUIInfo *uiinfo
    CODE:
	gnome_popup_menu_append (popup, uiinfo);
	gnome2perl_refill_infos_popup (ST (1), uiinfo);

MODULE = Gnome2::PopupMenu	PACKAGE = Gtk2::Widget	PREFIX = gnome_gtk_widget_

=for object Gnome2::PopupMenu
=cut

##  void gnome_gtk_widget_add_popup_items (GtkWidget *widget, GnomeUIInfo *uiinfo, gpointer user_data) 
void
gnome_gtk_widget_add_popup_items (widget, uiinfo, user_data=NULL)
	GtkWidget *widget
	GnomeUIInfo *uiinfo
	SV * user_data
    CODE:
	gnome_gtk_widget_add_popup_items (widget, uiinfo, user_data);



( run in 1.220 second using v1.01-cache-2.11-cpan-49f99fa48dc )