The default signal handler is not invoked if any of the customized
signal handler returns TRUE or something.
Check if there are any handlers connected to this signal later on that
returns TRUE.
Yu
-
gbooleanuser_function (GtkWidget *widget,
I am not skillful on this particular issue, but theoretically NO.
Your library will ultimately be linked to an application. The textdomain
should be bound by the application.
Your library package should be made gettext friendly, aka:
(1) state gettext as an requirement in the pkgconfig file (if y
e translations
* Updated some translations
Known Problems:
* Global Menu plugin crashes multi-thread applications on SMP
machines (Issue 408)
Yu Feng,
the Global Menu Team
___
gtk-app-devel-list mailing list
gtk-app-devel-list@
Dear list,
Could anyone help me to redirect a key press event from another
application's window to a GtkWidget?
My current solution (which works with a lot of warnings) is
1 Create a Gdk Foreign Window on the XID of the to be grabbed window.
2 Add a gdk filter on the foreign gdk window,
3 Grab t
For a reasonable size try gtk_box_pack_start() with expand = false and
fill = false. Is seems to me that the problem your were facing is
because you had expand = true and fill = true for the packed child
button.
If you use gtk_widget_set_size_request, please make sure the UI is still
sane after ch
It would be inconsistent with all other GTK widgets.
Have you tried g_signal_add_emission_hook and g_signal_stop_emission ?
or g_signal_handlers_block_by_func?
Regards,
Yu
On Mon, 2009-04-06 at 23:29 +0400, sergey wrote:
> Hello!
>
> I wish to switch state GtkToggleAction without a signal "togg
The show signal is a Run-First signal, which means the default handler
is always ran before any event handlers.
Just override the show virtual function and do stuff before chaining up
to the parent member function. Emitting a signal is not necessary if you
are already using overriding.
May I ask
Hi Larry, Martin and Jon,
On Fri, 2009-03-06 at 19:11 +, Jon Harrop wrote:
> On Friday 06 March 2009 16:31:05 Feng Yu wrote:
> > Dear list,
> >
> > What is the usual way of using opengl to display 3d models within a
> > GTK application?
> >
> > I tried to search for GtkGlArea and GtkGlExt on t
Dear friends,
We are glad to announce the release of GNOME Global Menu 0.7.3.
Global Menu is the globally-shared menu bar of all applications launched
in your desktop session.
In this release, we bring you the further polished
gnome-globalmenu 0.7.3
svn checkout http://gnome2-globalmenu.googl
On Mon, 2009-01-05 at 18:43 +1100, Andrew Cowie wrote:
> On Sat, 2009-01-03 at 10:40 -0500, Yu Feng wrote:
> > If you are accessing data member(g_object_set_data) frequently you could
> > use quarks to accelerate the looking up process(g_object_set_qdata).
>
> On Sun, 2009
On Sun, 2009-01-04 at 15:43 -0500, Matthias Clasen wrote:
> On Sun, Jan 4, 2009 at 5:14 AM, Alexander Larsson wrote:
>
> > IMHO that is a Gtk+ bug.
>
> I agree. Yu, can you file a bug about this ?
Yes. Filed as Bug 566578
Yu
___
gtk-app-devel-list m
ffers from when the module is actually loaded. But it works for my
module since the init code doesn't depend on the state of the
application.
Regards,
Yu
On Sun, 2009-01-04 at 13:30 +0100, Nikolaj Thygesen wrote:
> Alexander Larsson wrote:
> > On Tue, 2008-12-30 at 21:47 -
If you are accessing data member(g_object_set_data) frequently you could
use quarks to accelerate the looking up process(g_object_set_qdata).
On Sat, 2009-01-03 at 12:56 -0200, Patrick Braga wrote:
> I've just begun learning GLib, and I came across Quarks. The documentation
> describes them as "a
Hi,
I am not sure if I understand your scenario correctly.
Why don't you put the icons out of the viewport, aka:
VBOX
+ up indicator icon
+ Viewport
+ down indicator icon
in your key-press handler, you scroll the viewport, and show/hide the
icon.
Because the visibility of the icon rarely ch
On Wed, 2008-12-31 at 15:11 +0200, Tor Lillqvist wrote:
> > The code need to be protected so that its execution is not interrupted
> > by GDK activities in other threads. How can I do this without a
> > recursive gdk critical section?
>
> Don't use GTK+ from multiple threads. Makes the code a lot
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 GtkSettings) or be
called directly without entering the GDK critical
I've just written a similar widget.
You should subclass GtkMenuItem,
override toggle_size_request, return zero to the *requistion parameter.
implement the creation methed
new_with_label(),
put a GtkLabel as the child of the bin in the creation method.
You may also need to override size_allocate
Did you mean that you want to keep the size of the Label while hiding
it?
I have an idea, if you would like to give it a try:
void hide_label(GtkLabel * label) {
GtkRequisition req;
gtk_widget_size_request(label, &req);
g_object_set_data_full("label-backup", g_strdup(gtk_label_get_label()),
g_fre
lable at
http://svn.gnome.org/viewvc/gtk%2B/trunk/gtk/
Good Luck.
Yu
> 4.
> If I use GtkCellRenderCombo and make new Gtk{Tree|List}Store
> which is saved in the **GtkTreeModel** with setting attribute,
> then do I have to do g_object_unref(model) ?
>
> -> DO g_object_ref()
Hi Kim,
Usually if a property of a GObject is G_TYPE_OBJECT, the GObject will
hold a reference count of that property.
And because your GtkAdjustment is created in a floating state, you don't
need to unref it after setting it as a property value of a GObject.
refer to line 209:gtkcellrendererspi
in it, and see if your newly added widget shows up with your
code.
Do a g_assert(((GtkWidget*)lab)->parent == hbox)) to see if the widget
is added to the parent before you show_all on the hbox.
Best,
- Yu
>
> -Ravee
> ________
> From: Yu Feng [EMAI
On Thu, 2008-12-11 at 03:52 +0530, Ravee Kondrakunta wrote:
> Hi,
>
> I created a dialog with glade. In this dialog, I have a HBox with two
> widgets, one is the label and the other widget will be determined at the
> runtime.
>
> In the code I got the reference to the HBox using get_widget afte
Hi,
I am curious: if I set the userdata of a foreign gdk window to my
widget, can I receive the KeyPress event on the event_press_event of the
widget?
I did an experiment, and the result is that key_press_event is not
emitted.
Yet I also did another experiment by enabling the PropertyNotifyMask
On Wed, 2008-10-29 at 22:08 -0400, 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).
Would you say more about the solution in the list? I am also intereste
24 matches
Mail list logo