Re: gtk+ + omniORB ( corba )

2005-01-30 Thread Paul Pogonyshev
I wrote: Maciej Katafiasz wrote: Dnia 24-01-2005, pon o godzinie 17:53 +, Linux User napisa: Is it possible ( and a good idea ) to code a program with GTK+ and omniORB at the project ? I heard issues about this ( something about thread incompatabilities ), but I'm not sure

Re: Receiving multiple lines with g_io_channel_read_line

2005-02-08 Thread Paul Pogonyshev
Andrew Gatt wrote: I've had some sucess using g_io_channel_read_line to receive terminated lines from a fifo formed with a server app i wrote. However i need to receive unknown amounts of bytes with line terminators until a final escape character is received, then act on this packet. Is this

Re: How to make toolbar without GTK_CAN_FOCUS

2005-03-18 Thread Paul Pogonyshev
Miroslav Rajcic wrote: I am trying to make my toolbar (with tool buttons) not to receive focus when Tab is used to move focus along the window widgets. I've tried to call GTK_WIDGET_UNSET_FLAGS(widget, GTK_CAN_FOCUS); to both toolbar widget and every single tool button, but it doesn't seem

Re: Toolbar style

2005-03-19 Thread Paul Pogonyshev
Santhosh wrote: Is there anything I should do to make my toolbar style default to GNOME settings? My application isn't using GNOME, only GTK+, but I hope that isn't a problem. I assume that your theme problem happens only with the programs that uses gtk+-2.6.4 and you have

Re: Toolbar style

2005-03-20 Thread Paul Pogonyshev
Soeren Sandmann wrote: Paul Pogonyshev [EMAIL PROTECTED] writes: No, no matter with which version of GTK+ I compile, toolbars don't react to changes in GNOME's ``Menu and Toolbar Preferences'' dialog. Actually, looking at `gedit's code, it seems I need `libbonobo' for that... Can anybody

Re: GList

2005-05-03 Thread Paul Pogonyshev
wrote: i think that the result of next code must be 3. but i have 0 if uncomment l=... it's work correctly #include glib.h int main() { GList* l=NULL; //l=g_list_alloc(); g_list_append(l,GINT_TO_POINTER(1)); g_list_append(l,GINT_TO_POINTER(1));

Re: widget with focus

2005-05-06 Thread Paul Pogonyshev
Giovanni Manenti wrote: I need to know what I have to do to find the widget that has the focus. Use gtk_window_get_focus (your_top_level_window); This will give you the focused widget in that window. Paul ___ gtk-app-devel-list mailing list

Re: GtkTextView horizontal seperators...

2005-05-09 Thread Paul Pogonyshev
Freddie Unpenstein wrote: Greetings people of the list... I was wondering if anyone knows how I could draw a horizontal red line across a GtkTextView buffer. I could probably throw in a GtkHSeperator widget, or something, but it's not a red line. Well, you can always use your own widget,

Re: Clarification about gtk_main() and running simultaneous non-gtk functions

2005-06-06 Thread Paul Pogonyshev
Michal Porzuczek wrote: Correct me if I'm wrong but the gtk_main() acts like an infinite while loop that waits for callbacks to the widgets that have been created before gtk_main() was called. It is true to some extent. It is an infinite, but terminatable loop that waits for events (most

Re: casting macros question

2005-06-14 Thread Paul Pogonyshev
Aleksandr Koltsoff wrote: This might sound like a stupid question to some one, but a simple yes/no answer will do :-) Should the following code be caught at compile-time (rather than run-time): gtk_layout_set_adjustment(layout, GTK_ADJUSTMENT(widget)); layout is GtkLayout and widget is

Re: The expander arrow (triangle) in TreeView

2005-06-22 Thread Paul Pogonyshev
Alexei D wrote: Are there any alternatives to the default triangle expander arrow in tree columns? For example, can I change them to +/- instead of a triangle? Yes, if you install a different display theme. At least in theory, I can't point to any such themes right away. GTK+/GNOME design

Re: g_object_set and threads

2005-07-06 Thread Paul Pogonyshev
abel schie wrote: abel schie wrote: I've made a gtktreeviewcolumn with a custom GtkTreeCellDataFunc, called cell_func(). This custom function uses the underlying GtkListStore to render the cells: it uses gtk_tree_model_get() to fetch some values, and then g_object_set(renderer,...) to

Re: g_object_set and threads

2005-07-06 Thread Paul Pogonyshev
abel schie wrote: No, you don't call gtk_tree_model_row_changed() from you cell data function, but from you time out function, which updates the list store. And you call it on the list store. Ok, I've tried that, but still the treeview doesn't get updated. Maybe it has to do with

