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

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

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

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

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

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

<    1   2