Re: Accelerators for GtkNotebook to switch between pages

2018-02-07 Thread Alexander Koeppe
Oh no sorry. It not working. I had just defined the t accelerator in the activate function of the app. If I change it to e.g. b the accelerator doesn't work. Am 07.02.2018 um 23:19 schrieb Alexander Koeppe: > Hi infirit, > > crazy. I rebuilt the relevant parts in a demo app

Re: Accelerators for GtkNotebook to switch between pages

2018-02-07 Thread Alexander Koeppe
Hi infirit, crazy. I rebuilt the relevant parts in a demo app and there it's working as expected. *argh*. For completeness here's what I mean. The code that creates my GtkNotebook:   /* notebook */   notebook = gtk_notebook_new();   gtk_notebook_set_tab_pos(GTK_NOTEBOOK(notebook), GT

Accelerators for GtkNotebook to switch between pages

2018-02-02 Thread Alexander Koeppe
Hi list, I'm looking for a way to switch between the pages of a GtkNotebook using e.g. Left and Right. I searched the documentation from different angels but didn't found a obvious way how to accomplish that. Does somebody have a hint for me pointing into the right direction? Thank you verymuch

Re: Pause and resume GtkApplication

2018-01-27 Thread Alexander Koeppe
Hi just FYI: I solved it. The trick was that within the second g_application_run(), the app menu must be attached to the application using gtk_application_set_app_menu() *before* adding the already existing _window_ using gtk_application_add_window() to the application. This way the app-menu is

Re: Pause and resume GtkApplication

2018-01-26 Thread Alexander Koeppe
Thanks to all of you. I try to incorporate all the advisories and hints as best as I can given the constraints underlying. Cheers  -- Alex ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-a

Re: Pause and resume GtkApplication

2018-01-25 Thread Alexander Koeppe
It's not really because of async execution. I just tried various gtk_window functions that trigger the "window-state-change" event. But not all of them provide the desired effect. e.g. gtk_window_maximize() reappears the app-menu. gtk_window_iconfify() not So I wonder what is the default callback

Re: Pause and resume GtkApplication

2018-01-25 Thread Alexander Koeppe
st stop rendering/running at the time, > after the reloading's done the program continues to render/display the > new data in the screen. The reloading can be done in a new thread too, > after used you can delete it too. > > On Wed, Jan 24, 2018 at 2:52 AM, Alexander Koeppe &

Re: Pause and resume GtkApplication

2018-01-23 Thread Alexander Koeppe
cation_new ("org.gnome.Buildertest", G_APPLICATION_FLAGS_NONE);   g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);   status = g_application_run (G_APPLICATION (app), argc, argv);     return status; } Am 22.01.2018 um 22:09 schrieb Lucky B.C: > Hi, can you

Pause and resume GtkApplication

2018-01-22 Thread Alexander Koeppe
Hi, I have an application where some things need to be setup in the UI, then some low-level routines to be executed using the setup values and then resuming the UI loop for further operation. Since I'm migrating the GTK code from GTK2/3 compatible to GNOME/GTK3, I make use of g_application_run().

Moving/resizing a window in real-time

2017-07-19 Thread Alexander Magsam
Hello all, I am creating a program that uses face detection coordinates to move/resize a window in real-time. The GTK+ component of this program is fairly simple I believe, but I cannot seem to figure out what is going wrong. I would like the window to stay visible the entire time without havi

GTK+ 2.24.8

2011-11-10 Thread Alexander Larsson
exception from _gtk_quartz_... 663543 Huge memory leak while using MS-Windows theme (gtk-demo) 663605 Fix event->state of many event types on quartz November 10, 2011 Alexander Larsson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.o

Re: Many questions

2011-03-05 Thread Alexander Nagel
__ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Alexander Nagel E-mail: alexan...@acwn.de Homepage: http://www.acwn.de/ http://www.standspur-kadaver.de/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: treeview and scrolledwindow

