Re: How best to fetch a web page...

2005-01-26 Thread Stefan Kost
/listinfo/gtk-app-devel-list -- \|/Stefan Kost @ @ privatebusiness +-oOO-(_)-OOo-- - - - - - | __ Address Simildenstr. 5 HTWK Leipzig, Fb IMN, Postfach 301166 | /// 04277

size adaptive window layout

2005-01-26 Thread Stefan Kost
scolling is only used, when the window does not fit the screen? Any suggestions? Stefan -- \|/Stefan Kost @ @ privatebusiness +-oOO-(_)-OOo-- - - - - - | __ Address Simildenstr. 5 HTWK

getting wrong iters when using a TreeModelFilter

2005-01-28 Thread Stefan Kost
; g_list_free(columns); gtk_tree_model_get(store,iter,SEQUENCE_TABLE_POS,row,-1); // cursor is at track,row gtk_list_store_set(GTK_LIST_STORE(store),iter, SEQUENCE_TABLE_PRE_CT+track,str,-1); } } -- \|/Stefan Kost

Re: getting the height of all cells in treeview

2005-02-08 Thread Stefan Kost
Please help, I am now totaly lost in the API. I've now converted all my code to use the fixed-height mode. The biggest disadvantage is that I now need to set 'fixed-width' for each column. gtk_tree_view_columns_autosize() shows no effect (its called after realizing the treeview). First

Re: Set number of rows in GtkTreeView

2005-02-08 Thread Stefan Kost
Hi Ken, yes that is. That is the reason you have a TreeView widget and a TreeModell. The TreeModel contains your data. The TreeView contains TreeColumns that display data. Adding more columns to a treeview is easy. The difficult part is adding more columns to you model. This often requires to

Re: gdk_threads_enter/leave() in threaded and non threaded situation

2005-02-11 Thread Stefan Kost
not be initialized. The main problem is that the docs are not clear where exactly one needs to put enter/leave call. And if the it is wrong in just one place that whole app can start to behave odd. On Thu, 10 Feb 2005 22:20:51 +0100, Stefan Kost [EMAIL PROTECTED] wrote: hi hi, I have a gobject

Re: gdk_threads_enter/leave() in threaded and non threaded situation

2005-02-11 Thread Stefan Kost
, not starting sequence.play() as a thread. Instead creating a method in the gtk app that is started as a thread and that calls sequence.play() wrapped by enter()/leave(). I'll try this now. Stefan On Thu, 10 Feb 2005 22:20:51 +0100, Stefan Kost [EMAIL PROTECTED] wrote: hi hi, I have a gobject property

Re: gdk_threads_enter/leave() in threaded and non threaded situation (SOLVED)

2005-02-12 Thread Stefan Kost
just a closing follow up. I found a solution in rythmbox sources : static GThread *main_thread = NULL; void rb_thread_helpers_init (void) { main_thread = g_thread_self (); } gboolean rb_thread_helpers_in_main_thread (void) { return (main_thread == g_thread_self ()); } void

Re: running without a mainlopp for unittests

2005-02-15 Thread Stefan Kost
0x08058b40 in bt_edit_application_new () at edit-application.c:94 #40 0x08056e10 in test_load1 () at t-bt-edit.c:128 #41 0x08055d12 in srunner_run_all (sr=0x8081798, print_mode=CK_NORMAL) at check_run.c:406 #42 0x08052be9 in main (argc=1, argv=0xbfffecc4) at t-bt-edit.c:52 Stefan Kost schrieb: hi hi

Re: A bug in Gtk+?

2005-02-22 Thread Stefan Kost
Hi Ali, your attachment seems missing. Can you put it on a webserver and post the link? Stefan 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

Re: On GtkTreeModelFilters

2005-02-23 Thread Stefan Kost
Hi Denis, for me it works fine in gtk-2.4.X. Stefan Hi ! Again a question on treemodels : I saw that the GtkTreeModelFilters where introduced in gtk 2.4 but is documented only in 2.6 Does this mean that the feature should be considered as experimental in 2.4 ? or can I rely on it ? Thank you

Re: Disabling menu And Modal dialog boxes!

2005-03-29 Thread Stefan Kost
, Stefan Kost [EMAIL PROTECTED] wrote: Hi --snip-- somewhere in callbacks i've used:- gtk_widget_set_sensitive(pepStatus,FALSE); http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-set-sensitive The first arg *must* be a pointer to the widget and not a gchar*. This has nothing to do

