how to hint gtk about a useful start of the focus chain

2011-08-02 Thread Stefan Kost
hi, having the focus on the right widget can make apps more productive. I feed that right now either I am missing something or gtk does not a good job at it. For odd reasons gtk prefers to focus toolbar button on new windows (which is strange and not useful imho). When trying to hint gtk+ about

Re: gobject construction with parameter

2011-06-30 Thread Stefan Kost
On 01/31/11 16:39, James Morris wrote: On 31 January 2011 13:32, Jannis Pohlmann jan...@xfce.org wrote: Can anyone point me in the direction of code examples where the construction of the g object requires a parameter so I can see how to do it please? - I can't make sense of the

Re: gobject construction with parameter

2011-06-30 Thread Stefan Kost
On 01/31/11 16:39, James Morris wrote: On 31 January 2011 13:32, Jannis Pohlmann jan...@xfce.org wrote: Can anyone point me in the direction of code examples where the construction of the g object requires a parameter so I can see how to do it please? - I can't make sense of the

Re: gobject construction with parameter

2011-06-30 Thread Stefan Kost
On 01/31/11 16:39, James Morris wrote: On 31 January 2011 13:32, Jannis Pohlmann jan...@xfce.org wrote: Can anyone point me in the direction of code examples where the construction of the g object requires a parameter so I can see how to do it please? - I can't make sense of the

Re: GSource object lifetime

2011-05-28 Thread Stefan Kost
Am 04.05.2011 00:03, schrieb Thomas Stover: On Tue, 3 May 2011 22:50:38 +0200, Tadej Borovšak tadeb...@gmail.com wrote: All that being said, maybe you could cook up a patch for API docs with this info? I'm sure people would find it useful. Is there a starting place to read how to go

Re: scan code for required gtk version

2011-02-05 Thread Stefan Kost
Am 01.01.2011 17:30, schrieb Dan McMahill: Is there a way to scan ones source code automatically to determine the minimum required version of gtk and also glib? The reason I ask is I've been involved in a project that doesn't really use lots of the most cutting edge features and in general,

Re: Performance issues of GDK deprecation in favour of Cairo

2010-08-18 Thread Stefan Kost
hi, On 17.08.2010 12:01, James Morris wrote: Hi, I see that some GDK drawing functions and graphics contexts have been deprecated in favour of using Cairo. Yesterday I spent a few hours *removing* Cairo code from my fledgling GTK application and replacing it with gdk_draw_rectangle,

Re: Dynamic change of language(local languages like german, chinese, french....) in Gtk

2010-01-26 Thread Stefan Kost
Am 25.01.2010 16:46, schrieb harshavardhanreddy mandeepala: Hi, I think this question might have discussed but i couldn't find any satisfying answers. While searching in net i found useful info how to provide internationalization/localization(supporting english,french,german,chinese...)

Re: GtkTreeView in VBox

2010-01-16 Thread Stefan Kost
Am 07.01.2010 14:24, schrieb Amol Kulkarni: Hi All, Is it possible to add GtkTreeView inside VBox and then add that VBox to ScrolledWindow using gtk_scrolled_window_add_with_viewport(sw,vbox). GtkTreeView has inbuilt scrolling support hence it is expected to add it directely to scrolledwindow

Re: simple internalisation

2010-01-16 Thread Stefan Kost
Am 12.01.2010 14:31, schrieb Pavel A. da Mek: For example, having File stock item doesn't make much sense, since files usually carry their own name and this is what should be displayed. Most programs have the File menu item in the tool bar. To create menu items from stock items is a simple

Re: How to set a window filled the whole screen when we start the window?

