Re: Static library with Gtk 3

2017-12-04 Thread Lucas Levrel via gtk-app-devel-list
hip your application in a bundled archive that replicates the file system layout that GTK expects, alongside a launcher Is this supposed to save loading time and storage space? -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-d

Re: Static library with Gtk 3

2017-12-04 Thread Lucas Levrel via gtk-app-devel-list
Le 29 novembre 2017, à 18:57, Мариано Гаудикс a écrit : Hi . I need a example for compiling a static library with Gtk3 libraries together . MXE might help you with this: http://mxe.cc/ -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app

Re: Cross platform development

2017-03-19 Thread Lucas Levrel via gtk-app-devel-list
se it was: http://www.dependencywalker.com/ -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Cross platform development

2017-03-18 Thread Lucas Levrel via gtk-app-devel-list
y GTK2 app, but it has GTK3 also and many, many more libs! http://mxe.cc/#packages As you can guess, with a statically linked exe, no more headache with lib distribution, installers and so on... -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk

Re[5]: argv revisited

2016-05-08 Thread Lucas Levrel
one difference in that I call g_file_new_for_path to turn the filename string into a GFile. Maybe this is relevant, maybe not, I can't tell. HTH -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re[4]: Compiling for Windows [Was: argv revisited]

2016-05-06 Thread Lucas Levrel
n your irony, of course having them install Linux would be even more uneasy and unfun! -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re[3]: Compiling for Windows [Was: argv revisited]

2016-05-05 Thread Lucas Levrel
be easy and fun? All the more as they would have to install Linux beforehand! -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re[4]: argv revisited

2016-05-05 Thread Lucas Levrel
ring(DOstream,some_string,NULL,NULL); assert(res); g_object_unref(DOstream); g_object_unref(FOstream); g_object_unref(outfile); g_free(filename); } gtk_widget_destroy(dialog); -:-:-:- -- Lucas Levrel ___ gtk-app-devel-list mailin

Re[3]: argv revisited

2016-05-05 Thread Lucas Levrel
ed letters, since they are a part of the Windows version of ASCII. Try a real life UNICODE character, such as the one I have in my path, C:\My.\Images. Hi, I've just tested a filename containing spaces and U+221E (infinity symbol), writing and reading both work.

Re[2]: Compiling for Windows [Was: argv revisited]

2016-05-05 Thread Lucas Levrel
on. I really don't understand why you say this. As its name says, MXE is a compiling environment. Would you ship your assembler with your executable? -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.g

Re: Compiling for Windows [Was: argv revisited]

