Все вопросы: [gtk]

212 вопросов

похожие теги: gtk#php-gtkgtk-textbuffer
0
голосов
1ответов
390 просмотров

GTK List with images and Text and other widgets

I am building a simple chat application under GTK+ and C, In that i need to display List of contacts like follows. 1. Window Containing contact list with contacts Presence and status Icons and name. +-----------------------------------------+ | [PresenceImage1] [Name1] [StatusImage1] | | [Prese...

3
голосов
1ответов
964 просмотров

gtk composite widget focus

I created a composite widget with webkit_webview widget stored in scrollwed window with a gtkvbox base widget. How do make to so the base gtkvbox widget is in focus whenever any of the contained widgets have focus? Specifically, I am trying to add accelerator that should only be active when the c...

0
голосов
4ответов
492 просмотров

Gtk per widget accelerators

I build a composite widget and would like it to have it's own accelerators (hotkeys) available only when it is in focus. The only Idea I have so far of how to accomplish this is to change out the accelerator group in the top level when ever my widget goes in and out of focus. It seems like there ...

1
голосов
2ответов
1754 просмотров

How to give a print to printer in PHP-Gtk?

I want to print some records using PHP-Gtk. I am using following code but it did not worked. $handle = fopen("PRN", "w"); fwrite($handle, 'text to printer'); fclose($handle); Please help me Thanks Rahul

2
голосов
1ответов
1191 просмотров

How to start a gtk application after booting up without logging in?

I have got a gtk application. I want it to start automatically when I boot up the system, such that instead of getting usual login screen, my application greets the user. My application is a sort of cash dispensing application. So user should not even see the login screen of linux. Whenever mac...

1
голосов
2ответов
2214 просмотров

How to change the "file" property of a GtkImage when application is running

I want to change the image on GtkImage when user click a buttion, so I tried the code below, but it doesn't work. /* * Compile me with: * gcc -o tut tut.c $(pkg-config --cflags --libs gtk+-2.0 gmodule-2.0) */ #include <gtk/gtk.h> G_MODULE_EXPORT gboolean on_button1_clicked( ...

-1
голосов
7ответов
2326 просмотров

Modern GUI development

Long long time ago was a Delphi, and any developer can rapidly build win32 GUI application. Delphi was a king (long life to king...) but now delphi and win32 has gone away. So question is - what a preferred platform to rapidly build cross-platform GUI applications at present days? I'm have a goo...

4
голосов
1ответов
12560 просмотров

create and emit gtk signal

I am trying to create and emit a GTK signal: g_signal_new("child-finished", G_TYPE_OBJECT, G_SIGNAL_RUN_FIRST, 0, NULL, NULL, NULL, // *** I think this is where I need to change it G_TYPE_NONE, 0); g_signal_connect(G_OBJECT(myWindow), "child-finished", G_CALLBAC...

3
голосов
2ответов
3154 просмотров

GTK in java using windows

can i use GTK in java using windows?Can anyone help me in this?

2
голосов
3ответов
1768 просмотров

GTK transition effects

i am just a beginner with gtk. i have created some of the example of GTK with GTK+Glade. but i want to do some transition effects (Animation) on my Widgets/Windows/Components While they appear/disappear on screen. how do we do it with GTK and Glade?

2
голосов
4ответов
3701 просмотров

Running a GTK+ application on a Linux machine, from Windows

I have Installed GTK on a Linux machine. I am connecting To Linux Machine from a Telnet Session to compile the GTK programs From A Windows Machine. I am using Cygwin on Windows Machine. but i am not able to see GUI output of my GTK program on my Windows Machine. When i run program from my termi...

5
голосов
1ответов
8848 просмотров

How to create gtk+ windows without title bar?

How to create gtk+ windows without title bar(header) in linux?

2
голосов
1ответов
358 просмотров

Custom threads?

How does one create custom threads to run in a Gtk application? Given this simplistic example: @w = Gtk::Window.new "testtest" @l = Gtk::Label.new "test" @w.add @l @w.show_all Gtk.main How could I run a thread like this? Thread.start { loop { puts 'thread running'; @l.text = Time.now.to_s; s...

6
голосов
5ответов
8949 просмотров

Using GTK+ in Visual C++

I want to use GTK for user interface for C++ project. I do not know how to set development environment for it. I downloaded all-in-one bundle of gtk from http://www.gtk.org/download-windows.html How to use it with visual c++ 2008 ?

0
голосов
3ответов
552 просмотров

py2exe'd version of GTK app can't read png files

I'm working on making a py2exe version of my app. Py2exe fails at copying some modules in. My original app loads .png files fine, but the exe version does not: Traceback (most recent call last): File "app.py", line 1, in <module> from gui.main import run File "gui\main.pyc", line 1...

2
голосов
1ответов
795 просмотров

Python WebkitGtk: How to respond to the default context menu items?

The default context menu contains items like "Open link in new window" and "Download linked file", which don't seem to do anything. I obviously like to react on these items, but can't figure out how, since the port's documentation is a bit sparse. Does anybody know?

1
голосов
1ответов
1477 просмотров

Build failure during install py25-gtk on Mac OS X 10.6 using MacPorts 1.8

When I do this command : sudo port clean py25-gtk sudo port install py25-gtk I get this error : ---> Computing dependencies for py25-gtk ---> Building getopt Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rs...

0
голосов
1ответов
1222 просмотров

How do I change gnome icon per application?

I want to change icons to something different per application. I want to change only nm-applet (gnomes network manager applet) and my volume applet to something different than the icon set. How can I do this?

0
голосов
2ответов
318 просмотров

Unresolvable Ruby Gtk2 Error

I keep getting a 'uninitialize GLib::Object' error from my code. Here's the code: class MainWindow < Gtk::Window def initialize title = "I'm The Title Of An Application! Yay!" border_width = 10 set_size_request(600, 300) signal_connect("destroy") { Gtk.ma...

6
голосов
1ответов
12739 просмотров

Installing gtk and compiling using gcc under windows?

I have gcc installed in c:/programfiles (also set as a path variable), and i have all the necessary files for gtk from http://www.gtk.org/download-windows.html, glib,gtk,pango,atk and cairo. Although I have no clue as to how to compile a c program using gtk with the gcc compiler. How do I set eve...

0
голосов
1ответов
255 просмотров

fink doesn't list gtkmm2.4

I'm trying to get started with gtkmm, and I'm using a mac. So I tried using fink to get it installed. Looking online, it seems to be up to date, but when I check on the command line fink list gtkmm It only lists gtkmm2. I went ahead and tried that, but it really is the gtkmm 2.0 distribution. ...

1
голосов
2ответов
320 просмотров

Is it a bad idea to run WxWidgets and GTK?

I'm currently writing a media player in Ruby (called Shroom) with a GTK interface, but I use WxWidget's MediaCtrl for cross-platform audio playback abstraction. I don't want to use WxRuby for the interface as well, as I need to work with GTK's TreeView. What kind of performance problems may aris...

0
голосов
1ответов
212 просмотров

How do I create a multiline wxNotebook for gtk?

wxWidgets provides for notebooks with multiple lines of tabs only on Windows platforms. Is there a simple way to provide similar functionality on GTK based platforms, or am I stuck with the only option being to create a customized notebook class that supports it?

2
голосов
2ответов
731 просмотров

Modifying a GUI started with Glade

I am just starting to learn Glade with pyGTK. Since Glade makes XML files instead of actual python code, is there a good way to start a project with Glade and then hand code more or tweak it? Are there times or reasons it would be preferrable to hand code all of it instead of starting with gla...

1
голосов
3ответов
2641 просмотров

use gtk_signal_connect with a member function in c++

What's the best way to connect a GTK+ signal to a non-static member function? I have a GUI class in c++ that uses gtk, and i want do something like this: Gui::Gui () { gtk_signal_connect(GTK_OBJECT(somObject), "clicked", GTK_SIGNAL_FUNC( &(this-&g...

1
голосов
3ответов
1106 просмотров

GTK Twitter Client

I am learning Python and PyGTK. I'm trying to write a Twitter client. Which widget is best suited for displaying the Tweets (Timeline). I can do it easily with textview but it doesn't support sub widgets to display users image. Tried using TreeView but it seems to be an overkill and is too comp...

2
голосов
1ответов
116 просмотров

Are there any tools to migrate the interface from legacy GTK applications to a modern GTK Builder based application

I'm responsible for a number of legacy C based GTK applications which are starting to show their age. I'm toying with the idea of re-implementing some of them in a more modern framework. Are there any tools which can help migrate a hand-built C based GTK interface into a GTK Builder based XML int...

2
голосов
2ответов
396 просмотров

How to create a tearoff menu using GTKAda?

The question is self-explaining, how to create a tearoff menu using GTKAda? I can't make it work. Thanks.

0
голосов
1ответов
295 просмотров

PyGTK: IM Client Window

I'm trying to write something very similar to an IM client (for learning purposes only). I don't know how to write the Chat window. I want to display Users picture, name and message as any other IM client. The problem is that I don't know which gtk widget is best suited for it. Currently I use Te...

0
голосов
2ответов
1929 просмотров

remove inner border on gtk.Button

I would like to remove border on a gtk.Button and also set its size fixed. How can I accomplish that? My button looks like that: b = gtk.Button() b.set_relief(gtk.RELIEF_NONE) Thanks! p.d: I'm using pygtk