Re: g_object_set and threads

2005-07-07 Thread Paul Pogonyshev
abel schie wrote: Anyway, it works now. Thanks for your input Paul. You are welcome. And you sorted it out yourself in the end, anyway :) Paul ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

design advise needed/toolbar question

2005-07-08 Thread Paul Pogonyshev
Hello. Suppose I have a number (like 8) of modes of operation for a program. They all work in similar fashion, so you could switch between them seemlessly. Much like different tools in The GIMP. However, I don't want to put a number of buttons in the toolbar for the modes, partially because I

alpha for text?

2005-07-15 Thread Paul Pogonyshev
Hi, Has anyone rendered text with alpha channel (i.e. semitransparent text) in GDK framework? So far my best solution is to render black on white to a GdkImage, get it back in a GdkPixbuf and then add color/transparency manually. Not actually too difficult, but I want to ask in case somebody

Re: alpha for text?

2005-07-15 Thread Paul Pogonyshev
John Cupitt wrote: On 7/15/05, Paul Pogonyshev [EMAIL PROTECTED] wrote: Has anyone rendered text with alpha channel (i.e. semitransparent text) in GDK framework? So far my best solution is to render black on white to a GdkImage, get it back in a GdkPixbuf and then add color/transparency

Re: alpha for text?

2005-07-16 Thread Paul Pogonyshev
John Cupitt wrote: Hi again, On 7/16/05, Paul Pogonyshev [EMAIL PROTECTED] wrote: John Cupitt wrote: On 7/15/05, Paul Pogonyshev [EMAIL PROTECTED] wrote: Has anyone rendered text with alpha channel (i.e. semitransparent text) in GDK framework? So far my best solution is to render

Re: alpha for text?

2005-07-18 Thread Paul Pogonyshev
Olexiy Avramchenko wrote: Paul Pogonyshev wrote: I have not coded it yet, just pondered about it. I was going to render with gdk_draw_layout() to a GdkImage (which is a client-side GdkDrawable, as said in the reference.) And that proceed with GdkPixbuf. So, like you described, except

Re: A springs and struts widget for GTK+

2005-08-16 Thread Paul Pogonyshev
Gustavo J. A. M. Carneiro wrote: Hi, just some comments below. On Tue, 2005-08-16 at 00:52 -0400, Matthias Clasen wrote: During last weeks gazpacho hackfest here in the RedHat desktop grotto, I started to work on an implementation of a springs-and-struts layout container for GTK+,

Re: Naming conventions

2005-11-01 Thread Paul Pogonyshev
César Leonardo Blum Silveira wrote: Are there any naming conventions used for naming my widgets' variables, so that for example when I have to name a label, instead of naming it foo_label I could name it lblFoo? Well, why you would choose such a cryptic name over the perfectly readable

disabling notebook shortcuts

2005-11-09 Thread Paul Pogonyshev
Hi, Is there a clean way to disable GtkNotebook keyboard shortcuts? For instance, if I use a notebook widget (with tabs hidden, obviously) for a wizard dialog, I don't want the user to break the thing down by pressing Ctrl-PgDown and force a tab switch without the program's consent. Paul

Re: disabling notebook shortcuts

2005-11-11 Thread Paul Pogonyshev
Paul Pogonyshev wrote: Hi, Is there a clean way to disable GtkNotebook keyboard shortcuts? For instance, if I use a notebook widget (with tabs hidden, obviously) for a wizard dialog, I don't want the user to break the thing down by pressing Ctrl-PgDown and force a tab switch without

Re: combo rant

2005-11-25 Thread Paul Pogonyshev
control H wrote: [snip] To be fair, I've worked with combo controls from at least 4 different widget sets and they all were horrible. Win32, GTK, Web, Borland, Java, they all suck. I think as a control, the combo control is just a bad concept. I'm not that negative about a combo

Re: combo rant

2005-11-25 Thread Paul Pogonyshev
control H wrote: I'm not saying GTK+'s combo is perfect, but I think it is generally better than anything else I've seen. At least it always uses all the screen space it has. But this is one of my other objections: it merely _tries_ to use all the screen space available. It draws the

Re: combo rant

2005-11-26 Thread Paul Pogonyshev
David Necas (Yeti) wrote: On Fri, Nov 25, 2005 at 11:26:58PM +0200, Paul Pogonyshev wrote: It is the trade-off of the policy that the selected item is under the pointer in the just shown popup, period. I think it is generally good, but this is an example of where it shows its

Re: gtk label size

