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.
Pau
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
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,
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
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 (G
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
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:
> That is very disappointing. It means the resulting combobox is about
> 25% bigger (in height) than it needs to be. Besides taking up a lot of
> real estate, it is aesthetically unpleasing.
The last statement is sure subjective. I don't find anything unpleasing
about its l
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 se
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 interna
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
___
gt
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 character
Kevin DeKorte wrote:
> I have a gtk_button that I am putting an image in. The size of the
> button after I put the image in is larger than I would like... is there
> a way to tighten up some of the extra white space around the image in
> the button?
Try GTK_WIDGET_UNSET_FLAGS (button, GTK_CAN_DEFA
daa84 wrote:
> daa84 ?:
> > I start to write my widget with FlowLayout functionality (with
> > row-breaking). And find next problem:
> >
> > gtk_widget_size_request function obtains the preferred size of a widget
> > gtk_widget_size_allocate assign a size and position to child widgets
> >
>
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 f
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.
>
>
[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
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 appre
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
Paul Pogonyshev wrote:
> 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.
(self-answer, since no other answers appeared I had to study this
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
http://ma
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 _incredib
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
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 enter
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 overw
Madhusudan E wrote:
> It works by disabling the CAN_FOCUS on iconview widget.
Mmm, I suppose that brokes/disables keyboard navigation in the widget.
If that is true, I guess users will not welcome this...
Paul
___
gtk-app-devel-list mailing list
gtk-app
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 th
[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 wit
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
___
gtk-app
Brian Clow wrote:
> I'm developing a cross platform application using Glib to provide
> portability. I've made heavy use of Windows events (i.e. CreateEvent)
> in the past - they allow a thread to sleep indefinitely until one of a
> group of events is signaled by another thread. What the best way
Andrea Zagli wrote:
> is there a way to have various cellrender type for each row for the same
> column?
>
> example:
>
> row 1 with gtkcellrenderertext
> row 2 with gtkcellrenderercombo
> row 3 with gtkcellrenderertext
> row 4 with gtkcellrenderertoggle
No (at least not that I know of.) But yo
Madhusudan E wrote:
> I am defining a new widget and within the class_init I am mapping
>
> Widget_class->key_press_event to local key press event handling function.
>
> But none of the keypress event is caught by my local function.
Maybe you forgot to activate key events when creating a GdkWin
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
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
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
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", TRU
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
http://mail.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 t
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 GtkToo
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 m
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
http://m
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.
Ye
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 gtk
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 th
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 d
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
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 for
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 `foo_
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, l
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
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 G
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
can
Soeren Sandmann wrote:
> Paul Pogonyshev <[EMAIL PROTECTED]> writes:
> > However, it seems that in the new (2.4 and up) toolbar API there is no
> > easy way to add a random widget to a toolbar (well, I could subclass
> > GtkToolItem, but...)
> >
> > Any sugge
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 do
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
http://mail.gnome.org/mailman/listinf
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 wit
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(ren
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 update the
> cell rende
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
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 no
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 wid
[EMAIL PROTECTED] wrote:
> Hi all,
>
> I am new to GTK programming, and I've got a very simple question about
> callbacks. In the application interface that I am encoding the next
> function brings up a window containing several GtkEntries and a
> GtkCheckButton to gather the options chosen b
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
>
> 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));
Tomaz Canabrava wrote:
> Little trouble here =)
>
> the g_signal_connect works like what?
> g_signal_connect(GTK_WIDGET(widget), signal("clicked"),
> G_CALLBACK(Function), (gpointer) "Data");
>
> but the callbacks functions have the GtkWidget *Widget as a 1st
> parameter, and...
> well, i simply do
Olivier Ramare wrote:
>
> ...
>
> What I want :
>-- the info written always at the end of the buffer
>-- this end should be in the viewable area (scroll if needed).
> I can't quite get an inkling as to this last one either :-(
[untested]
GtkTextIter end_iterator;
gtk_text_buffer_get_
[EMAIL PROTECTED] wrote:
> Hi,
>
> I have a TreeView widget I use to display data from two different
> TreeModels (or TreeStores). I switch the model connected to the TreeView
> depending on what the user wants to look at. The TreeView has the
> "row-activated" signal connected to it and what I'd l
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
Stefan Kost wrote:
> > 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 confirm this?
>
> no, although it on m
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
Hi,
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.
Currently, it doesn't seem to care about GNOME settings in this
respect.
Paul
___
gtk-
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 s
FabrÃcio Barros Cabral wrote:
> Hi people!
>
> I'm thinking develop an application using the GObject library, but I
> have a dilemma: use or not use the GObject library. This application is
> object-oriented but will be able to create-use-destroy a lot of objects
> (10.000 or more) during the execu
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
Boncek, John wrote:
> I typed an underscore instead of a hyphen by mistake in a GtkEntry signal
> name, "insert_text" instead of "insert-text", at one of 2 places the name
> was used. It worked. I inverted both of them and it still worked.
> Apparently these are interchangeable, at least in this
Felix Kater wrote:
> in my last program I use threads more extensivly than before. From time
> to time it crashes with gtk errors. Now I wonder if my strategy of
> avoiding gtk errors in a multi threaded environment is suitable:
>
> Up to now I tried to narrow all changes to gtk widgets (renaming l
Brian Clark wrote:
> Sorry. I wasn't clear.
> I understand that's how to get them to go. I planned on emitting a
> signal, or even just calling the function directly. But my question is
> how to automatically call it one time and only one time after the
> windows are set up, since the app is in
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
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 about tha
90 matches
Mail list logo