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,
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
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
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
Johan Dahlin wrote:
[...]
I'm leaning towards using the ownership terminology instead of transfer.
typedef enum {
GI_OWNERSHIP_CALLER, /* caller owns it, caller should free it after use */
GI_OWNERSHIP_CALLEE /* callee owns it, caller should leave it as it is */
}
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,
Mark Mielke wrote:
If I choose to download Oracle, and connect a GPL product to Oracle
*without redistribution*, there is nothing the FSF can do to stop me.
They actually don't. GPL applies only if you distribute modified or
unmodified result. At home (or within your company if you are an
Behdad Esfahbod wrote:
My take on it is that it's breaking our interface. I'd fine if we tell
the world that we are going to do the switch in three years from now and
stick to it, but changing tomorrow is like changing stable API tomorrow.
Just deprecate the old license now, remove it in 3,
Hi,
Sorry, I noticed the discussion about new gtk.org design but didn't
follow it. The only thing I don't like in new design is fixed to
700px page width. I think that goes against GTK+ friendliness to
different font size etc. :) I'd like to see sth. like 70ex or
40em whatever.
Sorry if it's
Raphael Bosshard wrote:
The topic of named colour in themes and the use therof keeps popping
up from time to time the mailing lists. [1],[2].
I created a proposal which may be found at
http://live.gnome.org/GtkNamedColours. I searched the mailing list for
possible candidates, comments and
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
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
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
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
Matthias Clasen wrote:
GLib 2.13.0 is now available for download [...]
A pity that appointed types discussed in detail on this list didn't
make it. http://bugzilla.gnome.org/show_bug.cgi?id=356864
Paul
___
gtk-devel-list mailing list
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
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.
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
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
___
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
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
Yevgen Muntyan wrote:
Behdad Esfahbod wrote:
On Sat, 2007-01-06 at 00:24 -0800, Sergei Steshenko wrote:
[really impressive list of bugs deleted].
As an end gtk+ user I just want to know which of the two
gtk+2.8.20 - 2.10.7 is less buggy.
Indeed 2.10.7. The impressive list of bugs
Gustavo J. A. M. Carneiro wrote:
On Ter, 2006-12-19 at 21:51 +0200, Paul Pogonyshev wrote:
Tim Janik wrote:
here's a refined proposal for pluggable widgets [...]
Looks fine to me, except that I support the requested addition of
va_list version of g_factory_create(). Otherwise
Benjamin Otte wrote:
Tim Janik timj at imendio.com writes:
- How does this work for application derived types?
e.g. if vino derives from GtkLabel to make a label which looks like
a clickable URL, then even if it is instantiated using
g_factory_create() a gtk theme
[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
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
Tim Janik wrote:
here's a refined proposal for pluggable widgets [...]
Looks fine to me, except that I support the requested addition of
va_list version of g_factory_create(). Otherwise everything seems
good.
Paul
___
gtk-devel-list mailing list
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.
[ This mail may not land in the thread since I was not subscribed to
the list when it began. ]
Tim Janik approach seems not general enough to me. I.e. if GTK+
developers don't provide *_appoint_type() function for a particular
type, you are lost. Are there any strong points for this version?
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;
}
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
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
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
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
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
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
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
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
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.
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
[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
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
___
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
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
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
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,
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
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
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
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
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
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,
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.
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
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
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
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
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
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
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
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+,
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
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
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
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
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
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
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
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
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
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
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
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,
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
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));
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
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
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
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
Gaurav Jain wrote:
Hi All,
I had sent this mail to the list a few days ago, but got no reply.
Could somebody please reply to it, or let me know where I can find the
answer to my question?)
I wish to know if it is possible to draw a GtkWidget directly to an
offscreen bitmap (without drawing
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
81 matches
Mail list logo