2006-01-02 Thread Paul Pogonyshev
Fernando Apesteguía wrote: Many thanks Yeti I tried it but my gtk version doesn't support gtk_label_set_ellipsize(). In fact I'm not sure about my gtk version. I have a gtk-2.0 directory but I have not gtk-config so I can't perform a gtk-config --version Use `pkg-config --modversion

Re: images inside labels

2006-01-30 Thread Paul Pogonyshev
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 even the page number. Very certain I am packing what and where I need to. Little stumped. Thanks.

Re: About layouts

2006-02-14 Thread Paul Pogonyshev
Fernando Apesteguía wrote: First of all, thanks for your suggestions. Actually my app. uses a static layout and the GtkLabels inside this, don't grown when the text becomes longer. The same GtkLabel behaves ok if it is inside a GtkTable. So I think I will change the static container. Yeah,

tooltips

2006-02-17 Thread Paul Pogonyshev
Hi, I want to add tooltips to my widget, but they should be different for different widget areas. It seems there is no way to implement this using GtkTooltips... Any hints? Paul ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: tooltips

2006-02-18 Thread Paul Pogonyshev
Ronald Vincent Tarrant wrote: Paul Pogonyshev wrote: I want to add tooltips to my widget, but they should be different for different widget areas. It seems there is no way to implement this using GtkTooltips... Any hints? How about two (or more) separate instances of the ToolTips class

Re: tooltips

2006-02-18 Thread Paul Pogonyshev
Tristan Van Berkom wrote: Paul Pogonyshev wrote: [...] But I have many areas, the widget is much like two-dimensional grid. There can easily be like 100 areas. Think of GtkTreeView with many columns. Besides, it seems that GtkTooltips works only with widgets. So, I'd have to wrap each

Re: tooltips

2006-02-19 Thread Paul Pogonyshev
Tristan Van Berkom wrote: Some widget; depending on if they provide there own GdkWindow or not (GtkLabel I think for example), will not support tooltips out of the box; in this case you need only put your widget inside a GtkEventBox. W, when I read your message I suddenly understood the

gtk_button_set_relief()

2006-02-21 Thread Paul Pogonyshev
Is it normal that I don't see any difference between GTK_RELIEF_NORMAL and GTK_RELIEF_HALF in any theme, even the ones with most noticable relief? GTK+ 2.6 here. Paul ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: how to underline the text of a button

2006-02-26 Thread Paul Pogonyshev
Gezim Hoxha wrote: Hi all. I'm really new to GTK+ and I need some help with this. I have a button like this: GtkButton *pulse_button pulse_button = g_object_new (GTK_TYPE_BUTTON, label, _Pulse, use-underline, TRUE,

Re: Glib equivalent to std::set

2006-02-28 Thread Paul Pogonyshev
Peter wrote: I've been wanting to start an app in C++, but am leaning towards GLib partly because of its easy Python integration. My question is, what is the best way to get a std::set equivalent in GLib?.. It seems there is no direct analogue in GLib. However, you can get away with using

Re: Glib equivalent to std::set

2006-02-28 Thread Paul Pogonyshev
Peter wrote: Paul Pogonyshev wrote: Peter wrote: I've been wanting to start an app in C++, but am leaning towards GLib partly because of its easy Python integration. My question is, what is the best way to get a std::set equivalent in GLib?.. It seems there is no direct

Re: container implementation

2006-08-02 Thread Paul Pogonyshev
Murray Cumming wrote: [...] I ask, since Gtk::Widget::set_parent() is not available from outside... Yes, I think it was protected in a previous version of gtkmm, but it's now public (because someone filed a bug about it). If you are using that older version of gtkmm then you can use

Re: Entry field

2006-08-28 Thread Paul Pogonyshev
naval kishor wrote: I developed an application where i have designed three entry fields. In those three fields i can enter nos. But i want validation... Maybe you should use GtkSpinButton or GtkCalendar, for that matter. Paul ___

Re: help on scrollbars

2006-08-29 Thread Paul Pogonyshev
[EMAIL PROTECTED] wrote: Hi, I'm working on an app and I'm facing the need to access the button at the end of a vertical scrollbar of a scrolled window to do something like a gtk_button_clicked() to ensure that the widget (a treeview) contained in it gets scrolled to the end with

Re: Properties, what are they for? Wigets writing doubts.

2006-09-14 Thread Paul Pogonyshev
Alexandre wrote: I'm beginning in widget's writing, and I want to know what is the purpose of the widgets properties. Because, when I look at the gtk widgets, they have a lot of properties, but this properties can be changed with the gtk_name_set.. functions too.. Like the

Re: Notebook + Iconview