2016-05-03 Thread Lucas Levrel
Le 2 mai 2016, Florian Pelz a écrit : On 05/02/2016 12:36 PM, Lucas Levrel wrote: Then I found MinGW Cross Env, now called MXE (http://mxe.cc/). It compiled my project with no effort at all. This is interesting. May I hijack this thread? I did not know about MXE. What is their relationship

Re[2]: argv revisited

2016-05-03 Thread Lucas Levrel
; assert(DIstream); char *string= g_data_input_stream_read_until(DIstream,"",NULL,NULL,NULL); assert(string); /* ... */ g_free(string); g_object_unref(DIstream); g_object_unref(FIstream); g_object_unref(infile); g_free(filename); } gtk_widget_destroy(dialog); -:-:-:- (Not sure

Compiling for Windows [Was: argv revisited]

2016-05-02 Thread Lucas Levrel
.. # define the prefix in the rules targeting Windows myrule : CROSS=/path/to/bin/i686-pc-mingw32- myrule : ... HTH -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re[2]: argv

2016-04-16 Thread Lucas Levrel
Le 15 avril 2016, Andrew Robinson a écrit : Let me rephrase this whole entire issue: Does anyone here have a working, tested, and simple program (not a command line only program) that runs in Windows with the GTK+ Win32 libraries, version 3.0 or above? If so, please give me a link of it so I can

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-27 Thread Lucas Levrel
ect that the complexities arise from detaching menus from the main menu bar, not from the right-click, which is already a pop-up Thanks for clarifying. This said, I don't see much difference between e.g. the sub-menus of a menu and those of the right-click pop-up.

Re: Installation of pygobject with gtk on windows.

2015-11-27 Thread Lucas Levrel
It looks like the PyGObject package is not available out-of-the-box, but it may be easy to add. -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-19 Thread Lucas Levrel
Le 18 novembre 2015, Emmanuele Bassi a écrit : On 18 November 2015 at 15:57, Lucas Levrel wrote: Le 18 novembre 2015, Emmanuele Bassi a écrit : Tearoff menus are, by *any* metric that is not artificially restricted to "the Denemo users", a very seldom used UI element in any UI tha

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-18 Thread Lucas Levrel
tric"? (That makes me wonder: what GTK version is Gimp using?) -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Interpretation of gtk warnings and errors messages

2015-11-14 Thread Lucas Levrel
loper of that software will (should), if you make a bug report. What about (main_1:31671)? How can I understand what is it and where is it? I think this is the name and PID of a thread. -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-

Re: GTK/GDK Bug 09/30/15

2015-10-25 Thread Lucas Levrel
Is there anything else I could do or send to help resolve this bug? Make a minimal example showing the problem and post it. (More than often, one finds the bug while making the minimal example.) -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-

Re: Auto-resize scrolled window

2015-09-22 Thread Lucas Levrel
box, I invoke: gtk_box_pack_start( ..., ..., TRUE, TRUE, 0); To insert the frame into the hpaned: gtk_paned_pack2( ..., ..., TRUE, FALSE); For the vbox into the hpaned: gtk_paned_pack1( ..., ..., FALSE, FALSE); HTH -- Lucas Levrel ___ gtk-app-devel-l

Re: Misconduct of GTK+/glib Bugtracker Admins

2015-06-07 Thread Lucas Levrel
st in GTK2 as well?) -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Re: Re: Re: Re: Getting a Cairo context

2015-03-28 Thread Lucas Levrel
ovelty for the sake of novelty is unwise (and in my case I'd spend more time following 3.x API changes than developping my project, which would be silly). Thanks again for your help and advice. -- Lucas Levrel ___ gtk-app-devel-list mailing list

Re: Re: Re: Re: Re: Getting a Cairo context

2015-03-27 Thread Lucas Levrel
de use at least the latest API in the 2.x series is to look at the GTK 2.x → 3.x migration guide: That will help fix my current code, thanks. Alas it won't help me write correct new code. -- Lucas Levrel ___ gtk-app-devel-list mailing lis

Re: Re: Re: Re: Re: Getting a Cairo context

2015-03-27 Thread Lucas Levrel
esn't have examples of what I need) Your help is appreciated. -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Simple glib compilation problem: DSO missing from command line

2015-03-27 Thread Lucas Levrel
LANG=C gcc $GTKHDR segfault.c $GTKLIB -l options must come after source files I think. -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

RE: Re: Re: Re: Re: Getting a Cairo context

2015-03-26 Thread Lucas Levrel
ght); Where copy_gc has been defined this way: GdkGC *copy_gc=d_area->style->fg_gc[GTK_WIDGET_STATE (d_area)]; -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk_window_set_geometry_hints woes

2014-10-25 Thread Lucas Levrel
s impossible. Just my 2 ¢. -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Understanding accelerators.

2014-10-09 Thread Lucas Levrel
_img); g_signal_connect(button, "clicked", G_CALLBACK(...), ...); gtk_widget_add_accelerator(button, "clicked", accels, gdk_keyval_from_name("Return"), (GdkModifierType)0, GTK_ACCEL_LOCKED); HTH. -- Lucas Lev

Re: Deprecated function ed icons on button

2014-10-07 Thread Lucas Levrel
. replace Quit with Exit... -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Redistribution of GTK DLLs

2014-03-06 Thread Lucas Levrel
://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/ There you also find links to dependencies (GLib, Gdk, etc.): http://www.gtk.org/download/linux.php I guess you'd just pick the version number matching the DLLs you use. -- Lucas Levrel ___ gtk-app-de

Re: Redistribution of GTK DLLs

