Re: Porting UIs to GtkBuilder

2009-04-15 Thread Zeeshan Ali (Khattak)
al only in libglade format and referenced (by object > type property) in GtkBuilder format. That is gone too now with a fresh conversion using glade3 so I am afraid, we might never find out. :) Thanks again. -- Regards, Zeeshan Ali (Khattak) FSF member#5124 ___

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Zeeshan Ali (Khattak)
Hi, On Wed, Apr 15, 2009 at 1:35 AM, Tristan Van Berkom wrote: > On Tue, Apr 14, 2009 at 4:50 PM, Zeeshan Ali (Khattak) > wrote: >> Hi, >>   Reading through planet gnome and related mailing-lists recently, I >> got the impression that this would be a good time to port

Porting UIs to GtkBuilder

2009-04-14 Thread Zeeshan Ali (Khattak)
)) Aborted The error from the third UI says a bit more so i think i can debug that on my own, but what is this supposed to mean? -- Regards, Zeeshan Ali (Khattak) FSF member#5124 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: how to replace a child of a GtkBox ?

2007-12-30 Thread Zeeshan Ali Khattak
ct keeps it's own reference of the objects it needs. So when you set a new child on a GtkBox object, the GtkBox must unref the old child widget. -- Regards, Zeeshan Ali Khattak FSF member#5124 ___ gtk-app-devel-list mailing list gtk-app-devel-list

GdkPixbuf object from stock icons

2007-09-23 Thread Zeeshan Ali
--- image = gtk_image_new (); pixbuf = gtk_widget_render_icon (image, stock_id, size, NULL); --CODE SNIPPET END- This one works quite fine but is obviously hackish, Does anyone know of any better way of doing the same? -- Regards, Zeeshan Ali FSF m

Re: GdkPixbuf object from stock icons

2007-09-22 Thread Zeeshan Ali
r_icon() > > The most raw method is > > gtk_icon_theme_lookup_icon() + gtk_icon_info_load_icon() I thought icon theme is different from stock icons? -- Regards, Zeeshan Ali FSF member#5124 ___ gtk-app-devel-list mailing list gtk-app-dev

GdkPixbuf object from stock icons

2007-09-22 Thread Zeeshan Ali
--- image = gtk_image_new (); pixbuf = gtk_widget_render_icon (image, stock_id, size, NULL); --CODE SNIPPET END- This one works quite fine but is obviously hackish, Does anyone know of any better way of doing the same? -- Regards, Zeeshan Ali FSF m

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread Zeeshan Ali
Hi again! On 12/27/06, Zeeshan Ali <[EMAIL PROTECTED]> wrote: > > In Tony's case, he might have to extract the fd from the SSH_SESSION > > object (is there an interface for that?) to be able to stuff it into a > > GIOChannel (not very difficult. I've done it w

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread Zeeshan Ali
ject. It would be doing that now if there were some documentation on how to implement your own GIOChannel but the glib docs seems to even abstract the GIOChannel structure even so i'll have to get into the sources. -- Regards, Zeeshan Ali Design Engineer, SW Open Source Software Operations

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread Zeeshan Ali
#x27;s own textbuffer in it's assigned notebook page. Just a thought: Wouldn't it be a better idea to use a library instead of a command when one is available: libssh (http://www.0xbadc0de.be/libssh:libssh). -- Regards, Zeeshan Ali Design Engineer, SW Open Sour

Re: Passing data from a data collection window back to a main

2006-11-26 Thread Zeeshan Ali
windows > > label. > > > > This sort of example would be very useful in the tutorial. > > > > Thanks, > > Kim > > _______ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org >

Re: How to display Indian language text on a button(Urgent)

2005-10-19 Thread Zeeshan Ali
charachters in proper place (e.g in the C string). You might want to copy&paste individual charachters from the charachter map (this is how i did that to put urdu text on my widgets). -- Regards, Zeeshan Ali ___ gtk-app-devel-list mailing list

Re: gtk and opnengl

