gdk_pixbuf_composite() issue

2008-03-17 Thread Michael
I've got a pixbuf, created with gdk_pixbuf_new() (let's call it combined_pixbufs), with a width/height large enough to accommodate two pixbufs side-by-side. I then have two smaller pixbufs: pixbuf_one and pixbuf_two. I'm trying to use gdk_pixbuf_composite() to combine them side-by-side into com

Getting a colormap...

2008-03-20 Thread Michael
I'm using giflib to create a GIF image from raw GdkPixbuf pixel data. Everything works... except the colors are really screwey. I'm using a default, 16-color color map from the source of a utility in the giflib code. I assume that's the problem. When I save the pixbuf as another format using gd

Transparent Draw Area

2008-09-26 Thread michael
Hi all, I want to create a transparent draw area and using cairo to draw line with the window background. My backed is directfb and I don't know if it is supported. I want to start with an example working on X. Is there somenthing attribute or function to do this? Regards Mi

Re: Transparent Draw Area

2008-09-29 Thread michael
of: http://code.google.com/p/pychess/source/browse/trunk/lib/pychess/widgets/pydock/OverlayWindow.py fre, 26 09 2008 kl. 13:41 +0200, skrev michael: Hi all, I want to create a transparent draw area and using cairo to draw line with the window background. My backed is directfb and I don't kn

Re: Embedded Gtk+ system moving to 2.14

2009-02-17 Thread michael
you bench it on i386 system. Can you test it recompile on standard pc? Any soft-float issue? Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK+ MPlayer Frontend

2010-10-29 Thread michael
options to control mplayer. I like functionality of smplayer, but it uses Qt for gui. My idea is to write something like smplayer but based on GTK+ toolkit. Does your frontend compile? Michael Best regards, Alex Ermakov ___ gtk-app-devel-list mailin

Re: GTK+ MPlayer Frontend

2010-11-01 Thread michael
Alex Ermakov wrote: On Fri, 29 Oct 2010 10:00:21 +0200 michael wrote: Alex Ermakov wrote: Hello. I'm looking for GTK+ developers, who're interested in development of GTK+ based MPlayer frontend. I've started to write such frontend just

Re: Glib mutex doesn't work on Windows

2010-12-16 Thread michael
Hi On 12/16/2010 07:47 PM, Michael T. wrote: Hi, I'm using glib mutexes on Windows and I think they don't work. I tried to use WIN API mutexes instead and they did work. Short sample program: I initialize the WIN API mutex, then create two threads using WIN API with this simple co

Re: Glib mutex doesn't work on Windows

2010-12-16 Thread michael
Hi On 12/16/2010 07:47 PM, Michael T. wrote: Hi, I'm using glib mutexes on Windows and I think they don't work. I tried to use WIN API mutexes instead and they did work. Short sample program: I initialize the WIN API mutex, then create two threads using WIN API with this simple co

Re: gtk and linux

2011-11-06 Thread Michael Torrie
On 11/03/2011 02:07 AM, Craig wrote: > Is there a list of linux "flavors" like Ubuntu, KDE, Red Hat... that > include or don't include gtk? And, let's say that a type of linux > doesn't include gtk, how difficult is it for an average computer user to > install gtk (on a scale of 1 to 10)? Programs

Gtk3 and resizing GtkTreeView columns

2011-11-10 Thread Michael Cronenworth
whole window to resize. In GTK3 it does, and when the window is resized you cannot shrink the window until you shrink the TreeView. How do you get tree views in GTK3 to act like GTK2? Thanks, Michael ___ gtk-app-devel-list mailing list gtk-app-devel

GTK3 and MS-Windows theme

2011-11-11 Thread Michael Cronenworth
Does GTK3 contain the win32 work that was just released with 2.24.8? My GTK3 app doesn't display using the MS-Windows theme, even when I specify it in the etc/gtk-3.0/settings.ini file. Under Windows XP or Windows 7 it uses an ugly gray theme with hard square buttons. Thanks, Mi

GTK mailing list

2011-11-14 Thread Michael Cronenworth
It seems the amount of traffic on this list has dropped significantly over the past few years. Is there a better mailing list or web forum to collaborate with others about GTK application development? Thanks, Michael ___ gtk-app-devel-list mailing

Re: GTK3 and MS-Windows theme