Re: GTK+, CYGWIN MSW

2005-04-11 Thread Stefan Kost
Hi Jamiil, that is normal when using Cygwin. If you want a native version use MingW together with the gtk+ builds e.g. Tor offers. Stefan I have finally got an application to compile under cygwin, but to run it I have to launch the X server, 'startx' to be able to run the program under cygwin.

Re: GTK+, CYGWIN, MSW and GCC flagas

2005-04-12 Thread Stefan Kost
. Before Thanks to everyone envolved in From: Stefan Kost [EMAIL PROTECTED] To: Jamiil Abdullah-Alkadir [EMAIL PROTECTED] CC: gtk-list@gnome.org, gtk-app-devel-list@gnome.org, cygwin@cygwin.com Subject: Re: GTK+, CYGWIN MSW Date: Mon, 11 Apr 2005 08:51:34 +0200 Hi Jamiil, that is normal when

Re: GTK Coding Conventions

2005-04-13 Thread Stefan Kost
Hi Rick, look at the GObject tutorial: http://www.le-hacker.org/papers/gobject/ If you design your application in a oo-fashion, all global variables you have is an application object handle. That in turn knows the rest. Its like a tree, where one tree-node knows stuff about what it is

Re: A grid with gtk

2005-04-14 Thread Stefan Kost
Hi Hubert, not really. GtkTreeView 1.) misses a selection mode for rectangualr areas. 2.) can't show row-headings (like the columns headers) Apart - anyone knows who is maintaing the TreeView widget and if possibly the one has becom less involved? Stefan Hi. Hi, I'm using GtkSheet from GtkExtra

Re: A grid with gtk

2005-04-14 Thread Stefan Kost
Hi John, I've tried the grid, but wasn't too happy with that either. If the GtkTreeview maintains pops up again, maybee supporting rectangular selection can be discussed. STefan On 4/14/05, Stefan Kost [EMAIL PROTECTED] wrote: not really. GtkTreeView 1.) misses a selection mode for rectangualr

Re: [Newbie] finalize/dispose and get/set_property

2005-04-28 Thread Stefan Kost
Hi Laurent, please see inline comments. hi all, I'm using GObject to do Object Programing in C, I'm not using GTK. I search in the mailing-list archive and I didn't get what I'd like. I've got pragmatic questions, quite simple (although I don't understand), in order to have basics for doing

Re: Segfault and cheep mend of gtk_combo_box_get_active_text

2005-05-02 Thread Stefan Kost
Hi Olivier, As there seems to be nothing wrong with you programm as such, can you try to get a backtrace by running your same in gdb. gdb ./example and after is seg-faulted bt if you get a good backtrace (that shows where it crashes), file a bugreport in bugzilla and attach the backtrace.

Re: GLib-GObject-CRITICAL debugging

2005-05-14 Thread Stefan Kost
Hi Daniel, what I do is to have the same version of gtk and glib I have from portage installed again to my homedir built from source. So I have $HOME/debug with debug version of some libs. When I have to gebug I just lauch the app as env LD_LIBRARY_PATH=$HOME/debug/lib gdb ./my-app

Re: gtk toggle button

2005-06-02 Thread Stefan Kost
Hi vasu, please go to http://developer.gnome.org/doc/ http://developer.gnome.org/doc/tutorials/#gtk and read through the gtk tutorials. The list does not miond to answer questions. But it makes more sense if you understand the basic of how gtk+ works. Stefan hi ; i have two frames

Re: List of compound widgets

2005-06-16 Thread Stefan Kost
Hi Slou, Hi. I wonder if there is existing widget that acts like GtkTreeView but can contain any other gkt widget? I want this container to be able to select and operate selection like GtkTreeView does, but I want to place some buttons and vboxes inside. There is gtksheet in gtk-extra-2

Re: datadir variable

2005-06-23 Thread Stefan Kost
Luka Napotnik wrote: Hello! When I didn't use autoconf, I loaded images with an absolute path. But now I use autoconf and if I do make install, the path is wrong. Now I figured out that I need to get the right path with a $datadir variable which is in Makefile.in. How do I get that variable

Re: Child windows with Gtk+-2.6.4

2005-07-05 Thread Stefan Kost
[EMAIL PROTECTED] wrote: Hi all, i'm new in gtk and i have to develop an application with a lot of windows. I remember that with delphi, it is possible to open a window in the mother window. Is it possible with gtk+ ? There is (or was) a project called LibGtkMdi that looked promissing. These