2009-06-26 Thread Stefan Kost
Michael Torrie schrieb: donglongchao wrote: Thank you very much.That is just what I need. I am not very familiar with the API manual. I always program with a web browser open showing the API docs. Although they often lack documentation and examples (they are generated from the source

Re: Accelerator

2009-06-06 Thread Stefan Kost
dhk schrieb: Are accelerators only for menu items? I've seen a lot of examples with accelerators and the all seem to connect to a menu item. I've been having a difficult time getting accelerators to work even with the examples. I think I'm missing something. One thing I would like is to

Re: [Fwd: gstreamer mingw cross development libraries?]

2009-03-30 Thread Stefan Kost
John Stebbins schrieb: Oops, sent private message instead of to the list again. Redirecting to list. Tor, I wanted to thank you again for your help. I've successfully ported my app (handbrake video transcoder). There's only one missing feature, live preview, and for that I need working

Re: Scrolling multiple treeviews

2009-03-23 Thread Stefan Kost
dhk schrieb: Is it possible to have a single vertical scrollbar scroll multiple treeviews? To avoid using a horizontal scroll on a large set of data I broke the data up into multiple treeviews. However, I would like to have one scroll control all the views at the same time instead of each

Re: treeview with fixed in place first row

2009-02-26 Thread Stefan Kost
DEXTER schrieb: Hi there, I have a treeview and what I'd like to achieve is that the first row of the treeview (under the column headers) be fixed at its place so the scrolling won't affect it. I would use this very first row to filter the treeview. Attached an image showing the what I

Re: treeview with fixed in place first row

2009-02-26 Thread Stefan Kost
Stefan Kost schrieb: DEXTER schrieb: Hi there, I have a treeview and what I'd like to achieve is that the first row of the treeview (under the column headers) be fixed at its place so the scrolling won't affect it. I would use this very first row to filter the treeview. Attached an image

Re: GTK warning

2009-02-22 Thread Stefan Kost
Jeffrey Barish schrieb: Stefan Kost wrote: How should gobject know the name of your variable? In GStreamer we have a GstObejct which has a name property, that makes it easier. How do you know it's one of my variables that is being unreferenced? The warning message refers me to line 118

Re: i18n, intltool problems

2009-02-07 Thread Stefan Kost
John Coppens schrieb: On Thu, 5 Feb 2009 14:05:04 -0200 John Coppens j...@jcoppens.com wrote: During several tests, I came across the famous your intltool is too old. You need intltool 0.35.0 or newer. I have 0.40.5 installed, as shown by: $ intltool-update --version

Re: How to use Quarks?

2009-01-04 Thread Stefan Kost
hi, Patrick Braga wrote: I've just begun learning GLib, and I came across Quarks. The documentation describes them as association between strings and integer identifiers. Given either the stringo or the GQuark identifier it is possible to retrieve the other. This seems really useful and

Re: programmatic screenshots?

2008-12-03 Thread Stefan Kost
hi, Andrew Cowie schrieb: On Mon, 2008-12-01 at 08:51 -0800, Garth's KidStuff wrote: I'm runnign a Gtk++ app under ubuntu 8.04 and I'd liek to take a screenshot from inside the app. Any hints? We used an adaptation of the gnome-screenshot code in gnome-utils's

Re: programmatic screenshots?

2008-12-01 Thread Stefan Kost
Garth's KidStuff schrieb: Hey All, I'm runnign a Gtk++ app under ubuntu 8.04 and I'd liek to take a screenshot from inside the app. Any hints? Thanks in advance. -Garth http://buzztard.svn.sourceforge.net/viewvc/buzztard/trunk/buzztard/tests/bt-check.c?view=markup look at

Re: combobox entries background color

2008-11-17 Thread Stefan Kost
hi, Xavier Toth schrieb: I didn't get any responses so I'm trying again. Look at GtkCellRenderer and its cell-background property. Stefan On Mon, Nov 3, 2008 at 8:37 AM, Xavier Toth [EMAIL PROTECTED] wrote: I'd like to have different background colors on combobox entries.

Re: how can i scale big pixbuf in realtime?

2008-10-22 Thread Stefan Kost
hi, Mike Massonnet schrieb: Le Mon, 6 Oct 2008 16:13:25 +0800, chen zhixin [EMAIL PROTECTED] a écrit : hello i have to scale the image i recived,NTSC,30f/s,yuyv-gray and 720*480 because i need to do something on image,so i use gray-pixmap,and use cairo_t to do . then i must scale the

Re: Column Selection

2008-10-04 Thread Stefan Kost
hi, Jeremy Maccelari schrieb: Can anyone tell me how to select multiple columns in a list (tree view)? I'd like to be able to click on the column header to select/deselect... The treeview does not support this unfortunately. It has only row selection modes. That beeing said I faked such a

Re: Playing video from within my gtkmm app

2008-10-01 Thread Stefan Kost
hi, Garth's KidStuff schrieb: Hey All, Does anyone have a good place to learn how to incorporate playing video from within my application? I have a drawable area that I draw all my application stuff on and I'd like to play a .mov file in a subportion of that area. You can use gstreamer

Re: [semi-OT] dependencies libraries

2008-09-07 Thread Stefan Kost
hi, you can try gtkdoc-depscan (since gtk-doc 1.10). It will tell you which versions of the libs you check against you require and also because of which symbols. The information can be used to turn some into soft-deps (not requiring it and have conditional code). Only problem is that

Re: Setting widget styles

2008-08-10 Thread Stefan Kost
Tony Houghton schrieb: I want to change the cursor/caret aspect ratio for a widget on the fly. The docs say you should first call gtk_widget_get_modifier_style(), make your modifications to the returned style, then call gtk_widget_modify_style() with that style. The trouble is I can't find any

destroing data attached to a type (qdata)

2008-05-12 Thread Stefan Kost
hi, I have an interface, where I share some data between the instances. the data is created on first access. Now I also would like to release it when the last instance goes. problem 1: base_finalize() is not called for static types I thought that I could do some own ref-counting and then do

Re: about draw waveform by GTK

2008-05-11 Thread Stefan Kost
hi, 王跃 schrieb: Hi, I am new for GTK, and I want to use the GTK to play a music while drawing the waveform, any idea about it ? ---Thanks Best Regards. Wang Yue I recommend to look at the soruces of applications that draw a waveform already [1][2] and borrow the code (if

Re: valgrind helloworld example returns errors

2008-05-04 Thread Stefan Kost
hi, Steven Kauffmann schrieb: Hello all, A few weeks ago I started with the gtk tutorial. I tried some of the examples and everything is working fine, but valgrind reports some errors (first hello world example)[*]. If those little examples already returns errors, further programs I'm

Re: problem with gtk-doc

2008-04-13 Thread Stefan Kost
hi, Tomasz Jankowski schrieb: Hi! Like in topic. Everything works great, gtk-doc builds types tree, generates descriptions for functions, structures, enumerations and properties. The only thing, which doesn't is generating descriptions for signals. There is no information about signals in

Re: Rotating scaling a widget or set of widgets

2008-03-31 Thread Stefan Kost
hi, Jason Edgecombe schrieb: Hi There, I'm developing an application for a Nokia N800 Internet Tablet. I want to rotate and scale the whole screen or at least a set widgets so that the application can be used when holding the application in portrait or landscape orientations. How can

Re: more keyboard accelerator woes

2008-02-19 Thread Stefan Kost
For the archive, solution (hack) to fix one issue: Stefan Kost schrieb: Hi, after I managed to get accelerators for menus and context menues working, I have problems with some other ui items. 1.) tool_item=GTK_WIDGET(gtk_toggle_tool_button_new_from_stock(GTK_STOCK_MEDIA_PLAY)); 1a

Re: What's wrong with the docs?

2008-02-03 Thread Stefan Kost
Hi, John Coppens schrieb: Hello all... There must be something terribly wrong somewhere, when I try to find documentation on operation with GTK+ or GDK elements, I always seem to get _much_ more documentation from the Python/Perl libraries than from the actual C interface. I'm sure others

Re: selecting multiple entries from GtkTreeView/GtkTreeModel/GtkTreeStore

2008-01-06 Thread Stefan Kost
hi, Gorshkov schrieb: I've looked in the docs, and I keep going around and around in circles - but I can't for the life of me figure out how to set a TreeView/TreeModel/TreeStore to allow for the selection of multiple entries. Have a look at GtkTreeSelection:

Re: Signal emission in multi-threading environment

2007-12-08 Thread Stefan Kost
Hi Ben, Ben Lau schrieb: hi all, I am implementing a GObject (a simple video player) that creates a GStreamer pipeline for video processing. Soon it receives a new GstBuffer of video frame from the pipeline, it will emit a signal. As GStreamer processes the pipeline with multiple

Re: Finding API documentation by function name

2007-12-02 Thread Stefan Kost
hi, Raja Mukherji schrieb: Hi all, I'm writing a binding generator for my language to Gtk and want the generator to be able to insert documentation into the generated code automatically. Is there any existing program/script for getting the documentation associated with a specific api

Re: Problem with gtk-doc

2007-11-07 Thread Stefan Kost
hi, Quoting Tomasz Jankowski [EMAIL PROTECTED]: Hello! I have problem with gtk-doc. There is [EMAIL PROTECTED] I configured it in my project an everything was fine (i had object hierarchy etc.). Now I added two new source files which decalre two new objects. Gtk-doc sees these new source

Re: Profiling GTK within an application

2007-10-30 Thread Stefan Kost
Hi, Quoting Binary Chen [EMAIL PROTECTED]: On Sat, 2007-10-27 at 11:06 +0300, Stefan Kost wrote: Chris Rorvick schrieb: I'm attempting to profile GTK in an application and I'm wondering what methodology others use to accomplish this. Is there any documentation that addresses this topic

Re: Profiling GTK within an application

2007-10-29 Thread Stefan Kost
hi, Chris Rorvick schrieb: Stefan Kost wrote: This is most likely caused by cairo. You should also see a bit less CPU usage in 2.12 compared to 2.10 (or more precise newer cairo should perform a bit better). For some reason, this happens to be one of two libraries that I'm

Re: Profiling GTK within an application

2007-10-27 Thread Stefan Kost
Chris Rorvick schrieb: I'm attempting to profile GTK in an application and I'm wondering what methodology others use to accomplish this. Is there any documentation that addresses this topic that I should refer to? Any caveats worth pointing out? Here is where I'm at ... I recently

GParamSpecs for file-path and uris

2007-10-02 Thread Stefan Kost
hi, is soemone aware of a GParamSpec implementation for file-path and uris. Most apps use GParamSpecString. Disadvantage is that one can put anaything there and for apps that generate UIs it impossible to detect that a file-cooser button would be more appropriate than a entry box. I guess

Re: Simple question - accelerator keys

2007-08-31 Thread Stefan Kost
Hi, I am currently trying to figure out something simillar. Unfortunately it seems that accelerators are only used for menues in most applications. If you check gnome-bugzilla - it has several open bugs for accelerators. I recently fixed one and right now prepared a test program for another. Lets

more keyboard accelerator woes

2007-08-25 Thread Stefan Kost
Hi, after I managed to get accelerators for menus and context menues working, I have problems with some other ui items. 1.) tool_item=GTK_WIDGET(gtk_toggle_tool_button_new_from_stock(GTK_STOCK_MEDIA_PLAY)); 1a.) gtk_widget_set_accel_path (tool_item,

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

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?

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: 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: 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: 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

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: 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

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: 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

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: 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,

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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: 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: 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: 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: 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: [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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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

  1   2   >