2011-11-14 Thread Michael Cronenworth
Michael Cronenworth wrote: Does GTK3 contain the win32 work that was just released with 2.24.8? It looks like the answer is "not yet" as I see the win32 work is on the master branch. I'll wait for 3.4 (or if its ported to 3.2) before try

Re: gdk/gtk+ win32 thread question, please help to explain

2011-11-22 Thread Michael Cronenworth
On 11/22/2011 10:13 PM, KC wrote: So the "Unfortunately ..." statement only apply to GDK on WIN32 ? It's safe to call GTK+ APIs (if protected by gdk_threads_enter/leave) from multi-threads even on WIN32 backend ? Is this correct ? No. GTK2 (I can't say about GTK3, but I bet it is the same) most

Re: GTK 3 support status

2011-12-03 Thread Michael Cronenworth
On 12/03/2011 08:41 PM, John Lindgren wrote: I am wondering what the status of GTK 3 is at this time with regard to bugs reported by application developers. I reported a rather serious bug (https://bugzilla.gnome.org/show_bug.cgi?id=662043) a month and a half ago, and there is still no comment

Re: How to "extend" a widget?

2011-12-16 Thread Michael Torrie
C-like (more C#-like) language that compiles into C and GObject code. You can take the output of Vala and use it in your normal C development. In fact the job you describe is just what Vala was originally designed for, though Vala has gone far beyond just being a GObject compiler. Michael. ___

Re: How to "extend" a widget?

2011-12-16 Thread Michael Torrie
On 12/16/2011 11:05 AM, Michael Torrie wrote: > As I think about it, my knowledge of extending GTK really is out of date. So I'm not at all sure how to do in C anymore. But Vala still just might be the ticket. Emitted Vala code is supped to be directly usable from a C program. I

Re: How to "extend" a widget?

2011-12-16 Thread Michael Cronenworth
jacky wrote: What I was looking into would be more taking an existing widget, and modifying it a little, as in changing its behavior on some aspect, or adding a feature, something like that. My question is: what would be the best/standard/recommanded way to do such a thing? Widgets are not plu

Re: How to "extend" a widget?

2011-12-16 Thread Michael Cronenworth
Michael Cronenworth wrote: 2. Create a shell widget Rereading your post I think you called this "composite widget". I'm not sure why you are opposed to this idea. I've created a composite widget myself and it has worked great for me. ___

Re: How to "extend" a widget?

2011-12-16 Thread Michael Cronenworth
jjacky wrote: Anyways, I don't have a problem with creating a new (shell/composite) widget using another one inside of it, it's actually exactly what I did in my example: created a widget JjkCalendar which contains a GtkCalendar. Your composite widget project is similar to mine. I created a cus

Re: How to "extend" a widget?

2011-12-16 Thread Michael Torrie
On 12/16/2011 02:52 PM, jjacky wrote: > Thanks. I will have a look into Vala, although for projects I have > planned, I really want/need to be using C. Precisely. Vala makes the C Gobjects. You could use Vala to construct a class with a bunch of empty methods and then use the generated C code a

Re: How to "extend" a widget?

2011-12-16 Thread Michael Torrie
On 12/16/2011 03:03 PM, Michael Cronenworth wrote: > jacky wrote: >> What I was looking into would be more taking an existing widget, and >> modifying it a little, as in changing its behavior on some aspect, or >> adding a feature, something like that. >> >> My qu

Re: How to "extend" a widget?

2011-12-16 Thread Michael Torrie
On 12/16/2011 03:03 PM, Michael Cronenworth wrote: > Widgets are not plugins. They are whole objects. There is no extensible > feature to them. Just for your information, here's a couple of examples of extending GtkButton using inheritance and the GObject Builder tool: http://www.ji

Re: How to "extend" a widget?

2011-12-16 Thread Michael Torrie
On 12/16/2011 02:52 PM, jjacky wrote: > And while GTK is oriented-object, it is written in C and, AFAIK, there > are no such things as classes in C? As always, read the docs. Here is the documentation describing how to create new GObjects, and inherit from existing ones, implement virtual method

Re: How to "extend" a widget?

2011-12-16 Thread Michael Torrie
On 12/16/2011 04:47 PM, David Nečas wrote: > I wish it was so. What invariably happens in practice is this: Thanks you. Tis unfortunate that things are this way. That said I've heard of problems in other languages where well-meaning developers marked classes as "final." Makes me like Python

Re: How to "extend" a widget?

2011-12-16 Thread Michael Torrie
On 12/16/2011 05:24 PM, jjacky wrote: > > Thanks, I do need to do some more reading on the gobject docs, great > stuff there. > > What I'm looking for is inheritance, and I see how it could be done yes. > However, that would require the original widget to be done using virtual > public methods

Re: no joy...

2011-12-21 Thread Michael Torrie
On 12/20/2011 03:52 PM, Gary Kline wrote: > > thanks to those who have tried to help, mostly off-list. i can't > believe how hard this is. Well it isn't that hard. Reading over the last two weeks of list posts, it's very unclear what you are trying to do. > and fopen some file and display the

Re: no joy...

2011-12-22 Thread Michael Torrie
Let's keep the e-mails on the list, please. You can CC both me and the list if you'd like, but replying just to the list is sufficient and I will see it as will any number of other people that want to help. On 12/22/2011 01:03 AM, Gary Kline wrote: >>> and fopen some file and display the text in

Re: no joy...

2011-12-22 Thread Michael Torrie
On 12/22/2011 11:22 AM, Michael Torrie wrote: > On 12/22/2011 01:03 AM, Gary Kline wrote: >> you're right. i do not want to type anything into the text file. >> instead, i want to fork gvim and use thaat to type into. it >> seems likely to work if i can have button

Re: no joy...

2011-12-22 Thread Michael Torrie
On 12/22/2011 01:58 PM, Gary Kline wrote: > i am reallty not doing anything that arcane. the nutshell > of it is that in > > "while (!done loop)" > > gvim [ or another editor that can use abbreviations ] > creates a series of text files. 1 to some N. what it >

Re: no joy...

2011-12-22 Thread Michael Torrie
On 12/22/2011 12:14 PM, Steve . wrote: > What is the preferred method to inject mouse and keyboard events to > another application? Probably that is platform-dependent. In Linux, I only know of the XTEST framework. It's not really part of GTK that I know of. I'm no expert.

Re: no joy...

2011-12-22 Thread Michael Torrie
i think so; it isn't rocket science ... i'll send you the > code with the gcc line if you 'd like. Feel free to post GTK+ code here to this list and we can look it over a bit. I'm starting to get a feel for what you are trying to accomplish. I am glad you remai

Re: GTK app with scrolled window crashing trying to show a widget inside

2011-12-30 Thread Michael Torrie
On 12/30/2011 05:52 AM, David Nečas wrote: > On Fri, Dec 30, 2011 at 01:28:32PM +0100, Moritz Renftle wrote: >> i want to make one of those widgets visible from >> another thread > > Use glib.idle_add() in that other thread to subsequently execute the > actual Gtk+ code in the thread running the G

Re: Runtime environment for GTK+ application

2012-01-12 Thread Michael Cronenworth
Manuel Ferrero wrote: First: I can't find a precoocked package or at least a best practice document on which files are needed to distribute with my application, can someone point me on the right direction, please? You can either take Dov's approach and package the GTK DLLs in your installer, o

Re: is thaere a way to exit(1)?

2012-01-17 Thread Michael Torrie
On 01/17/2012 03:35 PM, Gary Kline wrote: > well, it =is= busy. it's looping endlessly; but then i > limited it to 5 loops with a for-loop. same. (i thought my > programming skills were better that having to use the > debugger, but may have to.) before, i am going to scp

Re: discoveries! gtk DOES dim... how can i infinite-loop?

2012-01-19 Thread Michael Torrie
You will need to install pygtk2 and gtksourceview2. On Fedora those are the exact package names. I think it would be fun to develop this further (perhaps porting to GTK3), but I thought I'd post what I had. If it's not useful, that's fine

Re: discoveries! gtk DOES dim... how can i infinite-loop?

2012-01-19 Thread Michael Torrie
On 01/19/2012 09:05 PM, Michael Torrie wrote: > You will need to install pygtk2 and gtksourceview2. On Fedora those are > the exact package names. Apparently on Ubuntu, the packages are: python-gtk2 python-gtksourceview2 ___ gtk-app-devel-list m

Re: discoveries! gtk DOES dim... how can i infinite-loop?

2012-01-19 Thread Michael Torrie
On 01/19/2012 01:58 AM, Gary Kline wrote: > > i've spent the last many days tryoing [on ubuntu] anf tonight on my > EEE-900A netbook [debian]. both dim when i go into a recursive > loop. > > 1. edit with gvim > 2. have espeak voice gvim when it is written > 3 goto 1; > > tonight i did everyth

Re: Are there such tings like custom signals?

2012-01-20 Thread Michael Torrie
On 01/20/2012 06:42 AM, Manuel Ferrero wrote: > I was wondering if there is some custom signal I can use to keep the > same event-driven philosophy to exchange messages between process. Of course. Though the other poster's idea of using gio channels is a good one. But yes you can create custom

Re: discoveries! gtk DOES dim... how can i infinite-loop?

2012-01-21 Thread Michael Torrie
t to know if the mechanism for doing abbreviations is as usable as your gvim method. The tarball I posted is already out of date. use the git repository url I posted instead. (git clone http://www.torriefamily.org/~torriem/tts_assist.git). cheers, Michael ___

Re: Standardizing file open etc

2012-01-23 Thread Michael Cronenworth
Mixbus JohnE wrote: Our 'C' program uses 'open()' and the like for dealing with disk files. This seems to work okay on Linux but not so well on Windows if there are (say) Greek or Russian characters in the file path. I'm not a Linux programmer so I assume that 'open()' on Linux must be UTF-8

Re: Are there such tings like custom signals?

2012-01-23 Thread Michael Torrie
On 01/23/2012 02:18 AM, Manuel Ferrero wrote: > Il 20/01/2012 18.08, Jack ha scritto: > >> However, that is separate from knowing that the button has been pushed, >> so you can then start the communications. For this, is there any reason >> to use a custom signal? Wouldn't it be easier to catch th

Re: need help in looping many times...

2012-01-23 Thread Michael Torrie
On 01/23/2012 07:17 PM, Gary Kline wrote: > vbc.tgz is enclosed; find someplace to save it, untar and make the > 'vbc' binary. Unfortunately the attachment seems to have been filtered out by the mailing list. Can you post it on our web site somewhere perhaps and post a link here? _

Re: need help in looping many times...

2012-01-23 Thread Michael Torrie
On 01/23/2012 08:49 PM, Michael Torrie wrote: > On 01/23/2012 07:17 PM, Gary Kline wrote: >> vbc.tgz is enclosed; find someplace to save it, untar and make the >> 'vbc' binary. > > Unfortunately the attachment seems to have been filtered out by the > mailing

Re: need help in looping many times...

2012-01-24 Thread Michael Torrie
On 01/24/2012 07:27 AM, John Coppens wrote: > Wouldn't it be easier to simply add an editor window to your program? > Use for example, the GtkTextView widget. You won't have to spawn > external editors, and always have the text available. > You can even implement cut/copy/paste, re-use recent text,

Re: no "File", "Edit, "Help" strings in upper left

2012-01-29 Thread Michael Torrie
On 01/29/2012 01:41 PM, Gary Kline wrote: > Nada. but it compiles with my gcc string and works as it is coded on > debian linux; on my sub-laptop. but ubuntu: nope. i added gtk-demo > and rebuilt. typing > > $ gtk-demo > > pops up a rectangle with a bunch of items, but the GTK+ Code Demos

Re: no "File", "Edit, "Help" strings in upper left

2012-01-29 Thread Michael Torrie
On 01/29/2012 06:33 PM, Gary Kline wrote: > Do you really mean that is your coming appa you will have no > "File, Edit, Whatever, Help" bars? Or am i misunderstanding > the name of menubar? i like at least File because it > usually gives a way of quitting the app? What h

window icon resolution

2012-02-08 Thread Michael Cronenworth
GdkPixbuf image and loaded it that way. Why would that make a difference? Thanks, Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: window icon resolution

2012-02-08 Thread Michael Cronenworth
Tadej Borovšak on 02/08/2012 11:48 AM wrote: Not an expert, but my guess would be that gnome-shell loads images on it's own based on what is defined in your .desktop file when this file is available. Do you install this file for your app? My .desktop file references the same file (and same path

Re: window icon resolution

2012-02-08 Thread Michael Cronenworth
Michael Cronenworth wrote: Based on your idea, I noticed other apps only reference the basename of their icon and place the file in /usr/share/icons/hicolor/foo/basename.png. I tried this same behavior and what do you know... Gnome Shell shows my hi-res window icon. Even though this method

Re: looking for a program....

2012-02-16 Thread Michael Torrie
On 02/16/2012 12:50 PM, Gary Kline wrote: >> I'm quite sure that what you're looking for is for some screen reader & >> speech synthesis solution, like Orca [1], isn't it? >> If not, or Orca doesn't fit your needs, you can deal with speech-dispatcher >> in a easy way from your application. Controll

Re: "HELP/About" was :: [Re: suggestions on user config?]

2012-02-19 Thread Michael Torrie
On 02/19/2012 06:38 AM, Tadej Borovšak wrote: > Hi > >>the dialoh has a "Close" button in the lower right. In the >>lower left are two buttons. one is labeled "Credits"; next >>to it is a button labeled "License" that displays the GNU >>copyright. can somebody cl

Re: "HELP/About" was :: [Re: suggestions on user config?]

2012-02-19 Thread Michael Torrie
On 02/19/2012 02:25 PM, Gary Kline wrote: > i've been looking for code to learn from. i spotted this botton > layout from the game 'Iagno' but could only find part of its source. > lucky for me that i know c++. be nice if there were some macro like > "GTK_BUTTONBOX_LEFT"! GtkButtonBox is just a

Re: [win32]g_iochannel and USB

2012-02-24 Thread Michael Torrie
On 02/22/2012 06:35 AM, Manuel Ferrero wrote: > I read the thread, now I know I have to link against the right version > of msvcrt.dll. > But I'm compiling with MinGW and according what Tor Lillqvist said in > that thread it should work. > I don't specify any path in my IDE, I just choose the Min

Re: porting Xlib/Motif apps to GTK+

2012-02-29 Thread Michael Torrie
On 02/29/2012 02:50 AM, Bernhard Schuster wrote: > If your application license is either GPL or LPGL you are also > allowed to link statically (afaik), so you can deploy a gtk2 and a > gtk3 version. Edit ... so you can deploy a shared and statically > linked application binary. Just to be clear, i

GtkScrolledWindow/GtkViewport question

2012-03-01 Thread Michael Stegherr
oking forward to an answer! :) Cheers, Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk+ 2.24 installation problems

2012-03-04 Thread Michael Torrie
On 03/03/2012 08:10 AM, Roger Davis wrote: > Sleeping on things overnight I'm thinking the best option may be to > go back to the default configure options, let all the new packages > dump their stuff in /usr/local, and adjust my environment as > necessary to pick up those libraries, etc., in advan

Re: Re:GtkScrolledWindow/GtkViewport question

2012-03-06 Thread Michael Stegherr
ing it. It's not the answer to my question though. :) Cheers, Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Re:GtkScrolledWindow/GtkViewport question

2012-03-20 Thread Michael Stegherr
Hi John, alright, thanks for the answer! I thought, there'd be an easy way to do it nicely. Anyway my method works alright. Cheers, Michael On Wed, 2012-03-07 at 09:08 +, jcup...@gmail.com wrote: > Hi Michael, > > Unfortunately I don't think this is easy. > >

Re: Getting the "busy" cursor to display.

2012-04-10 Thread Michael Cronenworth
James Tappin wrote: > Is there some other call (or calls) I should be making to force the updates > to take place? I use the following for widget updates during background processing: while ( gtk_events_pending( ) ) gtk_main_iteration( ); Not sure if it will work for cursor drawing

Re: Formatting dates according to the region

2012-04-16 Thread Michael Cronenworth
Dylan McCall wrote: > However, g_date_time_format(datetime, "%x") only returns a date > formatted in that last way. How can an application use other date > formats for the current region? Preferably without duplicating code, > or, at least, effort. Look at the documentation for g_date_time_format(

Re: GTK program (a Gimp plugin) crashes only on Windows

2012-04-25 Thread Michael Cronenworth
Alessandro Francesconi wrote: > What could be the problem? Is that a good way to update the GtkFrame + > GtkScrollableWindow contents? Or is it a problem related to compiling > arguments/libraries? I would recommend that you gather further debugging information by using gdb instead of relying on t

Re: GtkButton bg color

2012-04-29 Thread Michael Cronenworth
On 04/29/2012 11:30 AM, Steve wrote: gtk_widget_modify_bg(button, GTK_STATE_NORMAL,&color); This is the right call, but I have found that this doesn't work on Windows. Are you running the program in Windows? Coloring works fine for me in Linux. If you're running Linux, your color variable m

Re: GtkButton bg color

2012-04-30 Thread Michael Cronenworth
Steve wrote: > Any chance you can provide an example of a button with a background > color? GdkColor colorGreen = { 0x, 0x90ff, 0xeeff, 0x90ff }; // without mouse hovering gtk_widget_modify_bg( button, GTK_STATE_NORMAL, &colorGreen ); // with mouse hovering gtk_widget_mod

Re: MSAA or UIA

2012-05-14 Thread Michael Cronenworth
Mike wrote: > Searches on the internet give me nothing. Who knows when/if gtk+ > applications will be accessible using MSAA or UIA? What are the reasons > we're not there yet? Googling for "uia gtk" brought me this up in 30 seconds: http://comments.gmane.org/gmane.comp.gnome.gtk+.devel.general/

Re: MSAA or UIA

2012-05-14 Thread Michael Cronenworth
Mike wrote: > Unfortunately I couldnt view the whole thread. Your web page ends in > the middle of the conversation, strangely. The web site doesnt have > links to view the whole thread; it's a horrible mailing list reader. Your web browser must be busted. I can view the entire thread by clickin

Re: Slow combo box when adding 500 rows

2012-05-24 Thread Michael Cronenworth
Osmo Antero wrote: > Adding rows to a combo box with a GtkListStore is immensely slow. > Is it right that adding 500 rows can take upto 10 seconds and the GUI freezes? I have similar hardware but with the NVIDIA driver so it only freezes for about 2 seconds on my system. [snip] > What is your opi

Re: Porting Between Linux and Windows

2012-06-23 Thread Michael Cronenworth
On 06/15/2012 07:33 PM, Eric Tavenner wrote: [snip] Other people have answered the rest of your e-mail pretty well. I'd recommend C over C++ as well, as explained in the other e-mails. There are "Hello World" C source files in GTK documentation. Be sure to look them over. http://developer.g

list of printers

2012-06-25 Thread Michael Cronenworth
lly I'd like to grab a GList of printer names and display them in a ComboBox for user-selection, but I cannot find any GTK functions to do this. Thanks, Michael ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/

Re: GtkPrintOperation uses wrong scale on Windows ?

2012-06-26 Thread Michael Cronenworth
Geert Janssens wrote: > Am I doing something wrong here ? Was GNUCash setting units before? If so, what to? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkPrintOperation uses wrong scale on Windows ?

2012-06-26 Thread Michael Cronenworth
Allin Cottrell wrote: > Sorry, I don't have a solution, but I can confirm the problem. It has > been there for a long time (since GTK 2.16 or earlier). > > When I first came across the issue I tried messing with the GTK_UNIT_* > arguments till I was blue in the face, to no avail. I also tried > in

Re: GtkPrintOperation uses wrong scale on Windows ?

2012-06-27 Thread Michael Cronenworth
Geert Janssens wrote: > I rewrote my code to no longer use cairo_identity_matrix (altering some > of our own transformations to cope with this), and now the pages print > fine on Windows as well. Good deal. I'm glad you figured it out. ___ gtk-app-devel

Re: Open file from menu

2012-07-09 Thread Michael Cronenworth
Rudra Banerjee wrote: > 1) putting the above block inside "if (argv[1] != "NULL")" is giving a > segmentation fault: Are you checking argc? If you are not passing an argument argv[1] does not exist so, yes, you will get a segfault for running beyond the argv[] array. if ( argc > 1 && argv[1] != N

Re: Passing data to a callback (again)

2012-07-31 Thread Michael Cronenworth
Frank Cox wrote: > What have I missed? Not all callbacks perform the same function. That is why you must consult the documentation for the signal you want to catch. The g_signal_connect() function does indeed only pass one pointer for the fourth argument "data". All signals have a "data" argument

Re: widget_destroy() question

2012-08-16 Thread Michael Cronenworth
On 08/16/2012 09:03 PM, Vlasov Vitaly wrote: For example, i got frame in which packed vbox. In vbox packed in five buttons. If i call gtk_widget_destroy(), all packed widget's will be destroyed? or only frame? Calling widget_destroy will automatically destroy child widgets. If you want

Re: [RFC] Why GtkMenuItem hide_on_activate property is not taken into account?

2012-08-31 Thread Michael Cronenworth
Tomasz Bursztyka wrote: [snip] > So my question is: how to get this behavior for my GtkSwitchMenuItem, > properly done with existing GtkMenuShell/GtkMenuItem functions/signals? > What signals should I catch or which function should I override? You're better off proposing this patch in a bug repo

Re: path for icon

2012-09-04 Thread Michael Cronenworth
On 09/04/2012 11:58 PM, Frank Cox wrote: Here is the answer: https://mail.gnome.org/archives/gtk-app-devel-list/2012-September/msg2.html Depending on your needs, here is a different answer: https://mail.gnome.org/archives/gtk-app-devel-list/2012-September/msg4.html I myself went with

Re: gtk apps on iOS/Android?

2012-09-09 Thread Michael Torrie
On 09/07/2012 07:40 AM, Allin Cottrell wrote: > I'm contemplating trying to produce a version of my gtk app > for tablet use. Can anyone point me to relevant resources or > examples? At this point I'm totally clueless about porting to > tablets (though I'm able to build my app for OS X OK), and

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Torrie
On 09/09/2012 11:40 PM, Tristan Van Berkom wrote: > interesting, wouldnt the quartz backend for osx build for iOS ? > > not exactly sure but I think the NSView and highlevel cocoa stuff > is built upon the same low level windowing apis that are available > on osx... I'm sure it could be ported of

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Cronenworth
Michael Torrie wrote: > GTK+ could be ported to Android of course, but again, but that would > require considerable effort. Laying aside Java for a moment, Android > apps are built and run very differently than desktop apps. The > application life cycle is quite different. No

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Cronenworth
Ardhan Madras on 09/10/2012 11:08 AM wrote: > Actually, there is a Java based X11 Server running on Android and was > available in Play Store (Android Market). Yes, I am fully aware of this app. However, it is not a usable solution. It was written from the ground up so who knows what part of the X

Re: gtk apps on iOS/Android?

2012-09-10 Thread Michael Cronenworth
Tomaz Canabrava on 09/10/2012 11:27 AM wrote: > Well, actually there's an working Qt version for Android, called Necessitas. > so, there's no need to 'waste your time porting', it's already ported. Wow! Everyone is an expert! @kde.org! Sweet! /sarcasm Anyone else want to tell me something I alre

Re: GTK window positioning

2012-09-19 Thread Michael Cronenworth
David Buchan wrote: > gtk_window_set_position (GTK_WINDOW (window1), GTK_WIN_POS_NONE); [snip] > > I find that the two windows are always placed right on top of each other. I > can drag the top one off the one underneath, but I'd like the window manager > to choose placements that are separate

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread Michael Torrie
On 10/07/2012 08:41 PM, Simon Feltman wrote: > On Sun, Oct 7, 2012 at 12:29 PM, Filip Lamparski > wrote: >> On 7 October 2012 12:58, wrote: >> >>> To have the load in another process, use a pipe to send worker results >>> back to the main process, and add the pipe to your gtk main loop as an >>>

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-12 Thread Michael Torrie
On 10/10/2012 06:17 AM, Filip Lamparski wrote: > Thanks, your method works. However, it still takes the program quite a bit > to load up, and my problem is that I want display the window as soon as > possible. If that helps, here is how the program loads up: > Script starts > The window is construc

Re: GTK+3 fonts

2012-10-21 Thread Michael Torrie
On 10/21/2012 04:16 AM, Roger Davis wrote: > Any explanation for these mysteries, or any pointers to some decent > documentation on Gnome 2/3 font configuration and installation? If you are using Gtk+3 with the native/quartz backend, then the fonts it uses are coming from the native OS X font sys

Re: GTK+3 fonts

2012-10-21 Thread Michael Torrie
On 10/21/2012 01:58 PM, Roger Davis wrote: > % fc-match Sans > DejaVuSans.ttf: "DejaVu Sans" "Book" > > And if I put them back, things are restored as before: > > % fc-match Sans > Vera.ttf: "Bitstream Vera Sans" "Roman" > > Can anyone explain how this works? Is there some complicated font > pa

Re: Clarification on recent deprecations

2012-10-24 Thread Michael Cronenworth
David Buchan wrote: > Do > I need to change the link to gmodule-2.0? To be honest, I really don't > understand what it's for. Is there a good explanation somewhere? You can always find your pc files in: /usr/lib{64}/pkgconfig Example: /usr/lib64/pkgconfig/gmodule-2.0.pc Inside the file will c

Re: GtkHBox child replacement

2012-10-24 Thread Michael Cronenworth
Piotr Sipika wrote: > While updating the text inside the label is easy (via > gtk_label_set_text()), what's the best way to update the icon child, > assuming it's a GtkImage and I have an updated GdkPixbuf for a new icon? You want to call gtk_image_set_from_pixbuf(). Don't forget to call g_object_

switch printer tray during printing

2012-10-31 Thread Michael Cronenworth
Does anyone know if GTK allows switching print trays in the middle of a GtkPrintOperation? I tried setting the source to Tray 2 in the "request-page-setup" signal for the second page, but this did not work. The second page printed to Tray 1 (default). Thank

Re: Change background color in GtkTreeView

2012-11-29 Thread Michael Cronenworth
Tomasz Jankowski wrote: > I'm working on UI for embedded system using GTK+ 2.24. I want to > change GtkTreeView background (area behind rows, which is by default white) > to match default color of window area (grey by default). > I retrieved GtkStyle associated with GtkWindow and looked for this >

Re: GUI freezes waiting for callback function to return

2012-12-16 Thread Michael Torrie
On 12/15/2012 11:08 AM, Mateusz Marzantowicz wrote: > Very valuable articles and blog posts. > > Now I know that threading in GUI apps (using GTK+) is much harder then I > originally thought it is. Although my use case is very simple I must > employ complicated threading machinery. I'm playing wit

Re: Get the summary from a key in GSettings

2013-02-12 Thread Michael Cronenworth
rastersoft wrote: > I'm creating an extension for Gnome shell and want to simplify some > parts of the configuration. To do so, I need to get the summary text > from GSettings, given its key. I've been checking the C API but I can't > find a suitable method. Is there a way of doing it without parsi

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-13 Thread Michael Cronenworth
Olivier Guillion - Myriad wrote: > Is there a way to prevent a clicked window from being automatically sent to > top > of the stack ? > Any help would be greatly appreciated. You can use gtk_window_set_transient_for() to force stack ordering. ___ gtk-

Re: parsing bibtex using gscanner

2013-02-21 Thread Michael Torrie
On 02/18/2013 11:15 AM, Rudra Banerjee wrote: > On Mon, 2013-02-18 at 19:02 +0100, David Nečas wrote: >> The best approach to parse a grammar is, you know, using a parser. > So anything better then bison? You can write your own parser if you want. Maybe a recursive-descent parser. You will want t

Re: switch printer tray during printing

2013-02-21 Thread Michael Cronenworth
Michael Cronenworth wrote: > Does anyone know if GTK allows switching print trays in the middle of a > GtkPrintOperation? > > I tried setting the source to Tray 2 in the "request-page-setup" signal > for the second page, but this did not work. The second page printed to

Re: switch printer tray during printing

2013-03-11 Thread Michael Cronenworth
all sorts of odd shaped data to print in different ways to different paper sizes and trays in one go. I have it working for me now without too much pain, but if I ever have an epiphany I'll be sure to share it. Thanks, Michael ___ gtk-app-devel-list m

Re: Release of next binary GTK+2 package for Windows?

2013-03-12 Thread Michael Cronenworth
On 03/12/2013 08:24 AM, Serrano Pereira wrote: > We are currently using GTK+ 2.24.10 on Windows 7 (the binary package > from gtk.org) which is affected by bug 685959 "Memory leak on every > redraw of a widget" which causes our application to crash with an out of > memory error. Has the fix been rel

Re: Updating GUI during long operation

2013-04-25 Thread Michael Torrie
On 04/25/2013 08:04 PM, Kip Warner wrote: > Hey Chris. Your message was not very useful again, but thanks anyways. > As you realized after, the problem may be too many graphical related > events through the main loop. I will try adjusting the animation's > framerate and seeing if I can get the work

  1   2   3   4   5   >