Re: How to draw a custom border across multiple cells in TreeView?

2005-07-08 Thread Stefan Kost
can only point you to how I did it and it works for me (tm), no guarantees though: http://cvs.sourceforge.net/viewcvs.py/buzztard/buzztard/src/ui/edit/sequence-view.c?rev=1.9view=auto look for the method bt_sequence_view_expose_event() Stefan On 7/7/05, Stefan Kost [EMAIL PROTECTED] wrote: Hi

unfocussed windows

2005-07-22 Thread Stefan Kost
hi hi, as part of my test suite I run GUI tests. Now this is a bit disturbing as windows flicker around. A first idea I had was to avoid that these windiows become active. I thought about using: gtk_window_set_focus_on_map(GTK_WINDOW(main_window),FALSE);

Re: Doubt about free or dont free

2005-07-25 Thread Stefan Kost
Gus Koppel wrote: While the case of returned const gchar *s is rather simple, the real problem to me is that the API docs are quite less explicit when it comes to more complex objects than just string constants. For instance, whether and how reference counts of objects related to treeviews are

Re: Doubt about free or dont free

2005-07-26 Thread Stefan Kost
Hi again, Gus Koppel wrote: While the case of returned const gchar *s is rather simple, the real problem to me is that the API docs are quite less explicit when it comes to more complex objects than just string constants. For instance, whether and how reference counts of objects related to

gobject singal firing order

2005-07-27 Thread Stefan Kost
hi, when I do an g_object_set() while having a handler connected to the notify:: signal. Is the notify handler triggered before the g_object_set() returns or just soon afterwards? Is this deterministic? Stefan ___ gtk-app-devel-list mailing list

Re: painting transperent in drawing area

2005-08-01 Thread Stefan Kost
Hi Yogesh, I have already asked this question and didnt get a answer. how do i paint transperent in drawing area. let me explain it clearer. If i have set bg pixmap to window , then i have a drawing area in it. now i draw box of white color. Now how do paint transperent. No answer can also

Re: g_spawn_async_with_pipes problems

2005-08-03 Thread Stefan Kost
Hi John, Hello people. I call an external program, like this: ok = g_spawn_async_with_pipes(/tmp, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, std_in, std_out, std_err, error); For both the std_out

Re: gtk label segmentation fault

2005-08-08 Thread Stefan Kost
Hi Yogesh, please understand the C language a bit better! i used gtk gtk_label_new( const char *str ) to create a new label[why it needs a const char?] because it tells you that it wont mess with the char-pointer contents you pass to the function. below is a part of my code const ch; const

Re: Bayer Pattern images in Pixbuf or Pixmaps

2005-08-09 Thread Stefan Kost
it would be helpful if you tell us what the heck a 'bayer pattern' is ... Michal Porzuczek wrote: Hi I was wondering if Pixmaps or Pixbufs support Bayer Pattern data and if not if there is a simple conversion technique to get a Bayer Pattern image into an RGB or other image format that could

Re: Destroying a GtkListStore

2005-08-12 Thread Stefan Kost
Daniel Pekelharing wrote: Hi all, How do I destroy a GtkListStore created with gtk_list_store_new() ?? There seems to be no gtk_list_store_destroy() .. Thanks g_object_unref() is the thing to do for all GObject derived classes. Stefan ___

Re: gobject reference question

2005-08-15 Thread Stefan Kost
Hi, Boncek, John wrote: More generally, what leak-detection tools exist? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wallace Owen Sent: Monday, August 15, 2005 1:44 PM To: gtk-app-devel-list@gnome.org Subject: gobject reference question How can I

Re: checkbox nightmares

2005-08-22 Thread Stefan Kost
Hi Terry, hi i am using gtk+ 2. I wish to use a checkbox to update other checkboxes on the screen ie if A gets ticked tick b tick c tick d .. but conversly if any one of b,c,d are un-ticked, untick a. you want to use gtk_toggle_button_set_state() for this. GtkCheckButton is

Re: Signal after Form is completely built

2005-09-05 Thread Stefan Kost
Hi Guenther, Hallo List, I have done a quite complicated GtkDialog. However, if the complete Dialog is built and display, I want some entries changed before the user shall edit there. Is there such an signal generated ? Why don't you update the settings after constructing, but before

Re: Hide the Border of Notebook and scrolled window widget

