Questions tagged [gtk2]

The GIMP ToolKit (GTK+) in its version 2.x.

The GIMP ToolKit (GTK+) in its version 2.x. For questions that do not specifically address GTK2, use .

484 questions
0
votes
1 answer

python gtk.entry() icon connect: is it possible?

I'm using in Pygtk 2.7 a gtk.Entry. I have set an Icon on this, I would like to know if it's possible to connect the icon to a fonction. My construction is like this: def info(self, a, b): print "INFOS & HELP" def __init__(self): …
Guillaume
  • 2,752
  • 5
  • 27
  • 42
0
votes
1 answer

Very Simple Smooth Animation with GTK+2 and Cairo

I'm using gtk+2.0 and cairo. I wrote a simple program that open a window and move a point. A simple biliard, only horizontal motion. It's just a test. The problem is that it seems to be not so smooth, and I would ask if there are some gtk or cairo…
Antonio Caruso
  • 107
  • 1
  • 12
0
votes
1 answer

change the size of the font on button in gtk+2.0 in C++

I'm trying to change the size of the font on the button but not able to do it. I tried using pango on the widget. For some reason it does not work. Is there an alternate way to do this? #define font "Sans 30" button =…
user3309525
  • 71
  • 1
  • 10
0
votes
1 answer

Allow user to reorder GTK list

I have a list of items, either in styled text format or in columned form, that I would like the user to be able to reorder themselves. (and I'm not talking about merely sorting by a column, either) Is there a widget that supports this, or at least a…
Raceimaztion
  • 9,494
  • 4
  • 26
  • 41
0
votes
1 answer

gtk font rendering using native windows handle

I made a small gui app for rendering text using gtk+2. To tackle horrible fonts on win32. I am creating a cairo surface using native windows handle (HDC). Now font look beautiful in windows but it appears that canvas do not update correctly after…
duckduckgo
  • 1,280
  • 1
  • 18
  • 32
0
votes
1 answer

find default key shortcuts in GTK

Is there a way to get the default key shortcuts for common operations in GTK2/GTK3. I am specifically interested in finding the shortcuts for Copy. In QT there is http://qt-project.org/doc/qt-4.8/qkeysequence.html#standard-shortcuts I guess there…
fariza
  • 634
  • 1
  • 5
  • 19
0
votes
1 answer

GTK Adjustment Variable

I'm coding with C, GTK+ and cairo. I'm trying to use a slider to change the value of a variable. This is what I have so far: adj = (GtkAdjustment *) gtk_adjustment_new (300.0, -50.0, 500.0, 1.0, 1.0, 1.0); scale = gtk_hscale_new (GTK_ADJUSTMENT…
FranciscoS
  • 11
  • 3
0
votes
1 answer

Gtk set_tab_reorderable redraw label

I'm a first time user of pygtk. I've modified some existing code from the gtk docs to add tab dragging functionality, but the label isn't redrawn on drag and goes white instead. How do I redraw it? #!/usr/bin/env python # example…
simonzack
  • 19,729
  • 13
  • 73
  • 118
0
votes
1 answer

How do I use an image as the background of a gtk toolbar in GTK+2.0

Is there any api like gtk_widget_modify_bg() to modify the background of a gtk toolbar by an image. gtk_widget_modify_bg() only can change the color of the background.
Spark.Bao
  • 5,573
  • 2
  • 31
  • 36
0
votes
1 answer

RGTK2 block user input while processing

I have written a GUI in R with RGTK2 and Tcltk that does a lot of fairly heavy calculations and aggregations on big data sets. I would like to find a way to stop the user interface from accepting user inputs while it is processing a large data set,…
0
votes
1 answer

How to find GTK version in PHP-GTK2?

This one is driving me nuts. According to GTK's site, there exists GTK_MAJOR_VERSION, GTK_MINOR_VERSION, and GTK_MICRO_VERSION constants. However, none of these work: echo GTK_MAJOR_VERSION; echo GtK::MAJOR_VERISON; echo…
user129975
  • 3,395
  • 4
  • 19
  • 16
0
votes
1 answer

RGTK2 Implementing a Scrolled Window

I'm writing a GUI in R that compares a bunch of different plots. I am trying to implement a scrolling window to contain the plots. What I am having trouble with is controlling the size of a scrolledwindow using Rgtk2: window = gtkWindow(show =…
user2127595
  • 176
  • 14
0
votes
1 answer

Identify a step up/down movement of scrollbar in gtk

I have created a gtk scrolled window. I had attached a gtk tree view to it I have created gtk adjustment for vertical scrolling purpose I have created gtk vertical scrollbar and with the adjustment created above. I filled the treeview with some…
Vijay
  • 65,327
  • 90
  • 227
  • 319
0
votes
1 answer

Why's this wxPython script giving a Gtk-WARNING

OS : Ubuntu 12.1, python : 2.7.3, wx : 2.8 gtk2 #!/usr/bin/env python #-*- coding:utf-8 -*- import wx import sys class Frame (wx.Frame): def __init__(self, parent, id, title): print "Frame Initialised" wx.Frame.__init__(self,…
0
votes
3 answers

How do I create the final executable file using `make`?

I am trying to write a makefile for a small project which uses GTK libraries. # Compiler cc = gcc #Options for Development CFLAGS = `pkg-config --cflags --libs gtk+-2.0` all: pss pss : main.o interface.o # $(cc) $(CFLAGS) -o pss main.o…
asheeshr
  • 4,088
  • 6
  • 31
  • 50