2006-09-18 Thread Paul Pogonyshev
Madhusudan E wrote: Hello All, I have inserted iconview inside a notebook page. Initially the focus is on the Notebook Tab. When I press down key, Notebook Tab loses the focus but the iconview item dosent get the focus. When I again press the Down key, the iconview item gets the focus.

Re: Preventing overwrite mode in GtkEntry

2006-09-21 Thread Paul Pogonyshev
Nickolai Dobrynin wrote: I was wondering if there is a way to make it so that the text that gets typed into the GtkEntry widget is always *inserted* into it and never replaces whatever was previously entered. In other words, is it possible to suppress the Insert key so that the overwrite

Re: Preventing overwrite mode in GtkEntry

2006-09-22 Thread Paul Pogonyshev
Nickolai Dobrynin wrote: Paul, But do you really need to do that? Most users (AFAIK) never use overwrite mode, but those who do will be confused with your application. It's the users who've demanded that feature. The very nature of the application is odd. It involves entering a lot

Re: Preventing overwrite mode in GtkEntry

2006-09-22 Thread Paul Pogonyshev
Nickolai Dobrynin wrote: Thanks for your input. It looks like the obvious way of getting around the default signal handler for toggle_overwrite is by using 'g_signal_connect_after'. This is *A* way of dealing with that. However, is it possible to completely drop the default handler so it

Re: Combining GTK+ and C++

2006-10-13 Thread Paul Pogonyshev
Nickolai Dobrynin wrote: I have to admit that gtkmm is so incredibly well-done that you truly feel in safe haven when you program with it. I'd say that is an overstatement. I have encountered many bugs/missed wrappings in Gtkmm. I agree that it is good, probably very good, but not

Re: Question about multithreads

2006-10-31 Thread Paul Pogonyshev
Tomasz Jankowski wrote: I generaly know how to write multithreads applications (so far code, which I wrote works fine). However I'm not sure if I should always lock and unlock mutex when I'm accesing some global data from thread. I know, that i'm obligated to sorround with mutex's lock and

how to get icons for certain applications?

2006-11-03 Thread Paul Pogonyshev
Hi, Is there an easy way to get icons of certain installed applications? E.g. icon of Firefox. This is not really critical, but I'd like to show icons if it is easy enough. Paul ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Focus issues

2006-11-04 Thread Paul Pogonyshev
Adam Tee wrote: Hi, In my application, GNU Denemo, I have a toolbar which gets focussed on and I cannot seem to change the focus to the main drawing area widget. I have tried gtk_widget_grab_focus without success. Probably your drawing area just cannot accept focus. Try

double changed signal