2005-09-06 Thread Stefan Kost
Hi, sadhees kumar wrote: hi Friends, I want to hide the border of notebook and scrolled window. For that i tried with the following function, gtk_notebook_set_show_border(notebook,FALSE); but, i didn't get the success. Is there any possibility to hide those borders? Thanks in advance

Re: GtkList problem solved

2005-09-07 Thread Stefan Kost
Hi, Faria, Sydney C schrieb: I still have a couple of question about this widget: 1. I saw some example code creating a cell renderer as follows: renderer = gtk_cell_renderer_text_new(!-- --); this looks like some sort of formatting or an xml tag or most likely a typo, if not a

Re: GObject Singleton

2005-09-08 Thread Stefan Kost
hi, Uzytkownik wrote: I have singleton A and subclass B, C and D. 1. How do it in GObject? The sigleton pattern is usually realized by having a factory method. The application would use e.g. gdk_display_manager_get() which returns a reference to always the same GdkDisplayManager object.

Re: GObject singleton.

2005-09-08 Thread Stefan Kost
hi, Uzytkownik wrote: I have class A(abstract), which is singleton. It have subclasses called B, C and D. Is it possible that create class B overload static A methods? If A is abstract, than the default virtual methods will just have a g_return_if_reached() and a subclass not overloading

Re: How to make report generation in gtk

2005-09-16 Thread Stefan Kost
Hi Greg, a tiny correction. Tables with correct pages breaks are easy to do and don't even need CSS. The only problems are that MS IE does not support it (which might not be a problem here) and that many people are not aware of it :). Just do: table thead tr thHeader1/ththHeader2

Re: Efficient use of GDK Graphic contexts

2005-09-26 Thread Stefan Kost
Hi Greg, two ideas: 1) clean: subclass the widget and store the GC in your class 2) dirty: use g_object_set/get_qdata() to attacht the GC to the objects Stefan I'm building a form designer application and need to draw a grab border around widgets when the user selects them. This part seems

Re: problem with gtk_tree_view_set_fixed_height_mode()

2005-10-05 Thread Stefan Kost
Hi Brian, Brian J. Tarricone wrote: On 10/4/2005 5:07 AM, Stefan Kost wrote: Brian J. Tarricone schrieb: Hi all, I'm trying to use GtkTreeView's fixed height mode for a playlist that can hold thousands of items, but I'm having a bit of trouble. All I seem to get is: Gtk-CRITICAL

GOption replacement for poptPrintUsage needed

2005-10-12 Thread Stefan Kost
hi, has anyone written a replacement for poptPrintUsage for GOption? IMHO that would fit well into glib. Stefan ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GOption replacement for poptPrintUsage needed

2005-10-13 Thread Stefan Kost
Hi Matthias, On Wed, 2005-10-12 at 23:10 +0200, Stefan Kost wrote: hi, has anyone written a replacement for poptPrintUsage for GOption? IMHO that would fit well into glib. What does poptPrintUsage do ? It prints the usage. That is the short help summary. GOption naturally does not detect

Re: gtktreeview - hide some rows

2005-10-17 Thread Stefan Kost
Hi, HuamiSoft Hubert Sokolowski wrote: Hi! I have a treeview which is a list. is it possible to hide some particular rows? I want to implement some filter on my treeview, so the user could find quicker some rows. regards have look at

Re: strange problem with radiomenuitem