2014-03-05 Thread Lucas Levrel
En date de : Mer 5.3.14, Chris Angelico a écrit : > The very easiest solution for my users would be for me to > distribute a .ZIP file of eighteen DLLs, which my app can fetch and > deploy. But that would require me to make the source of those DLLs > available, and AFAICT pointing to gtk.org doe

Re: "Can't link to Pango"

2014-02-13 Thread Lucas Levrel
gocairo" : I think you should look at --libs since the error is about linking. -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Gdk 3.4.1

2013-07-24 Thread Lucas Levrel
pabilities useful to your software, don't migrate! -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re : Confused about GDKPixBuf/Cairo interaction

2013-02-20 Thread Lucas Levrel
--- En date de : Lun 18.2.13, Rena a écrit : > Recently I've been developing a Game Boy emulator > that uses GtkDrawingArea and GdkPixbuf to display the game > screen. > > In addition to the game output I want to also be able to draw text and > shapes on the display window, and Cairo seems to be

Re : GTK app development for windows.

2013-01-31 Thread Lucas Levrel
--- En date de : Lun 24.12.12, Muhammed Fatih BALIN a écrit : > On Ubuntu 12.04 I can create, compile and run applications > easily but I want to compile them for windows. > I have mingw packages installed. But there is no gtk package > in ubuntu repositories for cross development. How can I > i

Re : Different behavior for a none decoration widget on Windows and Linux

2012-06-08 Thread Lucas Levrel
--- En date de : Lun 21.5.12, 徐舫 a écrit : > I created a none decoration widget using the following > code. > > But when I clicked the item on the Window task bar, the > widget does not > minimized to the task bar. > >     gtk_window_set_decorated (GTK_WINDOW(win), > FALSE); >     gtk_widget_

Re: Help! Widgets drawn in reverse order

2012-05-07 Thread Lucas Levrel
your dialog (the file you feed gtkdialog with). Also, you might get more help on the GTK developers' list. -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Missing icon in gtk 2.24.10 for win32

2012-04-20 Thread Lucas Levrel
Hi, I'm developping an app with MinGW on Win XP. I installed the "all-in-one bundle" linked by http://www.gtk.org/download/win32.php . I've put the following in my code to force display of icons: gtk_settings_set_long_property(gtk_settings_get_default(),"gtk-button-images",1,""); But when I sum

Re: Configure event for a text view?

2012-03-29 Thread Lucas Levrel
Le 8 mars 2012, Lucas Levrel a écrit : Now, I want to scroll down to the end of the text whenever the window is resized. As for now, when the window is shrinked, the end of text gets out of view and the user has to scroll down manually. I thought I'd connect the following: void s

Re: cairo: multiple sprites images in one PNG

2012-03-16 Thread Lucas Levrel
asible with clipping, but might be more complicated: you'd need to clip each time you draw the sprite.) -- Lucas Levrel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Configure event for a text view?

2012-03-08 Thread Lucas Levrel
ts out of view and the user has to scroll down manually. I thought I'd connect the following: void scroll(){ gtk_text_view_scroll_to_mark (GTK_TEXT_VIEW(text_view), end_ptr, 0., FALSE, 1., 1.); } to some "configure-event", but I can't find a widget on which

Re: Compiling for Win XP SP1

2012-03-05 Thread Lucas Levrel
Le 5 mars 2012, Igor Chetverovod a écrit : II am writing GTK+2.16 applications under Win XP2. They are working without issues on very old laptops with Win 2000. So I think you should investigate your instalation file set. May be it does not contain some necessary libs. Thanks for your answe

Re: Compiling for Win XP SP1

2012-03-04 Thread Lucas Levrel
Hi, Thanks for your answer. Le 28 février 2012, Raja Mukherji a écrit : What sort of error are you getting? I found that installing the Visual C++ 2008 Redistributable Package was necessary to run the app on Windows XP SP1. Windows XP SP2 and newer seem to have it installed already. I don't k

Compiling for Win XP SP1

2012-02-24 Thread Lucas Levrel
Hi, I'm writing a GTK+-based application for Win and Linux. One of my potential "users" only has XP SP1, and the current version of my app doesn't work there; I compiled it against GTK+ 2.24 under XP SP3. I guess I should use an older version of GTK+. Which one? Then: - Where will I download