This list is closed, nobody may subscribe to it.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(33) |
Aug
(12) |
Sep
(28) |
Oct
(1) |
Nov
(30) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(3) |
Feb
(22) |
Mar
(31) |
Apr
(49) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(42) |
Sep
(62) |
Oct
(11) |
Nov
(28) |
Dec
(16) |
2011 |
Jan
(11) |
Feb
(44) |
Mar
(43) |
Apr
(53) |
May
(54) |
Jun
(54) |
Jul
(15) |
Aug
(11) |
Sep
(8) |
Oct
(2) |
Nov
(4) |
Dec
(4) |
2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(6) |
Dec
(2) |
2013 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(8) |
Jul
(6) |
Aug
(4) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(1) |
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(18) |
Sep
|
Oct
|
Nov
|
Dec
(4) |
2015 |
Jan
(2) |
Feb
|
Mar
|
Apr
(13) |
May
(5) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
(9) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Stephen P. <st...@mp...> - 2011-05-12 15:49:08
|
We are porting a 32 bit app. It will stay a 32 bit app for a few years for good reasons. We made a 32 bit build of gtk-osx on a Mac Mini running OS X 10.6.7. We followed the instructions on the build page. Our test app can link to gtk and libglade. As part of the build, we also made a 32 bit build of Glade to make life easier for our developers. This runs, but gives a vast number of "widget-xxx not found" messages, and no icons appear in the left hand panes of Glade. This makes me think that some path or environment variable is not set. Can anyone give us a clue? Stephen -- Stephen Pelc, st...@mp... MicroProcessor Engineering Ltd - More Real, Less Time 133 Hill Lane, Southampton SO15 5AF, England tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691 web: http://www.mpeforth.com - free VFX Forth downloads -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |
From: John R. <jr...@ce...> - 2011-05-12 12:36:02
|
On May 12, 2011, at 5:43 AM, Antoine Martin wrote: > (snip) >> I've attached my revised test-statusicon.py. Try it and see if you can get the "Icon Activated" message. > I'll give it a go asap (a week or two). > >> No, in bugzilla against Gtk. It's a gtk bug, not a gtk-osx bug. > Found an existing bug so I added info there, looks like the same issue: > https://bugzilla.gnome.org/show_bug.cgi?id=549153 Great, thanks. Regards, John Ralls |
From: Antoine M. <an...@na...> - 2011-05-12 09:44:09
|
(snip) > I've attached my revised test-statusicon.py. Try it and see if you can get the "Icon Activated" message. I'll give it a go asap (a week or two). > No, in bugzilla against Gtk. It's a gtk bug, not a gtk-osx bug. Found an existing bug so I added info there, looks like the same issue: https://bugzilla.gnome.org/show_bug.cgi?id=549153 Cheers Antoine |
From: Victor <iku...@gm...> - 2011-05-12 06:07:39
|
Hi John, Thanks for the heads up. the DYLD_FALLBACK_LIBRARY_PATH worked well. Victor On Thu, May 5, 2011 at 7:12 AM, John Ralls <jr...@ce...> wrote: > > On May 4, 2011, at 8:55 PM, Victor wrote: > > > Hi John, > > > > Basically my program is a GUI which simulates some hardware. My user can > write their own program to control the simulated hardware. That's why the > user needs to compile my program. > > > > I have copied over all the include and lib folders in the gtk/inst to my > package. I have used gcc -L and -I options to redirect the include and > library files there is no problem with the compiling and linking as I have > follow all the libraries specified by pkg-config. I am not sure how the > loadable modules works in Mac OSX. > > > > It will be great if you can tell me what I need to tweak in order to > change the path of the dynamic library? > > You still haven't told me what kind of a package it is. > > By "tweak", do you mean $LD_LIBRARY_PATH? OSX changes it to > DYLD_LIBRARY_PATH, and I think that if you look at the man page for those > you'll find most of the answers you need. If not, there's plenty more in the > Developer Documentation that Apple provided on your Mac. > > Regards, > John Ralls > > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gtk-osx-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users > |
From: John R. <jr...@ce...> - 2011-05-11 18:09:00
|
On May 10, 2011, at 4:49 PM, san hoi wrote: > Configuration: > > Source code location: . > Compiler: gcc > Completion Providers: yes > Glade Catalog: no > > *** Building gtksourceview *** [1/1] > make > make all-recursive > Making all in gtksourceview > make all-recursive > Making all in language-specs > make[4]: Nothing to be done for `all'. > Making all in completion-providers > Making all in words > make[5]: Nothing to be done for `all'. > make[5]: Nothing to be done for `all-am'. > CC gtksourceview-i18n.lo > gtksourceview-i18n.c: In function 'get_locale_dir': > gtksourceview-i18n.c:48: error: 'IgeMacBundle' undeclared (first use > in this function) > gtksourceview-i18n.c:48: error: (Each undeclared identifier is > reported only once > gtksourceview-i18n.c:48: error: for each function it appears in.) > gtksourceview-i18n.c:48: error: 'bundle' undeclared (first use in this function) > gtksourceview-i18n.c:48: warning: implicit declaration of function > 'ige_mac_bundle_get_default' > gtksourceview-i18n.c:48: warning: nested extern declaration of > 'ige_mac_bundle_get_default' > gtksourceview-i18n.c:50: warning: implicit declaration of function > 'ige_mac_bundle_get_is_app_bundle' > gtksourceview-i18n.c:50: warning: nested extern declaration of > 'ige_mac_bundle_get_is_app_bundle' > gtksourceview-i18n.c:52: warning: implicit declaration of function > 'ige_mac_bundle_get_localedir' > gtksourceview-i18n.c:52: warning: nested extern declaration of > 'ige_mac_bundle_get_localedir' > gtksourceview-i18n.c:52: warning: passing argument 1 of 'g_strdup' > makes pointer from integer without a cast > make[4]: *** [gtksourceview-i18n.lo] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > I occured above build phase error. Occuring this error is macport too. > http://old.nabble.com/-MacPorts---27923%3A-gtkintegration2-does-not-build-properly-against-gtk2-%2Bquartz-td30640660.html > > So, i try homebrew, It's compile successful! > However, It's trasparent functionarity no work. > > Is there Tutrial how to build gtksourceview in jhbuild? Please in future downsample your screenshots (maybe into jpegs?); there's a 50K size limit on the mailing list (that I overrode for your post). Please also note that this mailing list is for support of Gtk-OSX only; MacPorts and Homebrew have their own mailing lists and forums. As a general rule, if you have the same problem on more than one build system it strongly suggests that the problem is with the software you're trying to build, not with the build system. Since ige-mac-integration doesn't export a variable called IgeMacBundle (it doesn't export any variables, just functions, and they use standard gtk style, e.g. ige_mac_bundle_get_localedir()), I'd have to say this is a gtksourceview bug. If Jesse's changes don't fix your problem, please file a bug against gtksourceview in bugzilla. Regards, John Ralls |
From: Jesse v. d. K. <jes...@ep...> - 2011-05-11 10:59:55
|
Hi, 2011/5/10 san hoi <hoi...@gm...> > Configuration: > > Source code location: . > Compiler: gcc > Completion Providers: yes > Glade Catalog: no > > *** Building gtksourceview *** [1/1] > make > make all-recursive > Making all in gtksourceview > make all-recursive > Making all in language-specs > make[4]: Nothing to be done for `all'. > Making all in completion-providers > Making all in words > make[5]: Nothing to be done for `all'. > make[5]: Nothing to be done for `all-am'. > CC gtksourceview-i18n.lo > gtksourceview-i18n.c: In function 'get_locale_dir': > gtksourceview-i18n.c:48: error: 'IgeMacBundle' undeclared (first use > in this function) > gtksourceview-i18n.c:48: error: (Each undeclared identifier is > reported only once > gtksourceview-i18n.c:48: error: for each function it appears in.) > gtksourceview-i18n.c:48: error: 'bundle' undeclared (first use in this > function) > gtksourceview-i18n.c:48: warning: implicit declaration of function > 'ige_mac_bundle_get_default' > gtksourceview-i18n.c:48: warning: nested extern declaration of > 'ige_mac_bundle_get_default' > gtksourceview-i18n.c:50: warning: implicit declaration of function > 'ige_mac_bundle_get_is_app_bundle' > gtksourceview-i18n.c:50: warning: nested extern declaration of > 'ige_mac_bundle_get_is_app_bundle' > gtksourceview-i18n.c:52: warning: implicit declaration of function > 'ige_mac_bundle_get_localedir' > gtksourceview-i18n.c:52: warning: nested extern declaration of > 'ige_mac_bundle_get_localedir' > gtksourceview-i18n.c:52: warning: passing argument 1 of 'g_strdup' > makes pointer from integer without a cast > make[4]: *** [gtksourceview-i18n.lo] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > I occured above build phase error. Occuring this error is macport too. > > http://old.nabble.com/-MacPorts---27923%3A-gtkintegration2-does-not-build-properly-against-gtk2-%2Bquartz-td30640660.html > > I have been working on this and actually I should push my changes (maybe I did not yet). I've ported gsv to the newer API of ige mac integration. > So, i try homebrew, It's compile successful! > However, It's trasparent functionarity no work. > This seems to be quite unrelated... > > Is there Tutrial how to build gtksourceview in jhbuild? > Regards. > > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Gtk-osx-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users > > |
From: san h. <hoi...@gm...> - 2011-05-10 20:49:12
|
Configuration: Source code location: . Compiler: gcc Completion Providers: yes Glade Catalog: no *** Building gtksourceview *** [1/1] make make all-recursive Making all in gtksourceview make all-recursive Making all in language-specs make[4]: Nothing to be done for `all'. Making all in completion-providers Making all in words make[5]: Nothing to be done for `all'. make[5]: Nothing to be done for `all-am'. CC gtksourceview-i18n.lo gtksourceview-i18n.c: In function 'get_locale_dir': gtksourceview-i18n.c:48: error: 'IgeMacBundle' undeclared (first use in this function) gtksourceview-i18n.c:48: error: (Each undeclared identifier is reported only once gtksourceview-i18n.c:48: error: for each function it appears in.) gtksourceview-i18n.c:48: error: 'bundle' undeclared (first use in this function) gtksourceview-i18n.c:48: warning: implicit declaration of function 'ige_mac_bundle_get_default' gtksourceview-i18n.c:48: warning: nested extern declaration of 'ige_mac_bundle_get_default' gtksourceview-i18n.c:50: warning: implicit declaration of function 'ige_mac_bundle_get_is_app_bundle' gtksourceview-i18n.c:50: warning: nested extern declaration of 'ige_mac_bundle_get_is_app_bundle' gtksourceview-i18n.c:52: warning: implicit declaration of function 'ige_mac_bundle_get_localedir' gtksourceview-i18n.c:52: warning: nested extern declaration of 'ige_mac_bundle_get_localedir' gtksourceview-i18n.c:52: warning: passing argument 1 of 'g_strdup' makes pointer from integer without a cast make[4]: *** [gtksourceview-i18n.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 I occured above build phase error. Occuring this error is macport too. http://old.nabble.com/-MacPorts---27923%3A-gtkintegration2-does-not-build-properly-against-gtk2-%2Bquartz-td30640660.html So, i try homebrew, It's compile successful! However, It's trasparent functionarity no work. Is there Tutrial how to build gtksourceview in jhbuild? Regards. |
From: John R. <jr...@ce...> - 2011-05-05 14:12:31
|
On May 4, 2011, at 8:55 PM, Victor wrote: > Hi John, > > Basically my program is a GUI which simulates some hardware. My user can write their own program to control the simulated hardware. That's why the user needs to compile my program. > > I have copied over all the include and lib folders in the gtk/inst to my package. I have used gcc -L and -I options to redirect the include and library files there is no problem with the compiling and linking as I have follow all the libraries specified by pkg-config. I am not sure how the loadable modules works in Mac OSX. > > It will be great if you can tell me what I need to tweak in order to change the path of the dynamic library? You still haven't told me what kind of a package it is. By "tweak", do you mean $LD_LIBRARY_PATH? OSX changes it to DYLD_LIBRARY_PATH, and I think that if you look at the man page for those you'll find most of the answers you need. If not, there's plenty more in the Developer Documentation that Apple provided on your Mac. Regards, John Ralls |
From: Victor <iku...@gm...> - 2011-05-05 03:55:25
|
Hi John, Basically my program is a GUI which simulates some hardware. My user can write their own program to control the simulated hardware. That's why the user needs to compile my program. I have copied over all the include and lib folders in the gtk/inst to my package. I have used gcc -L and -I options to redirect the include and library files there is no problem with the compiling and linking as I have follow all the libraries specified by pkg-config. I am not sure how the loadable modules works in Mac OSX. It will be great if you can tell me what I need to tweak in order to change the path of the dynamic library? Thanks, Victor On Wed, May 4, 2011 at 5:51 PM, John Ralls <jr...@ce...> wrote: > > On May 4, 2011, at 11:37 AM, Victor wrote: > > > Hi there, > > > > I need a bit of help on how to package a precompiled GTK library for OSX. > I need to distribute a GTK+ programming environment for my users to compile > my program in MAC OSX. I have copied the lib and include files into my > package. The problem is the dyld. It can't find the dynamic libraries and > also gdk-pixbuf is also complaining about not finding the proper modules. > Any help is appreciated. > > Not enough information, starting with "why are you making users compile > your program?". > > Then there's "how are you packaging it?" and "did you include *all* of the > libraries or just libgtk-quartz.2.0.0.dylib? What about the loadable > modules?" > > Finishing up with "if you're asking this kind of basic question, do you > even have the most elementary clue about linking?" > > Regards, > John Ralls > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gtk-osx-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users > |
From: John R. <jr...@ce...> - 2011-05-05 00:51:48
|
On May 4, 2011, at 11:37 AM, Victor wrote: > Hi there, > > I need a bit of help on how to package a precompiled GTK library for OSX. I need to distribute a GTK+ programming environment for my users to compile my program in MAC OSX. I have copied the lib and include files into my package. The problem is the dyld. It can't find the dynamic libraries and also gdk-pixbuf is also complaining about not finding the proper modules. Any help is appreciated. Not enough information, starting with "why are you making users compile your program?". Then there's "how are you packaging it?" and "did you include *all* of the libraries or just libgtk-quartz.2.0.0.dylib? What about the loadable modules?" Finishing up with "if you're asking this kind of basic question, do you even have the most elementary clue about linking?" Regards, John Ralls |
From: Shawn B. <sha...@ho...> - 2011-05-04 19:45:15
|
Not sure if it is a development issue, or a user issue. Our application uses Cairo to draw directly into a cairo context the following page: http://www.inksystemsinc.com/images/gtkodie/ODIE%20App%20window.png However when we print this to PDF or a printer device we get: http://www.inksystemsinc.com/images/gtkodie/ODIE%20Printed%20PDF%20no%20selection.png and it does not happen all the time. Only on rare instances. I have tried to look for invalid strings in the text, and I am in the process of looking for buffer overruns that could affect the output. But I am confused as to why it displays on screen, but not in a PDF or printer. The actual drawing routing is the same exact function, it is simply called from the different callbacks form Draw and Print sending to the function the ciaro context and sizes. The reason I think this has to be Ciaro to PDF issues, is the following images, which is the blank PDF with all the text highlighted. Notice that the text is there, it is either white or in some glyth PDF/printer can not draw, but that does not make any sense since it only happens on 1 out of 1000 formulas. More importantly it always happens with the same formulas. SY 17201 does not have any problems. http://www.inksystemsinc.com/images/gtkodie/ODIE%20PDF%20text%20Selected.png To make things even more strange, this all seems to work fine when I compile using VC 2010 Express on Windows XP 32it. It only seems to be happening on the OS X side. I have not tried native Linux. Any assistance would be greatly appreciated :) OS X 10.6.7 xCode 4 GTK 2.28 Shawn Code: isi_display_cairo_formula gets called both from the onDraw Callback and onPrint callbacks, it creates a context for DarwingArea or from the printer and passes it through. void isi_display_cairo_formula(IsiDisplay *self, cairo_t *cr, IsiComponent *c, guint page_nr, guint x, guint y, guint width, guint height) { .... cairo_set_source_rgba(cr, 0.0, 0.0, 0.0, 1.0); /* Set start of the advance */ advanced2 = advanced = 0.16 * ymultip; /* Display formula information */ pango_font_description_set_absolute_size(font_description, 0.015 * PANGO_SCALE); pango_layout_set_font_description(layout,font_description); graphics_draw_props(cr, layout, font_description, 0.016, 0.015,(x + 0.53470588) * xmultip ,( y + (0.1044545 - 0.01572)) * ymultip, rmc, voc, gravity, stability, strength, tack); /* Display the formulation */ cairo_set_source_rgba(cr, 0.0, 0.0, 0.0, 1.0); pango_font_description_set_absolute_size(font_description, 0.017 * PANGO_SCALE); pango_layout_set_font_description(layout,font_description); g_object_get((GObject*)c,"formulation",&list,NULL); if(list != NULL){ fline_rows = g_list_length(list->rows); if(page_nr <= (guint)(fline_rows / 20) ){ advanced2 = advanced = graphics_draw_formula_lines(cr, layout, font_description, xmultip,ymultip, 0.030, 0.017, 0.03147272, 0.15034955 , list, page_nr);} } .... } And the /** * graphics_draw_formula_lines: * @cr: cairo_t context to draw into * @xm: scale adjustment in x * @ym: scale adjustment in y * @x: x location on the context * @y: y location on the context * @line_width: width the line * @font_size: Size of font * @list: An #IsiList whos row pointer is of type #IsiBatchLine * * Renders to a cairo context the formulation lines for a component. * * Returns: the amount of y used in rendering */ gdouble graphics_draw_formula_lines(cairo_t *cr, PangoLayout *layout, PangoFontDescription *font_description, gdouble xm, gdouble ym, gdouble line_width, gdouble font_size, gdouble x, gdouble y, IsiList *list, guint page_nr) { IsiFormulaLine *fl; gchar *line_description = NULL; guint num_rows,i; /* number of order lines to draw */ gchar buff[255]; gdouble advanced = 0.0f; gdouble tperc = 0.0f; gdouble tlbs = 0.0f; gdouble albs = 0.0f; guint num_lines = 20; /* ALways plus 1 for header */ gdouble box_size = 0.937786f; gdouble ypadding = 0.0f; guint num_cols = 8; /* ALways plus 1 for header */ gdouble row_width = 0.0f; gdouble row_half_width = 0.0f; guint line_start = 0; guint line_end = 0; const double dash_pattern[5] = {0.005,0.005,0.005,0.005,0.005}; /* Sanity Check */ g_return_if_fail(cr != NULL); g_return_if_fail(layout != NULL); g_return_if_fail(font_description != NULL); /* Local Check */ g_return_val_if_fail( list != NULL, 0.0); num_rows = g_list_length(list->rows); line_start = (page_nr) * num_lines; line_end = line_start + num_lines; /* Get row width and set start leaving room for labels at begining of each line*/ row_width = box_size/num_cols; row_half_width = box_size/(num_cols*2); ypadding = ((line_width - (font_size*0.5))/2); /* Defualt settings */ //pango_font_description_set_absolute_size(font_description, font_size * PANGO_SCALE); //pango_layout_set_font_description(layout,font_description); pango_layout_set_alignment (layout,PANGO_ALIGN_LEFT); pango_layout_set_width(layout, row_width * PANGO_SCALE); pango_layout_set_attributes(layout,NULL); /* CLEAR BEFORE WE USE TEXT AGAIN */ if(line_start > num_rows){ return 0.0;} if(line_end > num_rows) { line_end = num_rows;} for (i=line_start;i<line_end;i++){ // if (i == 3) i++; pango_layout_set_attributes(layout,NULL); /* CLEAR BEFORE WE USE TEXT AGAIN */ /* DEBUG ONLY */ // cairo_rectangle(cr, (x) * xm , (y + ( (i-line_start) * line_width)) * ym, // box_size,line_width); // cairo_stroke(cr); /* Draw the amount ordered */ fl = (IsiFormulaLine*) g_list_nth_data(list->rows,i); tperc +=fl->percentage; if(strncmp(fl->aid,"MSG",3) == 0){ cairo_set_source_rgba(cr, 0.8, 0.0, 0.0, 1.0); pango_layout_set_width(layout, row_width * PANGO_SCALE); pango_layout_set_alignment (layout,PANGO_ALIGN_LEFT); cairo_move_to(cr, (x + (row_half_width * 0.4)) * xm , (y + ( (i-line_start) * line_width) + ypadding) * ym ); pango_layout_set_text(layout, " *******",-1); pango_cairo_show_layout(cr,layout); pango_layout_set_width(layout, row_width * 3 * PANGO_SCALE); cairo_move_to(cr, (x + (row_width * 1)) * xm , (y + ( (i-line_start) * line_width) + ypadding) * ym ); g_sprintf(buff, " %s ********",fl->description); pango_layout_set_text(layout, buff,-1); pango_cairo_show_layout(cr,layout); } else { cairo_set_source_rgba(cr, 0.0, 0.0, 0.0, 1.0); pango_layout_set_width(layout, row_width * PANGO_SCALE); pango_layout_set_alignment (layout,PANGO_ALIGN_LEFT); /* Alpha Numeric of item */ cairo_move_to(cr, (x + (row_half_width * 0.4)) * xm , (y + ( (i-line_start) * line_width) + ypadding) * ym ); g_sprintf(buff, " %s-%d",fl->aid,fl->nid); pango_layout_set_text(layout, buff,-1); pango_cairo_show_layout(cr,layout); pango_layout_set_width(layout, row_width * 3 * PANGO_SCALE); if(fl->description != NULL){ /* Form description of the line */ if (fl->hold_percentage != 0.00f){ /* Escape any specail charactors in the line */ line_description = g_strescape(fl->description,NULL); cairo_move_to(cr, (x + (row_width * 1)) * xm , (y + ( (i-line_start) * line_width) + ypadding) * ym ); g_sprintf(buff, "%s <span color=\"blue\" size=\"small\">( hold %.2f % )</span>",line_description,fl->hold_percentage); pango_layout_set_markup(layout, buff,-1); pango_cairo_show_layout(cr,layout); free(line_description); } else { cairo_move_to(cr, (x + (row_width * 1)) * xm , (y + ( (i-line_start) * line_width) + ypadding) * ym ); g_sprintf(buff, "%s",fl->description); /* Escape any specail charactors in the line */ line_description = g_strescape(buff,NULL); pango_layout_set_attributes(layout,NULL); /* CLEAR BEFORE WE USE TEXT AGAIN */ pango_layout_set_text(layout, line_description,35); pango_cairo_show_layout(cr,layout); free(line_description); } } pango_layout_set_alignment (layout,PANGO_ALIGN_RIGHT); pango_layout_set_width(layout, row_width * PANGO_SCALE); /* Alpha Numeric of item */ cairo_move_to(cr, (x + (row_half_width * 7.5)) * xm , (y + ( (i-line_start) * line_width) + ypadding) * ym ); g_sprintf(buff, "%5.3f",fl->percentage); pango_layout_set_text(layout, buff,-1); pango_cairo_show_layout(cr,layout); } } /* Left Align for numeric text */ cairo_set_source_rgba(cr, 0.0, 0.3, 0.3, 1.0); pango_layout_set_width(layout, row_width * PANGO_SCALE); pango_layout_set_alignment (layout,PANGO_ALIGN_RIGHT); /* Defualt settings */ pango_font_description_set_absolute_size(font_description, font_size * 1.3 * PANGO_SCALE); pango_layout_set_font_description(layout,font_description); ypadding = ((line_width - (font_size))/2); /* Percentage of the line */ cairo_move_to(cr, (x + (row_half_width * 7.5)) * xm , (y + ( (num_lines) * line_width) + ypadding) * ym ); g_sprintf(buff, "%5.3f",tperc); pango_layout_set_text(layout, buff,-1); pango_cairo_show_layout(cr,layout); /* calculate lower bounding point */ advanced = ( y + ( ((gdouble)line_start - line_width) * line_width) ); return advanced; } |
From: Victor <iku...@gm...> - 2011-05-04 18:37:25
|
Hi there, I need a bit of help on how to package a precompiled GTK library for OSX. I need to distribute a GTK+ programming environment for my users to compile my program in MAC OSX. I have copied the lib and include files into my package. The problem is the dyld. It can't find the dynamic libraries and also gdk-pixbuf is also complaining about not finding the proper modules. Any help is appreciated. Thanks, Victor |
From: John R. <jr...@ce...> - 2011-05-02 19:18:03
|
On May 2, 2011, at 10:43 AM, Antoine Martin wrote: > On 05/03/2011 12:36 AM, John Ralls wrote: >> >> On May 2, 2011, at 3:11 AM, Antoine Martin wrote: >> >>> Hi, >>> >>> My app uses a popdown menu from a StatusIcon, it does not necessarily >>> have any windows of its own shown on screen. >>> >>> The problem is that the popdown menu shown ('popup-menu' signal on the >>> StatusIcon) will react to mouse clicks correctly if the app was already >>> focused, but not if another app was in the foreground and the user >>> clicks on the StatusIcon ('activate' signal). It then takes a long click >>> to get the menu to register it (as the app has to gain focus). >>> >>> Is there a way I can force my application to gain focus when the >>> StatusIcon is clicked on? Or another workaround? >>> >>> Simple example application attached (add a 'tray.png' icon of your >>> choosing). Run it, then try to interact with the menu hanging of it. >> >> Interesting. >> >> I instrumented your sample with a few more print statements, and it looks like on OSX the "activate" signal is either not getting sent or not getting received. > IIRC, the 'activate' signal fires but only when the application is > already in focus and you click on the StatusIcon again. Maybe in your application. In the test app, it never fires, only the popup-menu signal does... and it does even when the application doesn't have focus. What doesn't work when the app doesn't have focus is the menu, because the event loop that works the menu isn't running when the app doesn't have focus, so it can't get any events. I've attached my revised test-statusicon.py. Try it and see if you can get the "Icon Activated" message. > >> Please (after checking that there isn't one already) file a bug. > Sorry, probably a silly question, but where? > This bug (the only open gtk-osx one?) is also related to focus: > http://sourceforge.net/tracker/?func=detail&aid=660693&group_id=70160&atid=526807 > > FYI: I did try all sorts of ways to focus the widget, or rather the gdk > window that backs it, to no avail. > No, in bugzilla against Gtk. It's a gtk bug, not a gtk-osx bug. Regards, John Ralls |
From: Antoine M. <an...@na...> - 2011-05-02 17:44:04
|
On 05/03/2011 12:36 AM, John Ralls wrote: > > On May 2, 2011, at 3:11 AM, Antoine Martin wrote: > >> Hi, >> >> My app uses a popdown menu from a StatusIcon, it does not necessarily >> have any windows of its own shown on screen. >> >> The problem is that the popdown menu shown ('popup-menu' signal on the >> StatusIcon) will react to mouse clicks correctly if the app was already >> focused, but not if another app was in the foreground and the user >> clicks on the StatusIcon ('activate' signal). It then takes a long click >> to get the menu to register it (as the app has to gain focus). >> >> Is there a way I can force my application to gain focus when the >> StatusIcon is clicked on? Or another workaround? >> >> Simple example application attached (add a 'tray.png' icon of your >> choosing). Run it, then try to interact with the menu hanging of it. > > Interesting. > > I instrumented your sample with a few more print statements, and it looks like on OSX the "activate" signal is either not getting sent or not getting received. IIRC, the 'activate' signal fires but only when the application is already in focus and you click on the StatusIcon again. > Please (after checking that there isn't one already) file a bug. Sorry, probably a silly question, but where? This bug (the only open gtk-osx one?) is also related to focus: http://sourceforge.net/tracker/?func=detail&aid=660693&group_id=70160&atid=526807 FYI: I did try all sorts of ways to focus the widget, or rather the gdk window that backs it, to no avail. Thanks Antoine > > Regards, > John Ralls > > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gtk-osx-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users |
From: John R. <jr...@ce...> - 2011-05-02 17:36:11
|
On May 2, 2011, at 3:11 AM, Antoine Martin wrote: > Hi, > > My app uses a popdown menu from a StatusIcon, it does not necessarily > have any windows of its own shown on screen. > > The problem is that the popdown menu shown ('popup-menu' signal on the > StatusIcon) will react to mouse clicks correctly if the app was already > focused, but not if another app was in the foreground and the user > clicks on the StatusIcon ('activate' signal). It then takes a long click > to get the menu to register it (as the app has to gain focus). > > Is there a way I can force my application to gain focus when the > StatusIcon is clicked on? Or another workaround? > > Simple example application attached (add a 'tray.png' icon of your > choosing). Run it, then try to interact with the menu hanging of it. Interesting. I instrumented your sample with a few more print statements, and it looks like on OSX the "activate" signal is either not getting sent or not getting received. Please (after checking that there isn't one already) file a bug. Regards, John Ralls |
From: John R. <jr...@ce...> - 2011-05-02 15:57:06
|
On May 2, 2011, at 7:19 AM, Pascal wrote: > Hi John, > Well, I understand that all things in GTK 2 won't be fixed since GTK 3 is on the way. > But I was expecting a middle way as a standard default font implemented instead of getting an error :-( > Your expectations are too high. Again, this isn't the right place to discuss this. You should file a bug against Gtk. Regards, John Ralls |
From: Pascal <p....@or...> - 2011-05-02 14:19:08
|
Hi John, Well, I understand that all things in GTK 2 won't be fixed since GTK 3 is on the way. But I was expecting a middle way as a standard default font implemented instead of getting an error :-( By the way, I wrote for French readers a little howto install GTK and GTKAda. Regards, Pascal. http://blady.pagesperso-orange.fr Le 30 avr. 2011 à 23:08, John Ralls a écrit : > > On Apr 30, 2011, at 1:31 PM, Pascal wrote: > >> Hi John, thanks for your tips. >> I've tried some GTK-Ada examples picked up on the web. >> With one of them, I've got the following error (with extract of crash report): >> $ ./mine_detector >> Gtk-ERROR **: Unable to load "fixed" font >> aborting... >> Trace/BPT trap >> 30/04/11 10:01:20 ReportCrash[9337] Saved crash report for mine_detector[9335] version ??? (???) >> 0 libglib-2.0.0.dylib 0x0000000100bbcadd g_logv + 1311 >> 1 libglib-2.0.0.dylib 0x0000000100bbcc9a g_log + 235 >> 2 libgtk-quartz-2.0.0.dylib 0x000000010034583e gtk_style_get_font_internal + 551 >> >> This function calls gdk_font_load_for_display which is empty: >> ~/gtk/source/gtk+-2.24.0/gdk/quartz/gdkfont-quartz.c >> ... >> GdkFont* >> gdk_font_load_for_display (GdkDisplay *display, >> const gchar *font_name) >> { >> /* FIXME: Implement */ >> return NULL; >> } >> >> Is there some working version available yet? > > That's really a subject for gtk-app-dev (unless you want to contribute a patch, in which case you could write a bug), but: > > Well... no, not exactly. Gdkfont has been removed from Gtk+-3 and fonts and layout and such are handled directly by pango; there aren't even any wrappers. It probably works OK there, though I can't say I've tested it. Since 2.24 is a bug-fix end-of-life release series, it's not likely ever to be fixed there. That means that you'll have to wait until Gtk-Ada is ported to Gtk+-3 to have font features fully supported. The good news is that unlike some of the other bindings GtkAda appears to be active. > > Regards, > John Ralls > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gtk-osx-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users |
From: Antoine M. <an...@na...> - 2011-05-02 10:12:08
|
Hi, My app uses a popdown menu from a StatusIcon, it does not necessarily have any windows of its own shown on screen. The problem is that the popdown menu shown ('popup-menu' signal on the StatusIcon) will react to mouse clicks correctly if the app was already focused, but not if another app was in the foreground and the user clicks on the StatusIcon ('activate' signal). It then takes a long click to get the menu to register it (as the app has to gain focus). Is there a way I can force my application to gain focus when the StatusIcon is clicked on? Or another workaround? Simple example application attached (add a 'tray.png' icon of your choosing). Run it, then try to interact with the menu hanging of it. Thanks Antoine |
From: Christophe F. <cfe...@re...> - 2011-05-01 18:18:21
|
On Sun, May 01, 2011 at 11:04:04AM -0700, John Ralls wrote: > Interestingly, another guy, Cliff Sharp, wrote the list last week about > porting spice-gtk. Yep, I know, he mailed the spice mailing list, which is one of the reasons that led me to finally try gtk-osx. > > I don't update the stable moduleset very often because it's a lot of work > to test everything. Last time was the end of January, and it took almost > 2 weeks to get everything smoothed out so it's stable. Thanks for > offering your changes, but I'm not going to revisit it until late summer. I understand that, hopefully I'll test these changes myself soon. However, you should take the 2 other changes (gstreamer related) since without these, gstreamer wouldn't built at all (removal of bison and flex as deps since they no longer are part of gtk-osx.modules, and fix for the download URL). Christophe |
From: John R. <jr...@ce...> - 2011-05-01 18:04:15
|
On May 1, 2011, at 9:43 AM, Christophe Fergeau wrote: > Hi John, > > I've started playing with the gtk-osx jhbuild moduleset lately (to try to > build spice-gtk against gtk-osx). I had to make a few changes which you can > find at https://github.com/cfergeau/gtk-osx-build/commits/master . I'm not > sure what is the better way of getting them known (some mailing list? > github merge request?), that's why I'm mailing your directly. > Be aware that I haven't tested at all the commit updating the glib/gtk/... > versions used, so be careful with it :) I'll test it next time I do some > work on OSX. > > Thanks for working on gtk-osx, Yes, there's a mailing list for gtk-osx: https://lists.sourceforge.net/lists/listinfo/gtk-osx-users Interestingly, another guy, Cliff Sharp, wrote the list last week about porting spice-gtk. I don't update the stable moduleset very often because it's a lot of work to test everything. Last time was the end of January, and it took almost 2 weeks to get everything smoothed out so it's stable. Thanks for offering your changes, but I'm not going to revisit it until late summer. Regards, John Ralls |
From: John R. <jr...@ce...> - 2011-04-30 21:09:02
|
On Apr 30, 2011, at 1:31 PM, Pascal wrote: > Hi John, thanks for your tips. > I've tried some GTK-Ada examples picked up on the web. > With one of them, I've got the following error (with extract of crash report): > $ ./mine_detector > Gtk-ERROR **: Unable to load "fixed" font > aborting... > Trace/BPT trap > 30/04/11 10:01:20 ReportCrash[9337] Saved crash report for mine_detector[9335] version ??? (???) > 0 libglib-2.0.0.dylib 0x0000000100bbcadd g_logv + 1311 > 1 libglib-2.0.0.dylib 0x0000000100bbcc9a g_log + 235 > 2 libgtk-quartz-2.0.0.dylib 0x000000010034583e gtk_style_get_font_internal + 551 > > This function calls gdk_font_load_for_display which is empty: > ~/gtk/source/gtk+-2.24.0/gdk/quartz/gdkfont-quartz.c > ... > GdkFont* > gdk_font_load_for_display (GdkDisplay *display, > const gchar *font_name) > { > /* FIXME: Implement */ > return NULL; > } > > Is there some working version available yet? That's really a subject for gtk-app-dev (unless you want to contribute a patch, in which case you could write a bug), but: Well... no, not exactly. Gdkfont has been removed from Gtk+-3 and fonts and layout and such are handled directly by pango; there aren't even any wrappers. It probably works OK there, though I can't say I've tested it. Since 2.24 is a bug-fix end-of-life release series, it's not likely ever to be fixed there. That means that you'll have to wait until Gtk-Ada is ported to Gtk+-3 to have font features fully supported. The good news is that unlike some of the other bindings GtkAda appears to be active. Regards, John Ralls |
From: Pascal <p....@or...> - 2011-04-30 20:30:57
|
Hi John, thanks for your tips. I've tried some GTK-Ada examples picked up on the web. With one of them, I've got the following error (with extract of crash report): $ ./mine_detector Gtk-ERROR **: Unable to load "fixed" font aborting... Trace/BPT trap 30/04/11 10:01:20 ReportCrash[9337] Saved crash report for mine_detector[9335] version ??? (???) 0 libglib-2.0.0.dylib 0x0000000100bbcadd g_logv + 1311 1 libglib-2.0.0.dylib 0x0000000100bbcc9a g_log + 235 2 libgtk-quartz-2.0.0.dylib 0x000000010034583e gtk_style_get_font_internal + 551 This function calls gdk_font_load_for_display which is empty: ~/gtk/source/gtk+-2.24.0/gdk/quartz/gdkfont-quartz.c ... GdkFont* gdk_font_load_for_display (GdkDisplay *display, const gchar *font_name) { /* FIXME: Implement */ return NULL; } Is there some working version available yet? Regards, Pascal. http://blady.pagesperso-orange.fr > Re: [Gtk-osx-users] GTK-Ada. > From: John Ralls <jralls@ce...> - 2011-04-15 02:34 > On Apr 14, 2011, at 1:29 PM, Pascal wrote: > > > Hello, thanks for making tremendous GTK-OSX! > > > > Just to report that the install is nice. > > I have one small problem with access to libtiff on > http://download.osgeo.org/ > , they gave me an other URL: > > > http://download2.osgeo.org/ > > > > > I've also install GTK for Ada from Adacore: > > > http://libre.adacore.com/libre/tools/GtkAda/ > > > > > It was installed perfectly. > > I've just had to remove -arch x86_64 from CFLAGS because GNAT don't understand it. > > I've done it by hand with Terminal. Is there some configuration file to modify? > > > > Yes, and instructions are in the stock .jhbuildrc-custom that was installed by gtk-osx-build-setup.sh. > > Thanks for the heads-up about libtiff. But they both seem to be working at the moment, and there's no way to tell jhbuild about fallback download sites. > > Regards, > John Ralls > > |
From: Shawn B. <sha...@ho...> - 2011-04-27 16:48:57
|
Curious? Why not just use the native capacities build right into OS X? If I'm not mistaken Lion is going to have a full VNC solution (so it can be accessed from any VNC viewer), and currently gaining remote access, is as easy as putting everyone on a XMPP server like (Jabberd). Using iChat, all I have to do is right click on their name, and I get full access to the their desktop with sound and everything (they can talk while I control their screen), and the solution works very nice over VPN. http://macficionado.wordpress.com/2011/04/01/os-x-lion-to-have-multi-user-screen-sharing/ http://www.appleinsider.com/articles/11/03/31/mac_os_x_10_7_lion_to_introduce_multi_user_screen_sharing.html http://www.apple.com/remotedesktop/ In any case, I would think there are a lot of hurdles to over come to make something that is cross-platform between OSX and iOS, even if all you do is use Quartz 2D, and even if you manged to shoe horn GTK onto the ARM processor with what little memory is available, you are certainly asking for it. From: cs...@vb... Date: Tue, 26 Apr 2011 15:57:56 -0500 To: gtk...@li... Subject: Re: [Gtk-osx-users] Spice modulesets Thanks for the ideas and help I am currently trying to get spice-gtk working on OSX (http://spice-space.org/page/Spice-Gtk). It seems like the dependent libraries goes on forever. On Apr 26, 2011, at 3:46 PM, David Lowe wrote: > On 26 Apr, 2011, at 9:45 AM, John Ralls wrote: > >> You might check MacPorts and Fink to see what they've done about audio. > > I play a small part on the Fink stage; we have the circuit simulator and not this other Spice. I just got done looking over the info file for Gstreamer - the biggest issue with it seems to be passing the flags in the correct order. We've got a heap of players in Fink [including Totem and Amarok] but only a few have felt a need to supply CoreAudio plugins. I will try to look those over when i finish my homework... > > Sent from my MacBookPro > > Read enclosed instructions carefully before opening. > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gtk-osx-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users ____ ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Gtk-osx-users mailing list Gtk...@li... https://lists.sourceforge.net/lists/listinfo/gtk-osx-users |
From: Cliff S. <cs...@vb...> - 2011-04-26 20:58:04
|
Thanks for the ideas and help I am currently trying to get spice-gtk working on OSX (http://spice-space.org/page/Spice-Gtk). It seems like the dependent libraries goes on forever. On Apr 26, 2011, at 3:46 PM, David Lowe wrote: > On 26 Apr, 2011, at 9:45 AM, John Ralls wrote: > >> You might check MacPorts and Fink to see what they've done about audio. > > I play a small part on the Fink stage; we have the circuit simulator and not this other Spice. I just got done looking over the info file for Gstreamer - the biggest issue with it seems to be passing the flags in the correct order. We've got a heap of players in Fink [including Totem and Amarok] but only a few have felt a need to supply CoreAudio plugins. I will try to look those over when i finish my homework... > > Sent from my MacBookPro > > Read enclosed instructions carefully before opening. > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Gtk-osx-users mailing list > Gtk...@li... > https://lists.sourceforge.net/lists/listinfo/gtk-osx-users ____ |
From: David L. <doc...@ve...> - 2011-04-26 20:46:32
|
On 26 Apr, 2011, at 9:45 AM, John Ralls wrote: > You might check MacPorts and Fink to see what they've done about audio. I play a small part on the Fink stage; we have the circuit simulator and not this other Spice. I just got done looking over the info file for Gstreamer - the biggest issue with it seems to be passing the flags in the correct order. We've got a heap of players in Fink [including Totem and Amarok] but only a few have felt a need to supply CoreAudio plugins. I will try to look those over when i finish my homework... Sent from my MacBookPro Read enclosed instructions carefully before opening. |