gtk

Is Perl a good option for writing platform independent desktop applications?

Is Perl a good option for writing (possibly and partially) platform independent desktop applications? I know there are interesting widget libraries like GTK2 Perl and wxWidgets but I'm not familiar with development on Windows. Is it possible to write a good application with Perl and those tools, maybe embedding everything needed to avoi...

C++, GTK+, and String types

Excuse my ignorance here but I know neither C++ nor GTK+. Which String type is used when setting Strings in GTK+ widgets? In .NET, Strings passed to a control are obviously .NET System.String. In Cocoa, Strings passed to a control are NSString. But I understand C++ does not have a standardized String type (but indeed several, depending...

In Gtk, how do I remove the shadow from a Statusbar?

If I make a Statusbar, and PackEnd a Label to it, it looks something like this: The Shadow disappears over the Label, but remains over the rest of the Statusbar. I want to remove the Shadow from the entire Statusbar. The PyGTK documentation mentions a property called shadow-type, but it's readonly, and nowhere to be found in GTK#. How...

How to connect GtkTextView to GtkMenuItem

I'm making a trivial text editor (as an exercise) in GTK using Glade, GtkBuilder, and C. I have an edit menu with Cut, Copy, and Paste as well as a GtkTextView for the text. GtkTextView automatically binds the cut/copy/paste sequences for itself (and even provides menu items if you right click). I want to connect the Cut, Copy, and Pa...

GIO example for opening a server port?

Can you please tell me if there is any example for using GIO Server Socket (the one which I can open a port and listen on socket requests)? I would like to use it to 'remote-control' my GTK+ application. ...

PyGTK, how can I lock a window so it cannot be resized?

I am looking for a way to lock the window. I found window.set_resizable(False), but that resizes the window to its requested size and then locks it. I would like to be able to resize my window, and then lock it into the size I have resized it to. ...

Python / Linux/ Daemon process trying to show gtk.messagedialog

Hi, on Ubuntu 8/9, i'm trying to write a daemon in python, that monitors a certain network condition and informs the user using a gtk.messagedialog. I installed this script using rc-update. The daemon starts at boot, but doesn't show the dialog even after I login. I assume because init.d starts my daemon at tty1 and no gnome is availabl...

(Py)GTK StatusIcon notifications on Windows

I'm currently writing a screen capture app for Windows and Linux using PyGTK, and I've hit a slight problem with displaying notifications. On Linux, I've been using the libnotify bindings to provide notifications, which has been working very well; however, this has no equivalent on Windows. I'd use the Win32 APIs directly to display the...

DBus Glib Send Signal - No signals being emitted.

I am attempting to send a signal out over the session message bus. I am able to call methods fine using d-feet dbus debugger with no problem. Unfortunately d-feet does not allow you to connect to signals to debug those. In replacement I am using dbus-monitor "type='signal'" to see if anything is sent. So far this works except for anythin...

gtk.Builder() and multiple glade files breaks

Hi I have a glade gui, and I want to insert another object using a glade file as well. When I do it as bellow (this is essentially what I am doing) the whole app hangs and the self.show() and maxes out the CPU at 100%. If I replace the first line of one's init() with self.builder = gtk.Builder() then the app runs, I can set widgets,...

Convert Line Number Into its corresponding co-ordinates

I have a application written in PyGtk. I need to convert a particular line number into its corresponding window co-ordinates in a GtkTextView. How can this be done? ...

What does "->" stand for in C programming, Gtk+ programming?

Possible Duplicate: What is the arrow operator (->) synonym for in C++? I couldn't find documentation on the "->" which is used a lot in Gnome codebase. For example in gedit they have this: loader->document = g_value_get_object (value) What is document in relation to loader? There are many other examples as well with more bas...

Open a PyGTK program but do not activate it

I have a PyGTK program which is hidden most of the time, but with a keypress it shall come up as a popup. Therefore I want the program not to be activated when its opened. I tried several options to to that, with no success: self.window.show() self.window.set_focus(None) Activates the program, but sets no focus. self.wi...

pygtk: determine key is a modifier

I've got key-press-event handler and i need to determine which kind of key was pressed: modifier or not? It's not in event.state, because this field works only when modifier was pressed with something else, but i need this for single key (i.e. simply pressing control or alt, ...). ...

Making a Python/GTK CheckMenuItem, when clicked, not close the menu

Using Python and PyGTK I've got a GtkMenu with various GtkCheckMenuItems in it. When the user clicks one of the checkboxes the menu closes. I'd like for the user to be able to check a series of checkboxes without the menu closing each time. I've looked at using the activate callback to show the menu but this doesn't seem to work. Any ...

GTK : How to set the Height of a VBox?

Hi I'm making an app using GTKMM. The screenshot is below: Screenshot The Problem is, I'm not able to position the "My Label" to align at the top, just below the Search box. I'm packing Name,Search box, Search Button into a HBox, which is packed into a VBox, and then MyLabel is packed into the VBox. I think the problem is that the V...

[GTK+] Change progress bar with circular wait image

Hi, Is it possible to skin the GTK+ progress bar widget such that it shows a custom image (an AJAX style animated gif maybe)? If so how and if not, is there any other option/control which can achieve this effect? ...

Gtk::MessageDialog Run throws a segmentation fault

Hi I'm trying to show an error mesaage using a dialogbox. However when I run the code I get segmentation fault. Here's the function: void ShowErrorMessage(string message) { Gtk::MessageDialog dialog(message,true,Gtk::MESSAGE_ERROR,Gtk::BUTTONS_CLOSE,true); dialog.run(); } I try to open a file, if the file can not be open I wanna ...

How can i remove the task bar entry of a GTK# window?

... Just like the ShowInTaskBar property of a WinForms form. ...

In Gtk, can I make a Button's mnemonic not require an "alt" mask?

I have 6 Buttons, labeled "_0" through "_5". I would like for each button to be pressed when the user presses the corresponding number key. Right now, they must press Alt + the corresponding number key. I can sort of work around this by giving each button an Accelerator, but it's not quite the same thing. With accelerators, as soon as t...