2005-10-15 Thread Zeeshan Ali
f doing this kind of stuff (AFAIK). You can find the docs. on the website and also their mailing-lists. -- Regards, Zeeshan Ali ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Query- Cross compile Gtk application for ARM..problem using scratchbox

2005-08-01 Thread Zeeshan Ali
nd its > > dependencies) from source. > > If you have the debian devkit installed and selected for your target, you can simply get gtk+ (libraries and headers) installed by using this simple command: fakeroot apt-get install libgtk2.0-dev -- Regards, Zeeshan Ali ___

Re: Window Visibility Signal

2005-07-25 Thread Zeeshan Ali
mouse into the window and out of it and clicks. Try "visibility-notify-event" and try all the other (likely) signals of GtkWidget documented in the gtk+ reference manual please if this doens't work either. Regards, Zeeshan Ali ___ gtk

Re: Window Visibility Signal

2005-07-25 Thread Zeeshan Ali
' property of the widget. Moreover, 'expose' signal is called for both the cases (show and hide). If you choose to go the 'expose' way then connect your handler using g_signal_connect_after(). -- Regards, Zeeshan Ali ___ gtk-app-dev

Re: Glade C code a bad thing? (was: root windows)

2005-06-01 Thread Zeeshan Ali
Hello guys, I think Gus forgot to CC his email to the list, so i am forwarding it here. -- Forwarded message -- From: Gus Koppel <[EMAIL PROTECTED]> Date: Jun 1, 2005 9:40 AM Subject: Re: Glade C code a bad thing? (was: root windows) To: Zeeshan Ali <[EMAIL

Re: Glade C code a bad thing? (was: root windows)

2005-05-31 Thread Zeeshan Ali
fear of some people on this list) since it open's up a new possiblity: you'll then be able to write your GUI in XML and getting it transformed into the source-code without using any GUI utility. :) -- Regards, Zeeshan Ali ___ gtk-app-devel-l

Re: how to clear the pixmap window

2005-05-19 Thread Zeeshan Ali
Hello, > You can use g_object_unref(), to destroy this widget, > so that the window refreshes itself, or paint the > pixmap with one of the gdk_drawable_* API to fill the > pixmap with some color, you call as refreshing. destroy the widget to refresh it's window? Are you serious? __

Re: gtk themes

2005-05-10 Thread Zeeshan Ali
all gtk_init (), passing it the path/name of your gtkrc file. Regards, Zeeshan Ali. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GNOME Indentation Style

2005-04-29 Thread Zeeshan Ali
Hello everyone, According to the article "GNOME Programming Guidelines", the gnome hackers prefer the Linux kernel indentation style: "For core GNOME code we prefer the Linux kernel indentation style." But comparing the gtk+ sources with that of the kernel, i see some major differences, e.g plac

Re: Xlib: unexpected async reply

2005-04-26 Thread Zeeshan Ali
/gdk calls you make in your threads. > PS: I don't use g_* threads, i use pthread_*. I don't think that will make any difference. Regards, Zeeshan Ali. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Increased memory size

2005-02-25 Thread Zeeshan Ali
Hello everyone, In an app. of mine i set an image with the following properties as the background of my main window: background.png: PNG image data, 1024 x 768, 8-bit/color RGB, non-interlaced I do this by having these lines in the theme file: bg_pixmap[NORMAL] = "background.png" bg_pixma

Re: GTK app with no keyboard/mouse

2005-02-23 Thread Zeeshan Ali
Hello, IMHO another option is to implement an in-kernel 'input' device. I dont know ANYTHING about the other options people suggested you here but this way would enable you to: 1. Generate both keyboard/mouse events from the same device 2. Use your device from any (even non-gtk and non-X) appli

Re: A bug in Gtk+? (+ OT suff)

2005-02-23 Thread Zeeshan Ali
Hello, > Please, forgive my OT question, but I'm going to start a gtk+ project > involving the use of a smart card reader and I'd very happy to know your > suggestions about linux supported hardware. Welcome to the gang! Sorry to dissappoint you but I too am very new to all this. So far i've

