GTK Unix Print Dialog working example

2015-10-20 Thread martinfisch...@t-online.de
Hi, as nobody answered my question and I couldn't find a solution online, I decided to do some more research. I carefully studied the source code for GtkPrintOperation and finally answered my own question. I'm posting this here so it can be found by others in the futur

Leave a Gtk.KeyPressEvent

2012-01-03 Thread João Vitor T . Trevisan
Hi, I'm trying to leave my KeyPress event, but I can not. How can I set the property Handled using a Gtk.KeyPressEventArgs ? I'm tying set "e.Event.Handle", but that's not possible. I appreciate the help. João Trevisan ___ gtk-app-devel-list mailing

Re: GTK+INSTALLATION IN WINDOWS

2011-05-02 Thread Michael T .
Hi, > > so it would be very helpfull > > if you could tell us the step by step procedure of installing packages > > or reffer us some website where we could find it. the easiest way to do this is described here: http://www.gtkforums.c

canvas, movable objects, selection

2011-01-08 Thread Michael T .
Hi, I need to create a "canvas" within a window. 2D square. On this canvas I want to be able to place objects - circles, squares (possibly small jpeg files). I also want to be able to select these objects with a standard mouse selection method (multiple objects at once). What's the best way to d

Re: Glib mutex doesn't work on Windows

2010-12-17 Thread Michael T .
> One suspicious feature is that his test > case for GMutex starts a thread using the windows API rather than glib's > API. This is not a problem because glib's API is in this case only a wrapper around Win API. > That is not of itself an error, but it invites the question > whether, for exampl

Glib mutex doesn't work on Windows

2010-12-16 Thread Michael T .
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 code: DWORD WINAPI MyThreadFunction( LPVOID lpParam ) { i

Re: gtk 2 or 3

2010-11-07 Thread Michael T .
> > If I may ask, what is the main technical problem (deeper explanation) with > using GTK+ from multiple threads? > > On Windows, the problem is that Windows GDI, being a local windowing > system with a quite tight coupling to the client code executing on the > same machine, is very much thread-a

Re: gtk 2 or 3

2010-11-04 Thread Michael T .
> > So GIMP is a single threaded software? > > No, but... > > > There's never GTK+ multithreaded activity? > > Indeed. > If I may ask, what is the main technical problem (deeper explanation) with using GTK+ from multiple threads? It is probably very application specific. For instance, in m

Re: gtk 2 or 3

2010-11-03 Thread Michael T .
> Od: Tor Lillqvist > Predmet: Re: gtk 2 or 3 > Dátum: 28.10.2010 11:26:08 > > > It's impressive to see someone promoting tech from "the other camp" :-) > > Why not? It isn't like it would have any impact on my personal > happiness/income/status/reputation

Re: GTK Widget assertion problem

2010-06-11 Thread Michael T .
Hi, thank you all for input. > > Le 10/06/2010, Shawn Bakhtiar a écrit : > > 2.2) There is probably a memory leak somewhere. Where the structure of > > the application (the compiled code) puts that pointer outside the > > reach of the overflow so when you re-wrote it, it magically worked > > (vo

Re: GTK Widget assertion problem

2010-06-10 Thread Michael T .
{ //necessary window initializations, vertical boxes, tables etc. combobox = gtk_combo_box_new_text(); gtk_combo_box_append_text(GTK_COMBO_BOX (combobox), (const char*) "U/t"); gtk_combo_box_append_text(GTK_COMBO_BOX (combobox), (const char*) &qu

Re: GTK Widget assertion problem

2010-06-10 Thread Michael T .
In case anyone's interested I solved the problem with a little hack. I create the progress bar this way: progBar = gtk_progress_bar_new(); gtk_box_pack_start (GTK_BOX (vboxGr), GTK_PROGRESS_BAR(progBar), FALSE, FALSE, 0); gtk_widget_show (progBar)); progressBarHack(progBar); the function progr

GTK Widget assertion problem

2010-06-09 Thread Michael T .
Hi, I have a problem, when I try to access the GTK progress bar out of the function it was created in. I have a global variable GtkWidget *progressBar; so that I can access the progress bar from all the functions and different files in the project. When I initilize the bar and call functions to

problem with gtk_widget_style_get

2007-07-16 Thread Abirami T
hi, I'm trying to access the treeview properties set through rc file as below, gboolean num = 0; GdkColor color; gtk_widget_style_get(treeview_widget, "even-row-color",&color, "allow-rul

using gtk in non-gtk apps

2006-09-20 Thread T
Hello all, We are transitioning to a platform-independent UI (i.e. using gtk). So far, we only want to use gtk in new widgets (such as new dialogs) and not change the main applications yet. But I am having problems integrating my first dialog using GtkDialog. On linux (using motif), I have gott

HELP!!!!!!!!!!!!!!!!!!!(html in gtk)

2005-05-09 Thread trupthi n t
Hi everybody, html in gtk Is it possible to embibe html scripts with 'C' functions in gtk? If it can be done,then how do v do it? Trupthi ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gno

gtk_widget_show

2005-04-13 Thread trupthi n t
Hi, I am working on gtk+1.2.10 redhat linux. How do i use gtk_widget_show. When i used it in the following program i got the following error: [EMAIL PROTECTED] test]# make gcc `gtk-config --cflags` foc.c -o foc `gtk-config --libs` [EMAIL PROTECTED] test]# ./foc

(no subject)

2005-04-11 Thread trupthi n t
Hi, To write/find a function which returns the the widget on which the current focus is,when i used the following function GtkWidget* gtk_window_get_focus(GtkWindow *window); The compiler(gtk+1.2.10) gave the following error: [EMAIL PROTECTED] test]# make gcc `gtk-config --cflags`

Help!!!!!!!

2005-04-11 Thread trupthi n t
Hi, I am developing an application in using gtk+1.2.10 in linux. I am not able to carry out the following tasks: 1)TO capture the system date (using an in built function) 2)To write/find a function which returns the the widget on which the current focus is. 3)To co

How to set cursor color in GtkEntry?

2005-02-11 Thread HOCHSTETLER, BRUCE W. (JSC-DV3/T) (TSI)
It seems by default the cursor color is always set to black. The problem is, I've set my entry widget background to black (per user's requirement), now the cursor is appears 'invisible', but is actually black on black. There should be a way to set the cursor color to the text color currently in use