2011-02-21 Thread Alexander Nagel
Am Mon, 21 Feb 2011 23:16:09 +0100 schrieb Colomban Wendling : > Le 21/02/2011 23:06, Alexander Nagel a écrit : > > Hi, > > > > i have a question about treeview. Do i need to add a treeview in a > > scrolledwindow? I always did it this way but it seems to work >

treeview and scrolledwindow

2011-02-21 Thread Alexander Nagel
Hi, i have a question about treeview. Do i need to add a treeview in a scrolledwindow? I always did it this way but it seems to work without it. Which way is the better one? I would like to hear your suggestion/opinions. thanks Alexander -- Alexander Nagel E-mail: alexan...@acwn.de Homepage

Re: how to connect the gnome aplication(gtk+) to database

2011-02-19 Thread Alexander Nagel
ist > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Alexander Nagel E-mail: alexan...@acwn.de Homepage: http://www.acwn.de/ http://www.standspur-kadaver.de/ ___ gtk-app-devel-list mailing list gtk-app-dev

Re: gtkbuilder and combobox

2011-02-18 Thread Alexander Nagel
Am Fri, 18 Feb 2011 23:59:21 +0100 schrieb Alexander Nagel : > Hi, > > i've created a GUI with Glade and saved it as a gtkbuilder file. There > is also a combobox with a liststore as the desired model. I have > filled the liststore with column type 'gcharray' and

gtkbuilder and combobox

2011-02-18 Thread Alexander Nagel
Hi, i've created a GUI with Glade and saved it as a gtkbuilder file. There is also a combobox with a liststore as the desired model. I have filled the liststore with column type 'gcharray' and filled it with data. But the combobox is empty. What did i miss? regards Alex -- Al

Take part in gkt+ development

2010-09-22 Thread Alexander Kuleshov
Hello list, First of all let me introduce myself. My name is Alexander Kuleshov. Now I m student, programmer. I have some expirience in C/gtk+ programming (i took part in Google summer of Code in this year) And I want to take part in gtk+/glib development. I have some question: 1) If i write

g_io_scheduler_job_send_to_mainloop in another thread

2010-08-12 Thread Alexander Kuleshov
Hello, I have function that run in another thread them main gui. Can i call g_io_scheduler_job_send_to_mainloop from this fumction or we can call g_io_scheduler_job_send_to_mainloop only from main thread? Thank you ___ gtk-app-devel-list mailing list gt

GtkIconView remove item

2010-08-11 Thread Alexander Kuleshov
Hello, I have GtkIconView in my C/gtk+ application. How to remove selected item of this GktIconView. I can select item, how can i delete this row? Thank you ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/l

image printing

