Fwd: buildiing pango error with jhbuild
I am trying to build GNOME 3.10 (the release) using jhbuild, on a Fedora 19 machine (which comes with GNOME 3.8) I checkout out jhbuild, follow the steps and can build using this command up to pango: jhbuild -m http://download.gnome.org/teams/releng/3.10.1/gnome-apps-3.10.1.modulesbuild -afc pango then while building pango I got these errors: make[4]: Entering directory `/media/drive2/software/gnome3/checkout/pango-1.36.0/pango/mini-fribidi' CC fribidi.lo CC fribidi_char_type.lo CC fribidi_types.lo libtool: Version mismatch error. This is libtool 2.4.2, but the libtool: definition of this LT_INIT comes from libtool 2.4. libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 libtool: and run autoconf again. libtool: Version mismatch error. This is libtool 2.4.2, but the libtool: definition of this LT_INIT comes from libtool 2.4. libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 libtool: and run autoconf again. make[4]: *** [fribidi_char_type.lo] Error 63 make[4]: *** Waiting for unfinished jobs make[4]: *** [fribidi_types.lo] Error 63 libtool: Version mismatch error. This is libtool 2.4.2, but the libtool: definition of this LT_INIT comes from libtool 2.4. libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2 libtool: and run autoconf again. make[4]: *** [fribidi.lo] Error 63 I cannot find information on the net on how to fix this "Version mismatch error. This is libtool 2.4.2, but the libtool: definition of this LT_INIT comes from libtool 2.4." Any clues for fixing this? thanks -- Andy Tai, a...@atai.org, Skype: licheng.tai Year 2013 民國102年 自動的精神力是信仰與覺悟 自動的行為力是勞動與技能 ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: RFC: Popovers
Hi Carlos, thanks for working on this ! I've now played with your branch a bit, and think that it looks generally fine - I'd like to see a subsurface-based implementation for Wayland, just to verify that we'll be able to support this across backends. Here are some quick observations from playing with your testcases: - Your popovers with entries in them are not in the focus chain. There's no way to keynav into them. - With csd, the popovers can actually extend beyond toplevel - only as far as the shadow / invisible borders allow it. Not a problem, I'd say. - There's a behaviour difference wrt to grabs between csd and non-csd - dragging a window by the titlebar breaks the grab in the csd case, causing popovers to disappear. This is probably a difference we'll have to live with. - A funny with csd and window-dragging: try it with GTK_TEST_TOUCHSCREEN - the selection handles are left behind. Probably a csd regression independent of popovers. - Something also broke wrt to mnemonics in the popover: I see _Cut C_opy _Paste in the ui ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: GObject Introspection Enum details
Thanks Jasper I've somehow overlooked that GIEnumInfo is inherited GIRegisteredTypeInfo, not directly from GIBaseInfo. Unfortunately, g_registered_type_info_get_type_name() returns NULL. I've also tried g_registered_type_info_get_g_type & g_type_name: GType type = g_registered_type_info_get_g_type(info); const gchar * name = g_type_name(type); but it returns "void". > mind asking why you want to know? I am trying to automate binding generation for Swi-Prolog (http://www.swi-prolog.org/). Currently I am working on datatype conversion, for example, following (generated) function takes Prolog data structure (term) and converts it to C enum-integer: BookmarkFileError convert_term_to_BookmarkFileError(term_t var) { const char * value = convert_term_to_cstring(var); if (strcmp(value, "invalid_uri") == 0) { return invalid_uri; } else if (strcmp(value, "invalid_value") == 0) { return invalid_value; } else if (strcmp(value, "app_not_registered") == 0) { return app_not_registered; } else if (strcmp(value, "uri_not_found") == 0) { return uri_not_found; } else if (strcmp(value, "read") == 0) { return read; } else if (strcmp(value, "unknown_encoding") == 0) { return unknown_encoding; } else if (strcmp(value, "write") == 0) { return write; } else if (strcmp(value, "file_not_found") == 0) { return file_not_found; } printf("Error in convert_term_to_BookmarkFileError while converting value\n"); return (BookmarkFileError)0; } But I need to get exact names for enum (and enum values, but this is another problem I hadn't investigated yet). On Sunday 17 November 2013 11:51:24 Jasper St. Pierre wrote: > You can try g_registered_type_info_get_type_name(), but mind asking why you > want to know? > ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: gtk 3.10 compiling failed on Mac OS X
On Nov 17, 2013, at 4:01 AM, cee1 wrote: > Hi, > > https://git.gnome.org/browse/gtk+/tree/gdk/quartz/gdkevents-quartz.c#n1683 > there misses a right brace. Already reported: https://bugzilla.gnome.org/show_bug.cgi?id=712514 Thanks. Regards, John Ralls ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Re: GObject Introspection Enum details
You can try g_registered_type_info_get_type_name(), but mind asking why you want to know? On Sun, Nov 17, 2013 at 11:33 AM, Aleksey wrote: > Hi guys > > > > I am trying to use GIRepository (version 1.38) to retrieve Enumeration > details and I'm wondering how to retrieve C-name of Enum. For example, I > have GIEnumInfo instance for GBookmarkFileError ( > https://developer.gnome.org/glib/2.38/glib-Bookmark-file-parser.html#GBookmarkFileError > ). > > Calling g_base_info_get_name gives me BookmarkFileError, not > GBookmarkFileError. > > After looking at *.gir file contents for GLib, I've found that required > value is stored in c:type attribute: > > > > > c:type="GBookmarkFileError" > > glib:error-quark="g_bookmark_file_error_quark"> > > ... > > > > > > so I expected to be able to get the name using g_base_info_get_attribute, > however, checking available attributes with > g_base_info_iterate_attributesproduced no results. Code used to check > attributes (no attribute > names/values are printed): > > > > // print available attributes, taken from GIRepository manual page > > void print_attributes(GIBaseInfo *info) > > { > > GIAttributeIter iter = { 0, }; > > char * name; > > char * value; > > while (g_base_info_iterate_attributes (info, &iter, &name, &value)) { > > g_print ("attribute name: %s value: %s", name, value); > > } > > } > > > > int main(int argc, char ** argv) > > { > > GIRepository *repo = g_irepository_get_default(); > > g_irepository_require(repo, "GLib", NULL, 0, NULL); > > gint count = g_irepository_get_n_infos(repo, "GLib"); > > // find first enum > > int i; > > GIBaseInfo * info = NULL; > > for (i = 0; i < count; i++) { > > info = g_irepository_get_info(repo, "GLib", i); > > GIInfoType type = g_base_info_get_type(info); > > if (type == GI_INFO_TYPE_ENUM) break; > > } > > > > const gchar * name = g_base_info_get_name(info); > > printf("Enum: %s\n", name); > > print_attributes(info); > > > > return 0; > > } > > Could you please advise on how is it possible to get C-type name for enum > (e.g. GBookmarkFileError). > > ___ > gtk-devel-list mailing list > gtk-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-devel-list > > -- Jasper ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list
GObject Introspection Enum details
Hi guys I am trying to use GIRepository (version 1.38) to retrieve Enumeration details and I'm wondering how to retrieve C-name of Enum. For example, I have GIEnumInfo instance for GBookmarkFileError (https://developer.gnome.org/glib/2.38/glib-Bookmark-file-parser.html#GBookmarkFileError). Calling /g_base_info_get_name/ gives me BookmarkFileError, not GBookmarkFileError. After looking at *.gir file contents for GLib, I've found that required value is stored in c:type attribute: ... so I expected to be able to get the name using /g_base_info_get_attribute/, however, checking available attributes with /g_base_info_iterate_attributes/ produced no results. Code used to check attributes (no attribute names/values are printed): // print available attributes, taken from GIRepository manual page void print_attributes(GIBaseInfo *info) { GIAttributeIter iter = { 0, }; char * name; char * value; *while* (g_base_info_iterate_attributes (info, &iter, &name, &value)) { g_print ("attribute name: %s value: %s", name, value); } } int main(int argc, char ** argv) { GIRepository *repo = g_irepository_get_default(); g_irepository_require(repo, "GLib", NULL, 0, NULL); gint count = g_irepository_get_n_infos(repo, "GLib"); // find first enum int i; GIBaseInfo * info = NULL; *for* (i = 0; i < count; i++) { info = g_irepository_get_info(repo, "GLib", i); GIInfoType type = g_base_info_get_type(info); *if* (type == GI_INFO_TYPE_ENUM) *break*; } const gchar * name = g_base_info_get_name(info); printf("Enum: %s\n", name); print_attributes(info); *return* 0; } Could you please advise on how is it possible to get C-type name for enum (e.g. GBookmarkFileError). ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list
gtk 3.10 compiling failed on Mac OS X
Hi, https://git.gnome.org/browse/gtk+/tree/gdk/quartz/gdkevents-quartz.c#n1683 there misses a right brace. -- Regards, - cee1 ___ gtk-devel-list mailing list gtk-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-devel-list