2005-10-27 Thread Stefan Kost
Hi Alexander Nagel wrote: Hi all, i created some radiomenuitem with this. string tmp; for (int i = 0; i10;i++) { ostringstream outStream; outStream i; tmp = Gruppe +outStream.str(); char tmp[10]; // length of Gruppe xx for (int i = 0; i10;i++) { sprintf(tmp,Gruppe

Re: Programming style

2005-11-01 Thread Stefan Kost
hi, Wallace Owen wrote: On Mon, 2005-10-24 at 17:21 -0400, Tristan Van Berkom wrote: ... I just wanted to point out that the user data argument is usable and efficient (since nobody had mentioned that yet). Ofcourse there are cases where it isn't convenient to use the user_data; I might as

Re: optimal way to use Memory Chunks

2005-11-09 Thread Stefan Kost
Gus Koppel wrote: Too much ardour for that might let some people end up one terrible day by writing x = g_math_add (g_math_sub (a, g_math_mul (b, c)), d); instead of just x = a - b * c + d; You mean of course g_math_assign(x, g_math_add (g_math_sub (a, g_math_mul (b, c)), d)); Stefan

Re: confused about pango_cairo_font_map_set_resolution API

2005-11-15 Thread Stefan Kost
Hi Axel, Axel Simon wrote: Hi, I'm slightly confused about the pango_cairo_font_map_set_resolution function and friends, mainly because it only takes one argument, namely a scaling factor between em*1/72 (font size in inch (why oh why?!)) and pixels. Given that my monitor (and probably other

Re: confused about pango_cairo_font_map_set_resolution API

2005-11-15 Thread Stefan Kost
Axel Simon wrote: On Tue, 2005-11-15 at 09:05 +0100, Stefan Kost wrote: Hi Axel, Axel Simon wrote: Hi, I'm slightly confused about the pango_cairo_font_map_set_resolution function and friends, mainly because it only takes one argument, namely a scaling factor between em*1/72 (font size

Re: Inner window size issue

2005-11-26 Thread Stefan Kost
Hi Gus, Gus Koppel wrote: Nikolaj Kiær Thygesen wrote: How on earth do I open a window containing a couple of widgets, one of which is a ScrolledWindow?? This ScrolledWindow displays an image, and now I'd like to fit the size of the ScrolledWindow to the size

Re: Inner window size issue

2005-11-26 Thread Stefan Kost
Hi Gus, Gus Koppel wrote: Stefan Kost wrote: [...] Therefore the scrollable windows is needed if the height of the window would exceed the screen height. Anyway if it does not, I'd prefer to make the window as tall as possible to show the entries without needing to scroll. I am not be able

Re: some questions, please help

2005-12-11 Thread Stefan Kost
hi Luka, Luka Napotnik wrote: Another question. Does GTK+ have functions to get the file type via MIME? If not, how can I get that? Have a look at gnome-vfs. This is the component that handles that and more. Greets, Luka Stefan ___

Re: Differences beetwen ref and weak ref

2006-01-18 Thread Stefan Kost
Hi, Uzytkownik wrote: I'm so sorry - when should I use weak reference? I use waek references in the class collaboration hierarchy. Imagine classes GGroup and GItem, where GGroup has GItems. GItem instances need access to GGroup, thus they have a GGroup *container element;. When setting the

Re: programming practices with regard to gtk and networking

2006-01-25 Thread Stefan Kost
Hi Ken, Ken Nagorski wrote: Hi there, I just started working with GTK. I have a some background with C which means I can do OK but when it comes to working with the two together it gets harder... My question is really this. I have a very simple IM program that I wrote in java (had to take

Re: programming practices with regard to gtk and networking

2006-01-25 Thread Stefan Kost
Hi Amitesh, Amitesh Singh wrote: Hi is to possibble to Draw moving Graphs in GTK+ ? i tried to post this query in group .but its unable to deliver this message ///dunno why :-p are you subscribed to the list? Anyway, you can use a Drawable or a Canvas-widget to draw your graphs. The can

Re: [Fwd: Replacement for gtk_tree_set_view_lines]

2006-01-29 Thread Stefan Kost
Hi Jim, I am not sure, but I belive the display style of the treeview is theme related. Means you can't programmatically change it. Stefan Jim Harford wrote: Does anyone know the answer to this? Do I need to try a different email list? Jim Harford Original Message

Re: images inside labels

2006-01-30 Thread Stefan Kost
hi, you need to put in an event box first. the tab has no window. eventbox(hbox(icon,label)) Stefan devel wrote: Well, I have tried placing an image and a label inside an hbox, but no such luck. For some reason, the notebook's tab label is not showing the hbox. Its not showing anything, not

Re: GtkTreeView get selected row AND column

2006-02-14 Thread Stefan Kost
Juan Pablo wrote: Hi list! I have a GtkTreeView and what I want to do is when the user is over an editable cell, the editing begins automatically without having to press enter. And the other thing that i want to do is that when the user is over a cell on a certain column the cursor changes

Re: How to identify the idle state of the GTK+ application?

2006-02-15 Thread Stefan Kost
hi, I would write an xscreensaver module and use that :) stefan sadhees kumar schrieb: Friends, In my GTK application, If no action(event) is taken place in the screen, I need to turn OFF the backlight of an TFT monitor. If any key pressed, or mouse movement occured, I need to

Re: GSList and g_filename_from_uri free memory problem

2006-02-23 Thread Stefan Kost
Hi Colossus wrote: Hi, I have this code: gchar **array = NULL;: array = gtk_selection_data_get_uris ( data ); while (array[len]) { filename = g_filename_from_uri ( array[len] , NULL, NULL ); Files_to_Add = g_slist_prepend ( Files_to_Add , filename ); g_free (filename);

Re: zipping/unzipping library?

2006-03-06 Thread Stefan Kost
Hi Allin, Allin Cottrell wrote: Before I embark on this I'd like to find out if something of the sort already exists, or if someone else is already working in this area. Also, perhaps, how much interest there might be in this project. What I'm thinking would be useful is a library, with the

Re: Initilize a filter

2006-03-22 Thread Stefan Kost
Hi, this is what I do: GtkListStore *store; GtkTreeModel *filtered_store; ... // create a filterd model filtered_store=gtk_tree_model_filter_new(GTK_TREE_MODEL(store),NULL); gtk_tree_model_filter_set_visible_func(GTK_TREE_MODEL_FILTER(filtered_store),visible_filter,(gpointer)self,NULL); //

Re: Callbacks and widgets

2006-03-28 Thread Stefan Kost
hi, Gonzalo Aguilar Delgado wrote: Yep, I know about some of them: 1.- Passing a data structure 2.- Using global variables (not good threading support) 3.- Passing window to gpointer and searching. 4.- Use GObjects for you UI In my apps I don't directly insert

Re: Callbacks and widgets

2006-03-28 Thread Stefan Kost
Hi Gonzalo, I don't do that for *every* widget, just for logical groups. In my GUI application I do this for the window, the toolbar, the statusbar, the content area (a notebook) and for each content page. Likewise I subclass dialogs. Stefan Gonzalo Aguilar Delgado wrote: Hi, stefan. This

interactive buttons inside treeview headings

2006-04-10 Thread Stefan Kost
hi list, I've added a couple of (toggle)-buttons and a label in a box into each of my treeview headers. They are shown properly. I can also modify them programatically (toggle). My problem is, that I can't click them. Honestly I have no idea how to debug this. Any idea? Thanks a lot. Stefan

Re: interactive buttons inside treeview headings

2006-04-13 Thread Stefan Kost
entries the same width as the columns. This might be a bit tricky in one scrolls left right :( Stefan Am Donnerstag, den 13.04.2006, 18:17 -0400 schrieb Guy Rouillier: Stefan Kost wrote: hi all, just tried to set the treeview column 'clickable' property to TRUE. The effect s not really

Re: sidebars with gtk ?

2006-04-18 Thread Stefan Kost
Hi Kal, I would suggest to look at the GtkExpander and pack the sideback into the expander and the expander to the left. Then it can be hidden and shown by the user. Stefan Am Montag, den 17.04.2006, 22:46 -0700 schrieb Muzaffer Kal: Hi, I am working with this app

Re: tree view header

2006-05-02 Thread Stefan Kost
Hi Thomas, you can put own widgets in there. One way might be to put an own label in there and set a default minimum height. Ciao Stefan Am Dienstag, den 02.05.2006, 15:21 +0200 schrieb Thomas Gilgin: Hi, could someone give me a hint how to change the height of the header buttons in

Re: Gnome Help

2006-05-13 Thread Stefan Kost
Hi, its written as docbook xml. See here for more info: http://scrollkeeper.sourceforge.net/documentation/writing_scrollkeeper_omf_files/index.html Stefan Am Donnerstag, den 11.05.2006, 21:16 +0200 schrieb Fernando Apesteguía: Hi, I would like to write the gnome help for a little application

Re: About gtk_object_set_data()

2006-07-10 Thread Stefan Kost
hi, chao yeaj wrote: Hello everyone I have a check button and the check button may have an associated data,which is an source id returned by g_timeout_add() function I do this,because,the check button may be need a function periodically changing its attributes

Re: New to GObject, few questions

2006-07-21 Thread Stefan Kost
hi tomasz, Tomasz Jankowski wrote: Hi! Well, I'm working with GTK+ quite long, but I have never tried to get inside it's code. Now I'm trying to understood how GObject works and I must say, that it isn't as easy as I tought ;) I read few times Gobject tutorial provided with GLib's

Re: SPLint

2006-08-12 Thread Stefan Kost
I gave up on splint a while ago. I can't parse variadic macros too. So unless someone continues to work on the splint parser, I don't believe it will grok moder C. Stefan Will Frishe wrote: A while back I used SPLint on my code. Having been a little while since then, I decided to run through

Re: GTK+ Draw a Rectangle over other widgets?

2006-08-20 Thread Stefan Kost
hi, Wolfman wrote: Does someone know how can draw a simple rectangle over other widgets or a complete window? Cause iam trying to write a window splitting system but i dont know how to draw this rectangle...:( best regards.. you can subclass the widget, override the _expose_event()

Re: frequently updated pixbuf images disapear after a while

2006-08-27 Thread Stefan Kost
rupert wrote: Hi, i update some pixbuf images once a second, when the application runs for more than 30minutes or so the images disapear and i get a bunch of the following message: cryptomaster:16742): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed I

Re: Recording widget motion

2006-09-11 Thread Stefan Kost
hi, yes, using the GstController is the way to go. Initially you will record a series of timed value changes. The GstController manages this queue for you. If you hook these changes onto e.g. a GstVOlume element, you can then listen to the notify::volume of it and from the handler set the value

Re: Reference Counting

2006-09-11 Thread Stefan Kost
Hi, Matias Torres wrote: Hi all, I'm working on some simple app which only use gtk and sqlite libraries and i KNOW it's leaking memory. Would you please help me? (damn beatles!, i shouldn't be listening music when writing a mail!) *- Is there a way to pass a function to free certain

Re: proper way to get cairo font width

2006-09-19 Thread Stefan Kost
Hi Tommi, Tommi Sakari Uimonen wrote: Hello. What is the best way to query font width from cairo, in case that I want to set size_hint for the widget that is drawing with that font? Currently I'm creating a cairo for some existing widget and set there the desired font and query the width

Re: add a cursor...

2006-11-09 Thread Stefan Kost
Hi. [EMAIL PROTECTED] wrote: Hi!! i've an x-y plot created with GTk! I'd like that after clicking in one of the plotted points, appear a cursor and then i can move it throught all the plotted points!! Is it possible?? I would draw a cursor like object over the points. It would be a bit

Re: Saving a GdkWindow to a file

2007-01-09 Thread Stefan Kost
Hi, Leandro A. F. Pereira wrote: Greetings, In my application I have to save the contents of a widget to a PNG file. So far it works (using GDK Pixbuf and gdk_pixbuf_save), but garbage appears if the window is obscured by another window, or if some part of it is hidden. How can someone

redirect GdkEvents

2007-02-02 Thread Stefan Kost
hi, I need to do a hack :( I once submitted this together with a pack, but its not beeing accepted. http://bugzilla.gnome.org/show_bug.cgi?id=338271 Now I try to do a workaround for my use case. I am already able to get the events the button inside the treeview header got. I now I want the

Re: Installing property in interface

2007-02-04 Thread Stefan Kost
Hi Thomas, only one small change needed: static void goofy_file_transfer_base_init (gpointer g_iface) { static gboolean initialized = FALSE; if (!initialized) { g_object_interface_install_property (g_iface, g_param_spec_string (transfer-status,

Re: Question about properties in GObject

2007-02-04 Thread Stefan Kost
hi Thomas, Tomasz Jankowski wrote: Hi! I have short question. I installed G_TYPE_STRING property in my object. Will it free allocated memory when object will be destroyed or i should do it on my own? you needs to do the ressource management yourself. That is whenever one sets the string,

GObject docs improvements

2007-02-07 Thread Stefan Kost
hi, yesterday I committed a first batch of cleanups to the GObject docs. http://developer.gnome.org/doc/API/2.0/gobject/index.html IMHO this is a crucial documentation for the GNOME platform and it can be improved further. Marc-Andre Lureau and Zeeshan Ali already joined in the quest to

Re: GObject docs improvements

2007-02-09 Thread Stefan Kost
Hi, Quoting David Ne?as (Yeti) [EMAIL PROTECTED]: On Thu, Feb 08, 2007 at 08:44:50AM +0100, Stefan Kost wrote: What I like to ask you is to reply to this mail and tell us what you don't understand yet, point out parts that can be improved, let us know if there are some nagging concerns

Re: GObject docs improvements

2007-02-14 Thread Stefan Kost
Hi, the G_DEFINE_TYPE stuff is on the list since the very beginning. In part I (Concepts) we will explain it the long way, but mention G_DEFINE_TYPE. In part IV (Tutorial) we will use G_DEFINE_TYPE. You should always use it if it fits. Stefan Quoting Freddie Unpenstein [EMAIL PROTECTED]:

Re: Gtk-CRITICAL **: gtk_widget_event: assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed

2007-04-02 Thread Stefan Kost
hi david, thanks for your help! After changing to this it works: if(GTK_WIDGET_REALIZED(widget)) { gtk_widget_grab_focus(widget); } Stefan Quoting David Ne?as (Yeti) [EMAIL PROTECTED]: On Thu, Mar 29, 2007 at 08:41:39AM +0200, Stefan Kost wrote: I am looking for some tips of how

notify for first last signal handler

2007-04-05 Thread Stefan Kost
hi, I would like to know when the first gets connected to my signal and when the last one disconnects. The signal is emmitted from a process that I don't want to run, if nobody listens. There is g_signal_has_handler_pending(), but I don't want to poll that. Anyone aware of a way to do it?

Re: glib/gobject tutorials

2007-07-06 Thread Stefan Kost
hi, please stop reffering to that tutorial under that address. Its part of GObject API docs since more that a year and has also be updated in there since. Stefan Arx Cruz wrote: http://le-hacker.org/papers/gobject/ Great tutorial! On 7/4/07, Lucas Stephanou [EMAIL PROTECTED] wrote: Hi

Re: waveform display in gtk

2007-07-12 Thread Stefan Kost
Hi, there is a few. Jokosher, Swami, they all have one. Unfortunately a waveform display is quite specific - its not easy to come up with a generic one. Some need markers, some need range-selection. Stefan Quoting bert [EMAIL PROTECTED]: Hi all, Is there a GTK widget to display audio or

Re: GtkDialog issues

2007-07-31 Thread Stefan Kost
Hi, [EMAIL PROTECTED] wrote: Hi everybody. I want to use a GtkDialog to show a message in my application when the user clicks a particular button; I tried to implement this dialog in the program, but it appears only when the action is finished, and not when it begins. I insert here a snippet

Re: Accelerator keys and popup menus?

2007-08-19 Thread Stefan Kost
Hi, Daniel Pekelharing wrote: Hi all, Sorry to be posting yet more questions about accel keys... I have created a popup menu and assigned accelerator keys to some of the items, I assigned a GtkAccelGroup to the menu using gtk_menu_set_accel_group(..), I attached the same

Re: Accelerator keys and popup menus?

2007-08-19 Thread Stefan Kost
Hi, Mike Melanson wrote: Stefan Kost wrote: Hi, Daniel Pekelharing wrote: Hi all, Sorry to be posting yet more questions about accel keys... I have created a popup menu and assigned accelerator keys to some of the items, I assigned a GtkAccelGroup to the menu using

Re: Accelerator keys and popup menus?

2007-08-19 Thread Stefan Kost
Hi, I've commented on this bug: http://bugzilla.gnome.org/show_bug.cgi?id=143007#c6 Stefan Stefan Kost wrote: Hi, Daniel Pekelharing wrote: Hi all, Sorry to be posting yet more questions about accel keys... I have created a popup menu and assigned accelerator keys to some of the items

Re: Accelerator keys and popup menus?

2007-08-21 Thread Stefan Kost
hi, Gabriel Schulhof wrote: Hi! On Sun, 2007-08-19 at 23:48 +0300, Stefan Kost wrote: I read about the differences. I really want accelerators. I was able to hack it: Create a plain old regular menubar-type menu with accelerators. Then ref the submenu you want to make into a popup menu

Re: Accelerator keys and popup menus? (Solved)

2007-08-22 Thread Stefan Kost
to the window depending on which tab was visible. Seems that gtk+ is only supporting one accel_group. Stefan Quoting Stefan Kost [EMAIL PROTECTED]: hi, Gabriel Schulhof wrote: Hi! On Sun, 2007-08-19 at 23:48 +0300, Stefan Kost wrote: I read about the differences. I really want accelerators. I

Re: Accelerator keys and popup menus? (Solved)

2007-08-22 Thread Stefan Kost
the hierarchy :/ and passing the window down the call hierarchy is out of question. Stefan [1] http://buzztard.cvs.sourceforge.net/buzztard/buzztard/design/gui/accelpopup.c?view=markup Stefan Kost wrote: Hi, Dunno if this is a bug/limmitation in gtk+. I now moved the GtkAccelGroup to my ui

Re: Accelerator keys and popup menus? (really solved)

2007-08-22 Thread Stefan Kost
the window from deep within the hierarchy :/ and passing the window down the call hierarchy is out of question. Stefan [1] http://buzztard.cvs.sourceforge.net/buzztard/buzztard/design/gui/accelpopup.c?view=markup Stefan Kost wrote: Hi, Dunno if this is a bug/limmitation in gtk+. I now

  1   2   >