2010-07-23 Thread Alexander Kuleshov
Hello, I need to print image in my gtk+ application. I have code: GList* list; void begin_print (GtkPrintOperation * oper, GtkPrintContext * context, gint nr, gpointer user_data) { GdkPixbuf* pixbuf = gdk_pixbuf_new_from_file("home/shk/photo.jpg", NULL); list = g_li

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread Alexander Nagel
Hi, i'm using gtk_events_pending to realize this. HTH Alexander Am 04.07.2010 15:38, schrieb John Emmas: Anyone who's familiar with the MS Windows API will know that it contains a function called UpdateWindow(). A call to UpdateWindow() forces the specified window's cl

GdkDrawingArea on the GtkImage

2010-06-29 Thread Alexander Kuleshov
Hello, How can i impose GdkDrawingArea on the GtkImage for painting on image for example? Thank you. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: g_io_scheduler_job_send_to_mainloop How to?

2010-06-27 Thread Alexander Kuleshov
Thank you for reply. And if i have in build_thumbnails some gtk+ functions, it's thread unsafe. How can i fixed it? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

g_io_scheduler_job_send_to_mainloop How to?

2010-06-26 Thread Alexander Kuleshov
Hello, I use g_io_scheduler_job_send_to_mainloop function for running functiton in another thread: void build_thumbnails(GtkWidget* widget, MainWin* mw) { printf("BUILD!!!"); } I have structure for func parameters: typedef struct _JobParam { GtkWidget* widget; struct MainWin

Re: GIOScheduler example need

2010-06-25 Thread Alexander Kuleshov
Thank you very much for you help. you realy helped me. Can i asked last question about parameters :) If on of the parameters structure too. For example: static gboolean job_func(int a, Win* b) { ... } Where Win: typedef struct _Win { typedef struct _MainWin { GtkWindow parent; GtkWidge

Re: GIOScheduler example need

2010-06-25 Thread Alexander Kuleshov
And if i whave functions with some parametes? For example: static gboolean job_func(int a, int b) { ... } How can i send parameters in g_io_scheduler_push_job? Thank you ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.

GIOScheduler example need

2010-06-24 Thread Alexander Kuleshov
Hello, I need to use GIOScheduler in my C/gtk+ application. Where can find example of using GIOScheduler? Thank you. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GtkIconView items

2010-06-21 Thread Alexander Kuleshov
Hello, I have a gtkiconview in my C/gtk+ application. In this GtkIconView i load images from GList like thumbnails. How can i get selecting item in this GtkIconView? I try so: g_signal_connect(mw->view,"selection-changed",G_CALLBACK(thumbnail_selected),mw); void thumbnail_selected(Gtk

Re: gtk_window_fullscreen problem

2010-06-13 Thread Alexander Kuleshov
Yes. typedef struct _MainWin MainWin; typedef struct _MainWinClass MainWinClass; #define LOAD_BUFFER_SIZE 65536 #define MAIN_WIN_TYPE            (main_win_get_type ()) #define MAIN_WIN(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAIN_WIN_TYPE, MainWin)) #define MAIN_WIN_CLASS(kla

gtk_window_fullscreen problem

2010-06-13 Thread Alexander Kuleshov
Hello, I need in full screen window functional in my gtk+ application. I try to use gtk_window_fullscreen(GtkWindow* Window): I have function: static void full_screen(MainWin *mw) { gtk_window_fullscreen((GtkWindow*)mw); } When i try to call this function i see error: Gtk-CRITICAL **: gtk_wi

Global GList in gtk+ application

2010-06-11 Thread Alexander Kuleshov
Hello, I need in global list in my gtk+ application, i use for it GList: For example: I have structure: typedef struct _data { Glist list; }Data; I want to use one copy of the list in the whole program: I have a function bulid my list: gboolean build_list() { Data->list = g_list_append(Da

Problem with gdk_pixbuf_new_from_stream

2010-05-30 Thread Alexander Kuleshov
Hello list, I have a code for loading image: .. GFileInputStream* ins; GFile* gf = g_file_new_for_path(file_path); ins = g_file_read(gf, NULL, NULL); mw->pix = gdk_pixbuf_new_from_stream(G_INPUT_STREAM(ins), NULL, NULL); gtk_image_view_set_pixbuf (GTK_IMAGE_VIEW (mw->view), mw->p

Re: How can I programatically activate a GtkRadioToolButton?

2010-04-02 Thread Alexander Nagel
hi, this should work with gtk_toggle_tool_button_set_active (...) regards lindl...@cox.net schrieb: I have a tool bar containing several GtkRadioToolButtons. Clicking on them works fine. However, I'm trying to figure out how I can activate one of them programatically. My first guess was to do

gtktreeview question

2010-02-13 Thread Alexander Nagel
l_to_cell (GTK_TREE_VIEW (tree), path, gtk_tree_view_get_column (GTK_TREE_VIEW (tree), 0), TRUE, 0.5, 0.0); gtk_tree_view_set_cursor (GTK_TREE_VIEW (tree), path, gtk_tree_view_get_column (GTK_TREE_VIEW (tree), 0), FALSE); gtk_tree_path_free (path); What did I miss? Any ideas?

Re: tree view question / hightlighting rows

2010-01-24 Thread Alexander Nagel
Hi, and thanks for your quick response. I have searched the archive, it seems I just overread it. It's hard to search for something but you don't know what to look for. Sometimes one need just a hint to the correct function. thanks Alexander Carlos Pereira schrieb: Alexander N

tree view question / hightlighting rows

2010-01-24 Thread Alexander Nagel
Hi, i have a treeview which displays a list of filenames in one column and other things in other columns. I can iterate successfully through the list. How can I highlight the current row? With "highlight" I mean that the row looks like selected by the user. My next question/problem then is: if

Re: goocanvas vs crcanvas,which better?

2009-03-26 Thread Alexander
Hi, Dov. On Thursday 26 March 2009, Dov Grobgeld wrote: >- If the annotation is static, it certainly faster to prepare a >transparent pixbuf and draw the annotation on the pixbuf and then simply >merge the data from the frame grabber with the overlay mostly transparent >pixbuf, an

Re: GtkWidget "visibility-notify-event" and visibility.

2009-03-25 Thread Alexander
On Wednesday 25 March 2009, Chris Vine wrote: > On Tue, 24 Mar 2009 23:49:13 +0300 > Alexander wrote: > [snip] > > Thanks, GTK_WIDGET_VISIBLE() may help me. Is there any way to catch > > event when widget is actualy hiding? > > You could use the hide signal

Re: GtkWidget "visibility-notify-event" and visibility.

2009-03-24 Thread Alexander
On Tuesday 24 March 2009, Chris Vine wrote: > On Tue, 24 Mar 2009 17:30:38 +0300 > Alexander wrote: > > Hi, list. > > > > Widgets in GtkNotebook doesn't receive GDK_VISIBILITY_NOTIFY events > > with state GDK_VISIBILITY_FULLY_OBSCURED while its being > >

GtkWidget "visibility-notify-event" and visibility.

2009-03-24 Thread Alexander
Hi, list. Widgets in GtkNotebook doesn't receive GDK_VISIBILITY_NOTIFY events with state GDK_VISIBILITY_FULLY_OBSCURED while its being "deactivated" on tabs switching. However its receive events with state GDK_VISIBILITY_UNOBSCURED on activation. Where is the catch?

Re: Problem with continuous image updation

2009-03-18 Thread Alexander
On Wednesday 18 March 2009, Adeel Malik wrote: > > In my application, I am implementing status indication (displaying > either 'red' or 'green' ) by using Gdkpixmap to assign an image to 'red' or > 'green' pixel array. I display or hide the image by calling gtk_widget_show > (..) or gtk_widget_

Re: newbie question

2009-03-10 Thread Alexander
On Wednesday 11 March 2009, frederico schardong wrote: > Hi, > > Sorry, but I know it is a newbie question.. > > I have a button, and a gtk_drawing_area, and a function to save what > is happen in the gtk_drawing_area.. When this button is pressed, the > function must be run.. I'm using now this

Re: tuning widgets base size

2009-03-02 Thread Alexander
On Monday 02 March 2009, Garth's KidStuff wrote: > > But this doesn't work. What is the right solution of my problem? Finaly I > want make widgets smaller than default widgets, like > > toolbox widgets in The GIMP. > > > void LXDialog::ShrinkWidgetFont( > Gtk::Widget* pCtrl, // [in] Control t

tuning widgets base size

2009-03-01 Thread Alexander
Hi, list. I've noticed many widgets calculate its base size relying on font sizes (font size, ascent, descent...) of its pango context. Thus I've tried to change PangoFontDescription of widgets in this way just after widget creation: context = gtk_widget_get_pango_context ( wg ); descr1 = p

Re: saving window size?

2009-01-20 Thread Alexander Semenov
(); > } > > > Suggestions? > > - Mike > > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Alexander Semenov ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: struggling with the non-recursive gdk_threads_enter

2009-01-04 Thread Alexander Larsson
On Tue, 2008-12-30 at 21:47 -0500, Yu Feng wrote: > Dear Devels: > > I am having troubles because the GMutex used gdk_threads_enter/leave can > be non-recursive. > > I have a piece of code (g_module_check_init) to either be called from an > event dispatched by GDK(if the module is loaded via GtkS

Re: Asyncronous life helper (Was: EggDBus)

2008-12-28 Thread Alexander Larsson
On Sat, 2008-12-27 at 15:19 -0500, David Zeuthen wrote: > GFuture *future; > future = g_future_get (foo->pending_call); > g_object_set_data (future, "other-stuff", other_stuff, g_object_unref); > > and the GFuture object would be unreffed when the pending call is > finished. I'd like to avoid

Re: Asyncronous life helper (Was: EggDBus)

2008-12-27 Thread Alexander Larsson
On Sat, 2008-12-27 at 04:21 -0500, Freddie Unpenstein wrote: > This is a side-topic, raised by developments in handling DBus, but > something I feel is worth asking... Is there any mechanism for making > working with asynchronous stuff easier? > > Quite often I've had a situation where I've needed

Re: valgrind reports memory leak on g_main_loop_run

2008-12-17 Thread Alexander Semenov
Sune Ahlgren wrote: Hi, I use 1 GMain event loop in my main context for monitoring of events on file descriptors. I shut down my program by receiving a SIGTERM. In this signal handler I do the following: g_main_loop_quit(loop); g_main_loop_unref(loop); loop = NULL; I've also tried to mo

Re: How can I wrap or scroll text inside a GtkLabel to keep the width?

2008-12-11 Thread Alexander Semenov
Guenther Meyer wrote: hi, I have GtkLabels packed inside some vboxes or tables, the width of the box is determined by the size of some other elements (buttons, listviews, ...). when the text inside the labels is changed, and this text is too long to fit, the box automatically resizes, which dist

Re: glib main loop without gtk

2008-11-13 Thread Alexander Semenov
Alexander Semenov wrote: Thomas Stover wrote: So if one wants to use g_io_channels with out gtk (console / server app), what exactly is the idea? Does glib need an initialization function called first? I see the g_main_loop_new() and friends functions, and that part make sense. The thing is

Re: glib main loop without gtk

2008-11-13 Thread Alexander Semenov
Thomas Stover wrote: So if one wants to use g_io_channels with out gtk (console / server app), what exactly is the idea? Does glib need an initialization function called first? I see the g_main_loop_new() and friends functions, and that part make sense. The thing is g_io_add_watch_full() type

Re: another memory leak

2008-10-31 Thread Alexander Semenov
Jacques Le Normand wrote: Hello list, thank you for helping me to solve my previous post, which found that I had a memory leak. The solution was to remove uim (universal input method). I have a new memory leak problem. This one creates and removes 2000 text entries every 100ms. I've had top sh

Re: How can I tell which window manager my app is running under?

2008-04-19 Thread Alexander Semenov
Hi, Justin. gdk_x11_screen_get_window_manager_name () On Sat, 2008-04-19 at 23:48 +1000, Justin Clift wrote: > Hi, > > How can I tell which window manager my application is running under? > > Can't seem to see any kind of Gtk nor Gdk calls to determine this. > > The end result I'm trying to ac

Re: key press events SUPR

2008-04-17 Thread Alexander Semenov
Hi, Martin. >From the GTK+ documentation for GdkEventKey: guint keyval; the key that was pressed or released. See the header file for a complete list of GDK key codes. On Thu, 2008-04-17 at 04:56 -0500, [EMAIL PROTECTED] wrote: > hi all: > > I am working with gnome-ruby today and i have a que

Re: Draw text to a GdkPixbuf

2008-04-14 Thread Alexander Semenov
Why don't you want to draw the text you need in your "expose" function? You simply redefine the GtkWidgetClass "expose-event" and draw there. On Mon, 2008-04-14 at 12:55 +0200, Francesco Sepic wrote: > On Mon, Apr 14, 2008 at 12:31 PM, Alexander Semenov <[

Re: Draw text to a GdkPixbuf

2008-04-14 Thread Alexander Semenov
Hi. What about drawing GdkPixbuf and then your text on GdkWindow? On Mon, 2008-04-14 at 12:05 +0200, Francesco Sepic wrote: > Hello, > is it possible to draw text on a GdkPixbuf using Pango? > gdk_draw_text () takes a GdkDrawable as the destination on which draw > text. Is it possible to get a Gd

Re: Callback Question

2008-04-14 Thread Alexander Semenov
Hi. Perhaps, this discussion was related to threads? > Thank you all for this! Especialy for the long example, but, it was just > an example. > I've made an application that works perfectly on Linux but in Window$ it > crashes a lot! > I've been trying to find a solution (actually a clue of wh

Problems with demos

2008-02-18 Thread Alexander Vasiliev
I biult gtk+-2.10.13 with DirectFB1.1.1. Examples of DirectFB work well. Gtk demos also work, but the image on the display is wrong. It seems like width of image doesn't fit screen width and lines are shifting. But for all that testpixbuf-drawable demo also works well. Any suggestions about correct

Re: How to use GtkPrint

2007-08-14 Thread Alexander S.Kresin
it with 2.1. -- Regards, Alexander ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to use GtkPrint

2007-08-14 Thread Alexander S.Kresin
Does this GtkPrint exist at all :) ? I had trying to compile that printing.c, but have found that appropriate header files ( gtkprintcontext.h, gtkprintoperation.h, ... ) doesn't present in my system, through gtk2-devel-2.8.8 is installed ... -- Regards, Alex

Re: How to use GtkPrint

2007-08-13 Thread Alexander S.Kresin
int context, etc. manually from the application code as it was possible with the gnomeprint library for 1) to avoid extra, unnecessary dialog boxes and appropriate keyboard/mouse actions of the user; 2) to be possible to print from a console application.

Re: How to use GtkPrint

2007-08-09 Thread Alexander S.Kresin
Wednesday, August 08, 2007, 11:53:14 AM, Alexander S.Kresin <[EMAIL PROTECTED]> wrote: ASK> could someone give me a link to any description of GtkPrint usage ASK> (not the api reference), any code sample ? Doesn't anyone here use GtkPrint ? What I need to go ahead i

How to use GtkPrint

2007-08-08 Thread Alexander S.Kresin
Hi All, could someone give me a link to any description of GtkPrint usage (not the api reference), any code sample ? -- Regards, Alexander ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

g_io_add_watch and non-blocking io on windows

2007-07-05 Thread Alexander Semyonov
g_error ("connect () failed with error %d\n", WSAGetLastError ()); } g_debug ("Starting GMainLoop..."); g_main_loop_run (loop); #endif return 0; } /* END */ My problem is that condition parameter in callback is always G_IO_O

GtkImage with animation: animation stops when all frames are shown

2007-06-01 Thread Alexander Semyonov
Hello. I create GtkImage with animation: GdkPixbufSimpleAnim *anim = gdk_pixbuf_simple_anim_new (w, h, RATE); gdk_pixbuf_simple_anim_add_frame (anim, pixbuf1); gdk_pixbuf_simple_anim_add_frame (anim, pixbuf2); gdk_pixbuf_simple_anim_add_frame (anim, pixbuf3); ... GtkWidget *image = gtk_image_new_f

Re: Howto discover when GtkLabel is elipsized.

2007-05-22 Thread Alexander Semyonov
I realized that pango_layout_get_width (GTK_LABEL (label)->layout)) return -1 when the label's text is not elipsized. I think it suffices. :) On 5/22/07, Alexander Semyonov <[EMAIL PROTECTED]> wrote: > > Hello. I have an elipsized GtkLabel. What I need is to correctly discover

Howto discover when GtkLabel is elipsized.

2007-05-22 Thread Alexander Semyonov
Hello. I have an elipsized GtkLabel. What I need is to correctly discover when the ellipsis "..." is displayed (I think i must discover it in some resize or paint event). Can you help me? Thanx. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnom

getting instance - help

2007-04-19 Thread Alexander Miro
Hi, first of all sorry about my English mistakes. I've made a shared object (DLL) which is loaded by Mozilla Browser. When I try to call a gtk_message_dialog_new() from this dll class instance a SIGSEGV comes up. I have a suspicion that there is a conflict with Mozilla GTK instance even after a

question regarding pixbuf

2007-03-22 Thread Alexander Eichner
ginal); Thanks in advance Alexander ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: What is the proper way of markig translations of static array initializers

2007-02-05 Thread Alexander Shopov
> The context is stripped when the string is *used*, for > marking it is irrelevant whether it has context or not, so > mark it normally with N_(). I am sorry but this does not work. When I mark strings simply with N_() the context information is not stripped away - in fact the original string in

What is the proper way of markig translations of static array initializers

2007-02-02 Thread Alexander Shopov
Hi guys, The docs: http://developer.gnome.org/doc/API/2.0/glib/glib-I18N.html state that N_() Marks a string for translation, gets replaced with the untranslated string at runtime. This is useful in situations where the translated strings can't be directly used, e.g. in string array initializers.

Color selection

2006-12-21 Thread Alexander S.Kresin
5535. How can I convert them to the 0..255 for to be able to get Windows compatible long value by color.red + color.green*255 + color.blue*65535 ? -- Regards, Alexander http://kresin.belgorod.su ___ gtk-app-devel-list mailing list gtk-app-devel-

Re: Is there a standard/offical gtk+ opengl library for game programming?

2006-11-19 Thread Alexander Nagel
Zhang Yang schrieb: > I want to program a game for linux desktop. I want to use gtk+ so I need > a opengl libray to corporate with gtk+. I googled and found gtkgl, > GtkGLExt,OGLTK and SDL can be used. > > Which one should I use? And another question.Is there a 3d design tool I > can use under li

Customizing multiple selection behavior in TreeView

2006-03-09 Thread Alexander Konovalenko
There is a TreeView widget whose TreeSelection's mode is SELECTION_MULTIPLE. I'd like to change how a single mouse click (and any of the equivalent actions from the keyboard and other input methods) on a row impacts the selection. The rest of the selection UI should behave as usual: Ctrl+click

filechooserdialog

2006-01-31 Thread Alexander Nagel
Hi all, i use GtkFileChooserButton/GtkFileChooserDialog in my app and it seems that the user can choose only files OR directories. Is there a way to let the user select both? greets Alex ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: howto mix gtk and network

2005-12-10 Thread Alexander Nagel
Am Fri, 09 Dec 2005 15:24:12 +0100 schrieb Vivien Malerba: > > I use the GNet library and it works fine and integrates easily in the main > loop > http://www.gnetlibrary.org/ > > Vivien Thanks you very much. That's what i need. Even with md5 and sha. Alex __

howto mix gtk and network

2005-12-09 Thread Alexander Nagel
Hi, i plan to program a little game which also should playable over network and i need a some ideas for the beginning. I know the network basics. For example at the start of the game one player act as a server chooses the map and the number of max. players and other players can join. (Like in C&C G

Problem or Bug??

2005-11-08 Thread Alexander Nagel
Hi all i have a normal combobox created with gtk_combo_box_new_text and filled it with text with gtk_combo_box_append_text works fine. Now i have the bug like http://bugzilla.gnome.org/show_bug.cgi?id=302696 so i try to find another solution. Now i have an gchar* array with the text to be insert

Disable menu item

2005-11-03 Thread Alexander S.Kresin
Hello All, Is it possible to disable/enable ( gray/ungray ) menu items ? -- Thanks in advance, Alexander Kresin http://kresin.belgorod.su ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: strange problem with radiomenuitem

2005-10-28 Thread Alexander Nagel
Am Thu, 27 Oct 2005 16:42:59 +0200 schrieb Stefan Kost: > Hi > Alexander Nagel wrote: >> Hi all, >> i created some radiomenuitem with this. >> >> string tmp; >> for (int i = 0; i<10;i++) >> { >> ostringstream outStream; >>

Mouse over the widget

2005-10-28 Thread Alexander S.Kresin
Hello All, I can catch the moment when a mouse pointer appears over a widget - with a "motion_notify_event". But how can I catch the moment when it moves out of the widget ? Or the only way is to use a "motion_notify_event" for other widgets and a parent window ? --

Re: strange problem with radiomenuitem

2005-10-27 Thread Alexander Nagel
Am Thu, 27 Oct 2005 15:49:21 +0200 schrieb Olivier Sessink: > use the GINT_TO_POINTER() macro thanks > you get both a callback when a toggle is unset, and when it is set. So > if you add a `if (toggle->active) ` statement in your callback you only > handle the one that bcomes active. thanks ag

strange problem with radiomenuitem

2005-10-27 Thread Alexander Nagel
Hi all, i created some radiomenuitem with this. string tmp; for (int i = 0; i<10;i++) { ostringstream outStream; outStream << i; tmp = "Gruppe " +outStream.str(); Widgets_MainWindow.menugroupitems[i] = gtk_radio_menu_item_new_with_label (Widgets_MainWindow.GroupLis

drawing area and event order

2005-10-07 Thread Alexander Nagel
Hi everybody, i have a drawing area in my application and conncted following signals "realize", "unrealize", "configure_event" and "expose_event". And it works... The code: Widgets_MainWindow.drawingarea1 = gtk_drawing_area_new (); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (Widgets_MainWindow.drawingarea1

Re[2]: Border

2005-09-19 Thread Alexander S.Kresin
der of a top window, so I could draw such a header for my container widget ? -- Regards, Alexander http://kresin.belgorod.su ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re[2]: Border

2005-09-18 Thread Alexander S.Kresin
âîñêðåñåíüå, 18 ñåíòÿáðÿ 2005 ã. Rss [EMAIL PROTECTED] wrote: RR> and what about RR> gtk_container_set_border_width(...) ??? This function doesn't draw the border, but only reserve a space for it. RR> --- "Alexander S.Kresin" <[EMAIL PROTECTED]> a RR> é

Border

2005-09-18 Thread Alexander S.Kresin
Hi All, Is it possible to tell GTK to draw a border around a container or any other widget, or I must draw it myself, with gdk_draw_rectangle() for example ? Regards, Alexander Kresin http://kresin.belgorod.su ___ gtk-app-devel-list mailing

Large files and asynchronous IO

2005-03-17 Thread Alexander Lyakas
Hi all, I have been really impressed with GLib, portability and all. There are, however, two features I need, but I am not sure whether they exist. 1) Can I create large files with GLib? (Over 2 GB) 2) Is there some support for asynchronous IO? I would like to issue an IO request and to procee

Pango fonts

2005-01-24 Thread Alexander S.Kresin
set - in pixels, to be possible to calculate the necessary drawing area dimensions ? Regards, Alexander http://kresin.belgorod.su ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re[2]: Fonts

2005-01-24 Thread Alexander S.Kresin
On 21.01.2005 15:20, John Cupitt <[EMAIL PROTECTED]> wrote: JC> On Fri, 21 Jan 2005 15:09:45 +0300, Alexander S.Kresin JC> <[EMAIL PROTECTED]> wrote: >> Is the pango font system really better than the old GdkFont ? >> What are the possible problems if I'll