2006-11-05 Thread Paul Pogonyshev
Hi, GtkEntry emits changed signal twice on ..._set_text(): with the entry cleared (after deleting whatever was in the entry before) and with the new text. Is it the intended behavior? Can I circumvent it? (I actually code using Gtkmm, but since this is invoked in GTK+ code, I thought I'd ask

Re: g_signal_connect_swapped

2006-11-26 Thread Paul Pogonyshev
Richard wrote: Could someone explain the reason for this function g_signal_connect_swapped For instance, you can do g_signal_connect (widget, destroy, G_CALLBACK (null_pointer), pointer); ... void null_pointer (GtkObject* object, gpointer pointer) { *pointer = NULL; }

Re: A question about deprecated widget

2006-12-18 Thread Paul Pogonyshev
Michael 'Mickey' Lauer wrote: [EMAIL PROTECTED] wrote: The effect I'm looking for is a non-depreciated widget combination that would look and act like GTK_COMBO did, I mean a scrolled window and all, preferably one with number of rows set by me. I agree. This would be much appreciated.

Re: gtk_entry_set_text

2006-12-19 Thread Paul Pogonyshev
[EMAIL PROTECTED] wrote: I've got the following problem: I want to set the text of a gtk_entry from an event-handler. Normally one can use the function gtk_entry_set_text, but in this case this is not possible, because I risk that the application crashes, when I use this function due to

Re: GtkComboBox question

2006-12-19 Thread Paul Pogonyshev
Russell Markus wrote: I am trying to work on an application which has a combo box. I want to restrict the user to values that are included in the drop down list only. My thought was to prevent the user from editing the value in the entry box, but I can't seem to find a way to do this. I am

Re: gtk box and flow layout

2007-02-18 Thread Paul Pogonyshev
daa84 wrote: Can I create flow layout box in gtk like java FlowLayout Layout Manager? Or it is need to create derivative class (from GtkTable for example) and release it behaviour itself? In case you want row-breaking functionality of FlowLayout (e.g. when third widget is placed below the

Re: combobox internal padding

2007-02-27 Thread Paul Pogonyshev
Medora Schauer wrote: I'm using a 2.1 combobox and I want to make it as small as possible and still have Sans 8 characters visible in it. The problem I'm having is that when I reduce the height of the combobox the characters of the active selection get clipped at the bottom. The characters

Re: combobox internal padding

2007-02-27 Thread Paul Pogonyshev
Medora Schauer wrote: I have the problem even when the widget does not have focus. It doesn't matter. The padding is still there, as window requisition and size changing because of its getting focus would look strange, don't you think? Paul ___

Re: combobox internal padding

2007-02-27 Thread Paul Pogonyshev
Medora Schauer wrote: -Original Message- From: Paul Pogonyshev [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 4:39 PM To: gtk-app-devel-list@gnome.org Cc: Medora Schauer Subject: Re: combobox internal padding Medora Schauer wrote: I have the problem

Re: combobox internal padding

2007-02-28 Thread Paul Pogonyshev
Medora Schauer wrote: There seems to be more dead space above the text than below it. In fact it looks like there may only be 2 pixels below but more than 2 above. I wonder if controlling the y alignment of the text might help? The combobox properties list doesn't include a y-alignment setting

Re: combobox internal padding

2007-02-28 Thread Paul Pogonyshev
Medora Schauer wrote: Have you tried making one that is 20 pixels high? That is what started me on this path. With a combobox of this size I have to use a font size that is too small to be legible if I don't want the text to be clipped. I always let size-request mechanism to do its work.

Re: gtk errors !GTK_WIDGET_REALIZED (widget) failed

2007-03-25 Thread Paul Pogonyshev
3saul wrote: when trying to: GdkColormap *colormap = gdk_screen_get_rgba_colormap(screen); gtk_widget_set_colormap(widget, colormap); This is literally as complicated as my program is. Create a window (using libglade), setup callbacks, apply colormap. What does this mean? Is there a

Re: setting min widget size?

2007-04-06 Thread Paul Pogonyshev
Dan McMahill wrote: Hello, I have a label widget which is used to show the coordinates of the cursor position in a drawing program. Unfortunately, the width of that widget changes as I move the cursor around because the fonts are not fixed width fonts and sometimes I have a larger

Re: Set text of GtkComboBoxEntry

2007-04-22 Thread Paul Pogonyshev
Sebastian Urban wrote: I want to set the text of a GtkComboBoxEntry. The text I set may or may not be in the TreeModel of the GtkComboBox. For reading text there is gtk_combo_box_get_active_text, but there is no gtk_combo_box_set_active_text. What method should I use? gtk_entry_set_text

Re: macro IS_xxx

2007-06-24 Thread Paul Pogonyshev
Andrea Zagli wrote: i have GObject A and GObject B; B is a A's subclass obj_a = a_new (); obj_b = b_new (); (a_new() and b_new() return GObject) when i call IS_OBJECT_A (obj_b) it returns TRUE: why? is it a bug? or is it normal? or am i mistaking something? It is doing what it

Re: Markup in GtkTreeViewColumns

2008-08-20 Thread Paul Pogonyshev
John Coppens wrote: It may be evident, but I can't seem to find how. I need to put markup in the column title of GtkTreeViewColumns, as the column titles are parameters with sub-indexes. (S11 etc). Use gtk_tree_view_column_set_widget() on the column. You can then use any widget as a title,

Re: Handler disconnect vs. block

2008-11-17 Thread Paul Pogonyshev
Jeffrey Barish wrote: Is there a reason to block/unblock a handler rather than disconnect/connect it? Is the overhead for block/unblock significantly lower? Off the top of my head I can think of one: block/unblock will certainly not change handler order, while disconnect/connect may. Overhead

Re: Gio library on Debian Lenny

2009-05-15 Thread Paul Pogonyshev
Richard Shann wrote: Does anyone know if the gio library is working for getting files from the internet in the latest Debian Lenny distribution, x86? You probably need GVFS package. GIO itself doesn't contain any implementations for remote access, only interfaces and local access, AFAIK. Paul

Re: Application Ending Before Secondary Thread Ends

2009-11-11 Thread Paul Pogonyshev
Marshall Lake wrote: I play audio via g_thread. If the user quits the application before the thread is completed (and the user executes the application from the command line) the terminal needs reseting. It's fine if the thread ends before the user quits the application. I haven't

Re: threading choices

2010-03-02 Thread Paul Pogonyshev
Olivier Sessink wrote: it seems that are two (or more) choices how to work with threads in gtk. You can #1 use a global lock and call gtk from any thread, or you can #2 limit your gtk calls to the main loop and not use the global lock. As far as I understood, method #2 is portable to win32,