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
2 answers

GTK+ dynamic array

as was suggested by the other post, i'll ask new question, more specific one. GtkWidget *button[] /*to be a dynamic array */ void file_folder(GtkWidget *widget, gpointer data) { GtkWidget* dialog; dialog = gtk_file_chooser_dialog_new("Choose…
Barr J
  • 10,636
  • 1
  • 28
  • 46
0
votes
1 answer

What is xutils.h, and what cflags/libs/packages do I need?

I am thinking about maybe creating my own modified version of a GTK2 libwnck widget. In the source files of these widgets, it includes a file called xutils.h. This header file is present in GNOME's libwnck git repository, but it is not present in my…
adlo
  • 63
  • 8
0
votes
1 answer

Cannot reduce size of gtk window programatically

I seem to be facing a problem when resizing a gtk window programatically. The problem is that once I have increased the width and height of the window to 800x600, I cannot seem to reduce it back to its original size of 400x200. Below is the sample…
0
votes
1 answer

Pass by reference confusion with C and GTK+?

I'm trying to get a pretty simple UI working with GTK+. I think I'm running into some issues pertaining to C and pass-by-reference. Here is some code from my main: ... GtkWidget *controlArea; GtkWidget *sendButton; GtkWidget…
quiet_laika
  • 174
  • 10
0
votes
1 answer

GtkWarning: Modulpath »clearlooks« no Themen-Engine found

German error-message: GtkWarning: Im Modulpfad »clearlooks« konnte keine Themen-Engine gefunden werden If you start a Applikation on bash, you see this error. What can I do to fix this?
suther
  • 12,600
  • 4
  • 62
  • 99
0
votes
1 answer

SIGSEGV when returning pointer to malloc() in dlopen()'ed library

I'm observing some weird behaviour from a relatively simple piece of code and would like to ask if anybody has seen such before. The code below is a basic example for allocating memory inside a function and returning a pointer to it (you can find…
assen.totin
  • 41
  • 1
  • 8
0
votes
1 answer

How to refresh cairo drawing in gtk2?

I have a problem with refreshing my cairo drawing. It doesn't work and I don't know why. Could you help me? I want to create a new "drawing" whenever analyse function is executed. I created something like this: d_area = gtk_drawing_area_new();…
jjpikoov
  • 119
  • 1
  • 11
0
votes
1 answer

Gtk2 crashes on 64-bit machine but works fine on 32-bit

I'm developing an application that uses gtk+2. Earlier I was working under 32-bit CentOS 6.6 and recently I've switched to 64-bit CentOS 6.6 and my appllication stopped working. I have installed 32-bit versions of all required libraries, I compile…
0
votes
1 answer

Can g_time_out add be given a member function of a class?

The question is simply in the title, if I have a function I want to use via a g_timeout_add(), but this function is a class member function, is there any way I can use it with g_timeout_add()?
paultop6
  • 3,691
  • 4
  • 29
  • 37
0
votes
2 answers

Ruby: File dialog wont close

I am using the ruby gem gtk2 to display a simple file dialog, where the user can select a file from his computer. It works just fine, however there is one little problem. The file dialog doesnt close after selecting the file, but it stays open until…
user997309
  • 85
  • 8
0
votes
1 answer

Gtk notebook - store/restore detached tabs

i want to store the settings for tabs which were detached into another Notebook somehow in a file, so that i can restore them when i close/open the program (written in C++). I couldn't find any settings/properties which gives or let me set the…
Burak
  • 11
0
votes
1 answer

Refresh text shown in a GTK+ widget?

Being resonably new to using GTK+, im not fully aware of all its functionality. Basically, I have a GtkTreeView widget that has 4 Columns. I need to update the text displayed in the 4 columns every couple of seconds, but im not aware how to do this…
paultop6
  • 3,691
  • 4
  • 29
  • 37
0
votes
1 answer

installing ruby/gnome2 on ruby1.9

My purpose is to install ruby/gnome2 and make it work with ruby1.9 on Ubuntu9.10. I already have ruby/gnome2 working with ruby1.8, but I need to make it work with ruby1.9. I also have ruby1.9 working. When I run within…
sawa
  • 165,429
  • 45
  • 277
  • 381
0
votes
1 answer

Haskell Chart.Simple glib.0.13.0.1 to GTK+2 link error

This use if Graphics.Rendering.Chart.Simple << import Graphics.Rendering.Chart.Simple main = plotPDF "foo.pdf" [0,0.1..10::Double] sin > produces this link error << Linking chart4.exe ... C:\Documents and Settings\myname\Application…
PruzisG
  • 1
  • 1
0
votes
1 answer

Gtk2, Gdk2 memory usage gets bigger and bigger every frame update

I have been trying to make a program that takses the active window, and displays it in its window. I have successfully exceeded my goal. But the problem is, it uses a lot of ram, and it keeps using more every frame update(20fps). Here is the source…