Re: A bug in Gtk+?

2005-02-23 Thread Zeeshan Ali
Hello, On Wed, 23 Feb 2005 10:12:07 +0200, Olexiy Avramchenko <[EMAIL PROTECTED]> wrote: > When you create main loop with NULL as context parameter, main loop gets > shared default context. Before you create your main loop, default > context was populated with functions from gtk/gdk. > > The bloc

Re: A bug in Gtk+?

2005-02-22 Thread Zeeshan Ali
Hello, On Tue, 22 Feb 2005 15:22:50 +0100, Stefan Kost <[EMAIL PROTECTED]> wrote: > Are you sure? Yeah I am sure and thats why i suspect that it may be pointing to a bug in gtk+. Why don't you try it youself? Shouldn't take > 15 mins. :) ___ gtk-

Re: A bug in Gtk+?

2005-02-22 Thread Zeeshan Ali
Hello, Hmm.. I thought that email with attachments goes through the moderation. Anyway, I have uploaded it here: http://www.geocities.com/zeelists/thread-problem.c . Kindly have a look at it. Thanks. ___ gtk-app-devel-list mailing list gtk-app-devel-l

Re: Inside GtkComboBoxEntry?

2005-02-21 Thread Zeeshan Ali
Hello again, What a coincidence! I found the answer to both my queries a few seconds after i sent the last email :) Here are the anwers: > 1. the exact name of the widget that's the pop-up menu for the > GtkComboBoxEntry. GtkMenu > 2. the exact name of the widget that's displaying the text

Inside GtkComboBoxEntry?

2005-02-21 Thread Zeeshan Ali
Hello, Pardon me for repetition but I am still stuck in the same old problem of trying to apply a particular theme to a GtkComboBoxEntry, the pop-menu attached to it and the text entries inside it. I think all i need to know is: 1. the exact name of the widget that's the pop-up menu for the Gt

A bug in Gtk+?

2005-02-20 Thread Zeeshan Ali
Hello, In a gtk+ app of mine, i was facing strange dead-locks problems. I was astonished to see that just removing the call to gdk_threads_init, the problems vanished. I am attaching a sample test program that re-produces the same problem. It seems more like a bug in the gtk+ rather than my logi

Attaching style to GtkLabel

2005-02-18 Thread Zeeshan Ali
Hello everyone, In my gtk+ app, I attach style to different widgets/classes using the rc file. Here is the line from my rc file for attaching style 'my-label' to ALL labels: class "GtkLabel" style "my-label" Now, this works for all the labels except for one: the GtkLabel inside the GtkMenu

gtk_main_quit from another thread

2005-02-12 Thread Zeeshan Ali
Hello, What is the correct/nice way of asking a thread to stop from the main thread if that thread is in a gtk_main (). I simply call gtk_main_quit () from my main thread and then wait for that thread to actually finish calling g_thread_join (). I've a hunch that there is something wrong with t

Re: How to set cursor color in GtkEntry?

2005-02-11 Thread Zeeshan Ali
Hello, I used to do such a thing and my way of doing such stuff was using gtkrc files (which is what i still use). There are two arrays that you need to set here: text and fg. Set them both to black for all possible indexes and I think you'll get the behavior you want. Here is a how the relevent

Re: GUI programming vs encapsulation

2005-02-04 Thread Zeeshan Ali
Hello, > Is writing unwieldy spaghetti code a > necessary part of GUI programming, or have I missed some important point? Yes, the important point you missed is that Glade is not meant to generate code for you. You can use it for that purpose if you want to but you'll end-up in problems like

Re: font in rc file

2005-01-25 Thread Zeeshan Ali
Hello, I have no idea regarding the gtk1.2 way, but AFAIK in gtk2, you'll have the font specified like: "Arial 14" or "Sans 14". The '14' is an example of the font size specification, which you can omit i think. ___ gtk-app-devel-list mailing list gtk