Re: gtk4-query-immodules: command not found

2018-03-27 Thread Emmanuele Bassi
On 27 March 2018 at 17:11, Stefan Salewski  wrote:

> On Sun, 2018-03-25 at 14:05 +0200, Stefan Salewski wrote:
> > /opt/gtk/bin $ LD_LIBRARY_PATH="../lib64" ./gtk4-demo
> >
> > (gtk4-demo:14466): GLib-GIO-WARNING **: 14:03:06.071: Can't find
> > module
> > 'dconf' specified in GSETTINGS_BACKEND
> > GLib-GIO-Message: 14:03:06.071: Using the 'memory' GSettings
> > backend.  Your settings will not be saved or shared with other
> > applications.
>
> The reason seems to be that meson automatically installs latest glib,
> which does not contain dconf.


dconf is not part of GLib; it's a separate module, which provides a backend
for GSettings on Unix-like systems.

Ciao,
 Emmanuele.

-- 
https://www.bassi.io
[@] ebassi [@gmail.com]
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk4-query-immodules: command not found

2018-03-27 Thread Stefan Salewski
On Sun, 2018-03-25 at 14:05 +0200, Stefan Salewski wrote:
> /opt/gtk/bin $ LD_LIBRARY_PATH="../lib64" ./gtk4-demo
> 
> (gtk4-demo:14466): GLib-GIO-WARNING **: 14:03:06.071: Can't find
> module
> 'dconf' specified in GSETTINGS_BACKEND
> GLib-GIO-Message: 14:03:06.071: Using the 'memory' GSettings
> backend.  Your settings will not be saved or shared with other
> applications.

The reason seems to be that meson automatically installs latest glib,
which does not contain dconf. Fix is:

cd /opt/dconf-0.28.0
meson --prefix /opt/gtk builddir
ninja
ninja install

After that, I can launch gtk4-demo as user:
/opt/gtk/bin $ LD_LIBRARY_PATH="../lib64" ./gtk4-demo

Seems to work, font size is correct. Fishbowl is fast, but I don't know
if it is Vulkan or plain OpenGL.
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk4-query-immodules: command not found

2018-03-25 Thread Stefan Salewski
On Sun, 2018-03-25 at 13:43 +0200, Stefan Salewski wrote:
> What may be the best way to fix this issue?

Well, obvious

PATH=$PATH:/opt/gtk/bin/
export PATH
ninja install
LD_LIBRARY_PATH="/opt/gtk/lib64" ninja install

works,

but then still I get tiny fonts with

/opt/gtk/bin $ LD_LIBRARY_PATH="../lib64" ./gtk4-demo

(gtk4-demo:14466): GLib-GIO-WARNING **: 14:03:06.071: Can't find module
'dconf' specified in GSETTINGS_BACKEND
GLib-GIO-Message: 14:03:06.071: Using the 'memory' GSettings
backend.  Your settings will not be saved or shared with other
applications.
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


gtk4-query-immodules: command not found

2018-03-25 Thread Stefan Salewski
Following GTK4 install into /opt/gtk from 
https://developer.gnome.org/gtk4/3.93/gtk-building.html

I get for last step "ninja install"

Running custom install script '/opt/gtk+-3.93.0/build-aux/meson/post-
install.sh 4.0 4.0.0 /opt/gtk/lib64 /opt/gtk/share'
Compiling GSettings schemas...
Updating desktop database...
Updating icon cache...
Updating input method modules cache...
/opt/gtk+-3.93.0/build-aux/meson/post-install.sh: line 20: gtk4-query-
immodules: command not found
Failed to run install script '/opt/gtk+-3.93.0/build-aux/meson/post-
install.sh 4.0 4.0.0 /opt/gtk/lib64 /opt/gtk/share'
FAILED: meson-install 
/usr/bin/python3.5 /usr/lib/python-exec/python3.5/meson --internal
install /opt/gtk+-3.93.0/builddir/meson-private/install.dat
ninja: build stopped: subcommand failed.

I guess this may be the reason for that I get only tiny default fonts
for gtk4 apps launched under gnome3 wayland.

What may be the best way to fix this issue?

___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Error linking gtk-query-immodules-3.0

2018-02-21 Thread Priest, Matt
Hello,

I'm trying to build GTK (version gtk+-3.22.0) in a non-standard directory (in 
order to use a different package).
I have installed and compiled all the dependencies (all stated and those 
discovered along the way), including the X11 libs.
I have getting the below linking errors and I do not understand exactly where 
the interaction is going wrong.
I have looked for all of the missing symbols and have found them in the X11 
lib, using 'nm -defined-only', which is in the make file target spec.

Any clue would be helpful...
Matt

Here's the error.



remake  all-am
remake[1]: Entering directory 
`/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gtk'
  CCLD libgtk-3.la
  CCLD gtk-query-immodules-3.0
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/sfwr/bin/ld: 
skipping incompatible 
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/sfwr/lib/libgcc_s.so
 when searching for -lgcc_s
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/sfwr/bin/ld: 
skipping incompatible 
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/sfwr/lib/libgcc_s.so
 when searching for -lgcc_s
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/.libs/libgdk-3.a(gdkeventsource.o):
 In function `gdk_event_source_translate_event':
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/x11/gdkeventsource.c:186:
 undefined reference to `XGetEventData'
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/x11/gdkeventsource.c:212:
 undefined reference to `XFreeEventData'
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/x11/gdkeventsource.c:260:
 undefined reference to `XFreeEventData'
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/.libs/libgdk-3.a(gdkasync.o):
 In function `_gdk_x11_send_client_message_async':
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/x11/gdkasync.c:265:
 undefined reference to `_XGetRequest'
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/x11/gdkasync.c:285:
 undefined reference to `_XGetRequest'
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/.libs/libgdk-3.a(gdkasync.o):
 In function `list_children_and_wm_state':
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/x11/gdkasync.c:372:
 undefined reference to `_XGetRequest'
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/.libs/libgdk-3.a(gdkasync.o):
 In function `_gdk_x11_get_window_child_info':
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/x11/gdkasync.c:628:
 undefined reference to `_XGetRequest'
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/x11/gdkasync.c:631:
 undefined reference to `_XGetRequest'
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/.libs/libgdk-3.a(gdkasync.o):/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/home/SW/gtk/gtk+-3.22.0/gdk/x11/gdkasync.c:617:
 more undefined references to `_XGetRequest' follow
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/sfwr/lib/libXi.so: 
undefined reference to `XESetCopyEventCookie'
/nfs/sc/disks/slx_1353/mlpriest/sl1/work_root/a0/development/sfwr/lib/libXi.so: 
undefined reference to `XESetWireToEventCookie'
collect2: error: ld returned 1 exit status
Makefile:2985: *** [gtk-query-immodules-3.0] Error 1

Matt Priest
DCG/NPG/OPA
matt.pri...@intel.com<mailto:matt.pri...@intel.com>
715-737-9962
[Description: Intel Logo]

___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Query

2014-08-01 Thread Ritesh Khadgaray
Hi

  Do look up - https://wiki.gnome.org/GnomeLove .

Cheers


On Fri, Jul 18, 2014 at 12:34 PM, Amisha Singla 
wrote:

> Hello
> I want to start with developing GTK+ projects.Please assign me some
> elementary job to start with.
> Looking forward for your reply.
>
> Regards,
> Amisha
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
>


-- 
-- 
Ritesh Khadgaray
LinuX N Stuff
Ph: +919970164885
Eat Right, Exercise, Die Anyway.
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Query

2014-08-01 Thread Amisha Singla
Hello
I want to start with developing GTK+ projects.Please assign me some
elementary job to start with.
Looking forward for your reply.

Regards,
Amisha
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-20 Thread Hrvoje Niksic

On 01/17/2014 11:21 PM, Stefan Salewski wrote:

On Fri, 2014-01-17 at 17:11 -0500, Jasper St. Pierre wrote:

Yeah. This is to maintain ABI compatibility. Technically, events have
private internal data, and you can use gdk_event_get_device(); to get
the
keyboard device for a key event.

This isn't documented very well; we should perhaps clean this up.


I guess current GTK3 Ruby bindings do not allow event_get_device() for
keyboard events :-(


As a workaround, why not write a ruby extension with a trivial function 
that wraps event_get_device? I don't have experience writing ruby 
extensions (we use Python), but judging by 
http://www.rubyinside.com/how-to-create-a-ruby-extension-in-c-in-under-5-minutes-100.html 
it doesn't seem very complicated.


Once the ruby bindings get proper support for it, you can retire the 
extension.


___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-19 Thread Stefan Salewski
On Fri, 2014-01-17 at 17:26 -0500, Jasper St. Pierre wrote:
> It doesn't seem like there's anything wrong with using the deprecated
> methods, then. File a bug with the Ruby GTK3 bindings, and continue
> using
> window.get_pointer(); for now would be my suggestion.

I sent a message to the Ruby-Gnome2 project mailing list asking to do
not raise an exception when deprecated window.get_pointer() is used.

Should I additional send something to GTK/Gnome Bugzilla asking to
revert deprecation of window.get_pointer()?

If so, which category of Bugzilla would be right?


___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
On Fri, 2014-01-17 at 19:19 -0500, Jasper St. Pierre wrote:
> Deprecated methods should not raise an exception. Deprecated methods
> shouldn't stop working because they're deprecated.

Yes, that was my feeling also, and for most deprecated methods in GTK3 I
got only warnings.  But window.get_pointer() raises an exception and
aborts my program. I will contact the authors of the Ruby bindings.

Best regards

Stefan Salewski


___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Jasper St. Pierre
Deprecated methods should not raise an exception. Deprecated methods
shouldn't stop working because they're deprecated.


On Fri, Jan 17, 2014 at 7:11 PM, Stefan Salewski  wrote:

> On Fri, 2014-01-17 at 17:11 -0500, Jasper St. Pierre wrote:
> > Yeah. This is to maintain ABI compatibility. Technically, events have
> > private internal data, and you can use gdk_event_get_device(); to get
> > the
> > keyboard device for a key event.
> >
> > This isn't documented very well; we should perhaps clean this up.
>
> Indeed Ruby GTK3 bindings do not offer undocumented
> gdk_event_get_device() for key events, and using deprecated
> window.get_pointer() raises an exception.
>
> So my current solution is: I already have motion notify events for my
> drawing area, so for each such event I make a copy of event.x and
> event.y data and use that value for next key event. Seems to work, at
> least my program works again as with GTK2. Maybe I should additional
> store the x, y values for each enter_notify event, otherwise coordinates
> may be invalid at the border of the drawing area when mouse pointer is
> coming from outside.
>
> I will indeed consider filing a bug report.
>
>
>


-- 
  Jasper
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
On Fri, 2014-01-17 at 17:11 -0500, Jasper St. Pierre wrote:
> Yeah. This is to maintain ABI compatibility. Technically, events have
> private internal data, and you can use gdk_event_get_device(); to get
> the
> keyboard device for a key event.
> 
> This isn't documented very well; we should perhaps clean this up.

Indeed Ruby GTK3 bindings do not offer undocumented
gdk_event_get_device() for key events, and using deprecated
window.get_pointer() raises an exception.

So my current solution is: I already have motion notify events for my
drawing area, so for each such event I make a copy of event.x and
event.y data and use that value for next key event. Seems to work, at
least my program works again as with GTK2. Maybe I should additional
store the x, y values for each enter_notify event, otherwise coordinates
may be invalid at the border of the drawing area when mouse pointer is
coming from outside.

I will indeed consider filing a bug report.


___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Paul Davis
On Fri, Jan 17, 2014 at 5:29 PM, Stefan Salewski  wrote:

> On Fri, 2014-01-17 at 17:18 -0500, Paul Davis wrote:
> > you can track where the mouse is with enter/leave events, and there
> > are
> > often good reasons for wanting to do that anyway.
>
> That should not work well for CAD applications.
>
> We have a large drawing area, where we draw objects using cairo drawing
> functions. That are not GTK widgets!


Ardour does the same thing. Except that our objects (all drawn using a
custom cairo canvas) do have enter/leave handling. Pressing delete while
the mouse pointer is inside an object deletes that object.

http://ardour.org/

(*) the current release version uses gnomecanvas, but the next major
release will use our new cairo canvas; the principle remains the same
either way.
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
On Fri, 2014-01-17 at 17:18 -0500, Paul Davis wrote:
> you can track where the mouse is with enter/leave events, and there
> are
> often good reasons for wanting to do that anyway.

That should not work well for CAD applications.

We have a large drawing area, where we draw objects using cairo drawing
functions. That are not GTK widgets! Applications are for example gschem
or gerbv (still GTK2), my PetEd (Ruby gschem clone) or maybe InkScape --
for InkScape I am not sure how it works internally.

___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Jasper St. Pierre
It doesn't seem like there's anything wrong with using the deprecated
methods, then. File a bug with the Ruby GTK3 bindings, and continue using
window.get_pointer(); for now would be my suggestion.


On Fri, Jan 17, 2014 at 5:21 PM, Stefan Salewski  wrote:

> On Fri, 2014-01-17 at 17:11 -0500, Jasper St. Pierre wrote:
> > Yeah. This is to maintain ABI compatibility. Technically, events have
> > private internal data, and you can use gdk_event_get_device(); to get
> > the
> > keyboard device for a key event.
> >
> > This isn't documented very well; we should perhaps clean this up.
>
> I guess current GTK3 Ruby bindings do not allow event_get_device() for
> keyboard events :-(
>
> Maybe
>
>
> https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-get-screen
>
> followed by
>
>
> https://developer.gnome.org/gdk2/stable/GdkScreen.html#gdk-screen-get-display
>
> followed by
>
>
> https://developer.gnome.org/gdk2/stable/GdkDisplay.html#gdk-display-get-pointer
>
> may give me the current mouse coordinates of pointer in my drawing area?
>
> Best regards,
>
> Stefan Salewski
>
>
>


-- 
  Jasper
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
On Fri, 2014-01-17 at 17:11 -0500, Jasper St. Pierre wrote:
> Yeah. This is to maintain ABI compatibility. Technically, events have
> private internal data, and you can use gdk_event_get_device(); to get
> the
> keyboard device for a key event.
> 
> This isn't documented very well; we should perhaps clean this up.

I guess current GTK3 Ruby bindings do not allow event_get_device() for
keyboard events :-(

Maybe 

https://developer.gnome.org/gtk3/stable/GtkWindow.html#gtk-window-get-screen

followed by 

https://developer.gnome.org/gdk2/stable/GdkScreen.html#gdk-screen-get-display

followed by

https://developer.gnome.org/gdk2/stable/GdkDisplay.html#gdk-display-get-pointer

may give me the current mouse coordinates of pointer in my drawing area?

Best regards,

Stefan Salewski


___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Paul Davis
On Fri, Jan 17, 2014 at 5:05 PM, Stefan Salewski  wrote:

>
> You may say that mouse and keyboard input is generally fully unrelated.
> In theory  that may be true, but for CAD applications we really want
> keyboard input related to current mouse pointer position, i.e. delete
> object under mouse cursor when 'X' or 'DEL' key is pressed.


you can track where the mouse is with enter/leave events, and there are
often good reasons for wanting to do that anyway.
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
On Fri, 2014-01-17 at 16:38 -0500, Jasper St. Pierre wrote:
> If you have a keyboard device, you can use
> gdk_device_get_associated_device() to return the paired mouse device.

Fine -- but currently I have only a keyboard event as described in

https://developer.gnome.org/gdk3/stable/gdk3-Event-Structures.html#GdkEventKey

There is no reference to a device. For mouse buttons I have

https://developer.gnome.org/gdk3/stable/gdk3-Event-Structures.html#GdkEventButton

which has a device field. That is fine.

After much googling I found GdkDisplay

https://developer.gnome.org/gdk/unstable/GdkDisplay.html

which may help finding a pointing device, but that seems to be much
complicated overhead. 

You may say that mouse and keyboard input is generally fully unrelated.
In theory  that may be true, but for CAD applications we really want
keyboard input related to current mouse pointer position, i.e. delete
object under mouse cursor when 'X' or 'DEL' key is pressed. That is much
faster than context menu or button clicks. And professionals prefer
working fast.

Best regards,

Stefan Salewski


___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Jasper St. Pierre
Yeah. This is to maintain ABI compatibility. Technically, events have
private internal data, and you can use gdk_event_get_device(); to get the
keyboard device for a key event.

This isn't documented very well; we should perhaps clean this up.


On Fri, Jan 17, 2014 at 5:05 PM, Stefan Salewski  wrote:

> On Fri, 2014-01-17 at 16:38 -0500, Jasper St. Pierre wrote:
> > If you have a keyboard device, you can use
> > gdk_device_get_associated_device() to return the paired mouse device.
>
> Fine -- but currently I have only a keyboard event as described in
>
>
> https://developer.gnome.org/gdk3/stable/gdk3-Event-Structures.html#GdkEventKey
>
> There is no reference to a device. For mouse buttons I have
>
>
> https://developer.gnome.org/gdk3/stable/gdk3-Event-Structures.html#GdkEventButton
>
> which has a device field. That is fine.
>
> After much googling I found GdkDisplay
>
> https://developer.gnome.org/gdk/unstable/GdkDisplay.html
>
> which may help finding a pointing device, but that seems to be much
> complicated overhead.
>
> You may say that mouse and keyboard input is generally fully unrelated.
> In theory  that may be true, but for CAD applications we really want
> keyboard input related to current mouse pointer position, i.e. delete
> object under mouse cursor when 'X' or 'DEL' key is pressed. That is much
> faster than context menu or button clicks. And professionals prefer
> working fast.
>
> Best regards,
>
> Stefan Salewski
>
>
>


-- 
  Jasper
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Stefan Salewski
I recently ported a GTK2 application to GTK3
(http://www.ssalewski.de/PetEd.html.en)

I had some working Ruby code like this for GTK2:

def distribute_events(pda, event)
if event.event_type == Gdk::Event::Type::KEY_PRESS
px, py = pda.get_user_coordinates(*pda.pointer)
else
px, py = pda.get_user_coordinates(event.x, event.y)

window.get_pointer() is deprecated in GTK3.

https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-get-pointer

We should use 

https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-get-device-position

But for this function we need a reference to the pointing device, which
is not available from keyboard event.

Or in other words:
In GTK3-demo there is an Drawing_Area application where we can draw when
we held down the left mouse key: How can we draw a circle at the current
mouse position when we press 'C' key?

Best regards,

Stefan Salewski


___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Jasper St. Pierre
If you have a keyboard device, you can use
gdk_device_get_associated_device() to return the paired mouse device.


On Fri, Jan 17, 2014 at 4:26 PM, Stefan Salewski  wrote:

> I recently ported a GTK2 application to GTK3
> (http://www.ssalewski.de/PetEd.html.en)
>
> I had some working Ruby code like this for GTK2:
>
> def distribute_events(pda, event)
> if event.event_type == Gdk::Event::Type::KEY_PRESS
> px, py = pda.get_user_coordinates(*pda.pointer)
> else
> px, py = pda.get_user_coordinates(event.x, event.y)
>
> window.get_pointer() is deprecated in GTK3.
>
>
> https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-get-pointer
>
> We should use
>
>
> https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-get-device-position
>
> But for this function we need a reference to the pointing device, which
> is not available from keyboard event.
>
> Or in other words:
> In GTK3-demo there is an Drawing_Area application where we can draw when
> we held down the left mouse key: How can we draw a circle at the current
> mouse position when we press 'C' key?
>
> Best regards,
>
> Stefan Salewski
>
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>



-- 
  Jasper
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Installation Query

2013-07-11 Thread Dieter Verfaillie

On 2013-07-11 10:06, Healy Eugene wrote:

Hi,

I have subscribed to this list on advice from Marcus at acc, I had
asked him the following questions regarding installation of the
Windows 32 mirrored version of Gnome.

I have been asked to install the following package (gtk+-bundle
2.24.10-20120208 win32.zip) and am hoping you can answer a couple of
questions re the installation process.

There are a large number of executable files in the Bin folder - do
all these need to be run and is there any particular order which they
should be run?
Is there a setup file anywhere which automates this process?

If anyone can answer these questions I'd very much appreciate it.


Installation is usually limited to just extracting the zip file you
mentioned above.

If you intend to develop software linked against shared libraries
from the bundle, you'd preferably extract to a path that does not
contain spaces (ie C:\devel\gtk+-bundle would be OK but
C:\Program Files\gtk+-bundle is not).

If you do not intend to develop software but instead want to use
the bundle as a runtime environment (for programs developed on
another machine), paths with spaces should be mostly ok (depends
a bit on the program and the things it depends on).

As for configuration, although not always necessary, you'd want to
run the following from a "Command Prompt" or batch script:

cd C:\path\to\my\extracted\gtk+-bundle\
bin\gdk-pixbuf-query-loaders.exe > 
lib\gdk-pixbuf-2.0\2.10.0\loaders.cache

bin\gtk-query-immodules-2.0.exe > etc\gtk-2.0\gtk.immodules
bin\pango-querymodules.exe > etc\pango\pango.modules

mvg,
Dieter

___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Installation Query

2013-07-11 Thread Healy Eugene
Hi,

I have subscribed to this list on advice from Marcus at acc, I had asked him 
the following questions regarding installation of the Windows 32 mirrored 
version of Gnome.

I have been asked to install the following package (gtk+-bundle 
2.24.10-20120208 win32.zip) and am hoping you can answer a couple of questions 
re the installation process.

There are a large number of executable files in the Bin folder - do all these 
need to be run and is there any particular order which they should be run?
Is there a setup file anywhere which automates this process?

If anyone can answer these questions I'd very much appreciate it.

Regards

Eugene Healy
Configuration Management
Tel: 01 224 6077
Email:eugene.he...@centralbank.ie



"***"
This e-mail is from the Central Bank of Ireland. The e-mail and any attachments 
transmitted with it are confidential and privileged and intended solely for the 
use of the individual or organization to whom they are addressed. Any 
unauthorised dissemination, distribution or copying, direct or indirect, of 
this e-mail and any attachments is strictly prohibited. If you have received 
this e-mail in error, please notify the sender and delete the material from 
your system.
"***"
Tagann an ríomhphost seo ó Bhanc Ceannais na hÉireann. Tá an ríomhphost, agus 
aon iatán a ghabhann leis, faoi rún agus faoi phribhléid agus ceaptha 
d’aontoisc le haghaidh úsáide an té nó na heagraíochta chun a ndíreofar iad. Tá 
dianchosc ar chraobhscaoileadh, ar dháileadh nó ar chóipeáil neamhúdaraithe ar 
bith, díreach nó indíreach, an ríomhphoist seo nó aon iatán a ghabhann leis. Má 
tá an ríomhphost seo faighte agat trí dhearmad, cuir an seoltóir ar an eolas 
agus scrios an t-ábhar ó do chóras le do thoil.
"***"
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: query for tweaking the style of GtkScrolledWindow

2010-10-08 Thread Tristan Van Berkom
On Fri, Oct 8, 2010 at 8:43 PM, Debmalya Sinha  wrote:
> Hello people,
> I want to remove the box drawn outside the child of a GtkScrolled Window.
> I've already  searched the Internet about this a lot but there seems to be
> no documentation of it. I've also tried setting the GtkShadowType to NONE,
> but found out that it's just about the shadow type around the box I want to
> remove and GTK_SHADOW_NONE is not my answer.
> Can you please give me a pointer by which i should try? Or am I missing
> something?

There is the "scrollbar-spacing" style property (set in the gtkrc)
that is probably in play here.

Cheers,
   -Tristan

>
>
> Thanks a lot for your time.
>
>
>
> Regards,
>
> Debmalya Sinha
>
> Research Scientist,
> MS(R) student,
> Computer Science and Engineering
> IIT Kharagpur
>
>
> Fedora Ambassador
> Chandannagar
> India.
>
> sunnywizard.googlepages.com
>
>
> GPG Key : 6E2BD51B
> Keyserver : http://pgp.mit.edu
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


query for tweaking the style of GtkScrolledWindow

2010-10-08 Thread Debmalya Sinha
Hello people,

I want to remove the box drawn outside the child of a GtkScrolled Window.
I've already  searched the Internet about this a lot but there seems to be
no documentation of it. I've also tried setting the GtkShadowType to NONE,
but found out that it's just about the shadow type around the box I want to
remove and GTK_SHADOW_NONE is not my answer.

Can you please give me a pointer by which i should try? Or am I missing
something?



Thanks a lot for your time.




Regards,

Debmalya Sinha

Research Scientist,
MS(R) student,
Computer Science and Engineering
IIT Kharagpur


Fedora Ambassador
Chandannagar
India.

sunnywizard.googlepages.com


GPG Key : 6E2BD51B
Keyserver : http://pgp.mit.edu
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Query on Multiple row selection in a GtkTreeView

2010-07-17 Thread Debapriya Das
Hi,

I am facing a problem while implementing following feature using Gtk.

*Requirement :*
I've a Tree view which is multiply selectable. I want to select multiple
elements in the tree view and then right click on the same so that a menu
pops up.

*Problem
*I have made the tree view multiply selectable. Say for example I've
selected 1st, 2nd and 4th row in the Tree View.
Now when I right click keeping the cursor position on 4th row, the previous
selections disappear i.e. the 1st and 2nd rows are deselected, only the 4th
row (on which the the cursor is placed) remains selected.

Could you please tell me whether right click event works on multiple
selection?
Is there any special handling that I need to take care for this
implementation?

Thanks,
Debapriya
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Query : Code Completion for gtk+ 2.0 isn't working in Netbeans IDE

2010-04-17 Thread Debmalya Sinha
On Sat, Apr 17, 2010 at 3:55 PM, Debmalya Sinha wrote:

> Hello people,
>
> Though I know, this is somewhat off the track, I was trying to set gtk to
> run through netbeans.
> I've set all the libraries and linked them and the project is also running.
>
> But what I needed most was the automatic code completion feature of
> netbeans for my gtk codes.
> Sadly, that is not working.
> If I place the mouse pointer near an unfinished identifier like
> "GTK_POLICY_" , it's just prompting in a tooltip that "unable to resolve
> identifier...".
>
>
> Am I missing a point here or two?
>
> Well, I think I've found it. I am starting today and I didn't know that
autocompletion in Netbeans requires ctrl+space to invoke.
so lame of me.

> --
> Regards,
>
> Debmalya Sinha
>
> Research Scientist,
> MS(R) student,
> Computer Science and Engineering
> IIT Kharagpur
>
>
> Fedora Ambassador
> Chandannagar
> India.
>
> sunnywizard.googlepages.com
>
>
> GPG Key : 6E2BD51B
> Keyserver : http://pgp.mit.edu
>



-- 
Regards,

Debmalya Sinha

Research Scientist,
MS(R) student,
Computer Science and Engineering
IIT Kharagpur


Fedora Ambassador
Chandannagar
India.

sunnywizard.googlepages.com


GPG Key : 6E2BD51B
Keyserver : http://pgp.mit.edu
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Query : Code Completion for gtk+ 2.0 isn't working in Netbeans IDE

2010-04-17 Thread Debmalya Sinha
Hello people,

Though I know, this is somewhat off the track, I was trying to set gtk to
run through netbeans.
I've set all the libraries and linked them and the project is also running.

But what I needed most was the automatic code completion feature of netbeans
for my gtk codes.
Sadly, that is not working.
If I place the mouse pointer near an unfinished identifier like
"GTK_POLICY_" , it's just prompting in a tooltip that "unable to resolve
identifier...".


Am I missing a point here or two?

-- 
Regards,

Debmalya Sinha

Research Scientist,
MS(R) student,
Computer Science and Engineering
IIT Kharagpur


Fedora Ambassador
Chandannagar
India.

sunnywizard.googlepages.com


GPG Key : 6E2BD51B
Keyserver : http://pgp.mit.edu
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Query about GtkTextView

2008-05-06 Thread John M Collins
I have an application which is using GtkTextView and a scrolled window.

Please could someone advise me on how I can discover the lines of the
Text Buffer which are visible in the window. Do I have to figure it out
from the adjustment value (in which case how) or is there a better way?

Thanks for any help anyone can give.


John Collins Xi Software Ltd www.xisl.com


___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Query regarding GtkScrolledWindow

2008-04-15 Thread iluvlinux

hi
 i have a query regarding GtkScrolledWindow

The Class Path for child widgets is like

GtkWindow.GtkVBox.GtkScrolledWindow.GtkViewport.GtkTable.GtkVBox.GtkHBox.GtkRadioButton
GtkWindow.GtkVBox.GtkScrolledWindow.GtkViewport.GtkTable.GtkVBox.GtkHBox.GtkCheckButton



there are many more child widgets (not just two as shown above)

every thing works fine when i scroll up or down the scrolled window, but
what i want is a kind of notification
for those widgets  that have been scrolled up or down when i press down or
Up arrow key or click on scroll bar. 

Is there a way to do the same, so that i can get a notification for widgets
that are scrolled up or down and are invisible.

thanks and regards
varun

-- 
View this message in context: 
http://www.nabble.com/Query-regarding-GtkScrolledWindow-tp16716411p16716411.html
Sent from the Gtk+ - General mailing list archive at Nabble.com.

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


RE: Query regarding drawing gtk_draw_rectangle API

2008-03-31 Thread Vallone, Anthony
gdk_gc_new(your_widget->window) will allocate a graphics context that
you can use to draw a rectangle.  You should call gdk_gc_unref() when
you are done with it.
 
Alternatively, you could just create a GtkEventBox and use
gtk_widget_modify_bg().
 
-Anthony Vallone



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of nisha jain
Sent: Monday, March 31, 2008 2:22 PM
To: [EMAIL PROTECTED]; gtk-list@gnome.org
Subject: Fwd: Query regarding drawing gtk_draw_rectangle API



Hi All,
 
I have to create a simple box filled with some color.
I am using the gdk_draw_rectangle API but it takes 
gc graphics Context parameter. I am not able to find out
proper values for gc. I saw the scribble.c program available
but it is not compiling using gcc. Does some one has some 
application which is using gtk_draw_rectangle(). I have gone
through its documentation but i am not able to make a simple 
function using it
 
Please if any one knows how to use this function and parameters 
passed to GdkGC explain it.
 
Regards,
Nisha 
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Fwd: Query regarding drawing gtk_draw_rectangle API

2008-03-31 Thread nisha jain
Hi All,

I have to create a simple box filled with some color.
I am using the gdk_draw_rectangle API but it takes
gc graphics Context parameter. I am not able to find out
proper values for gc. I saw the scribble.c program available
but it is not compiling using gcc. Does some one has some
application which is using gtk_draw_rectangle(). I have gone
through its documentation but i am not able to make a simple
function using it

Please if any one knows how to use this function and parameters
passed to GdkGC explain it.

Regards,
Nisha
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


query about visibility-notify-event

2008-03-13 Thread iluvlinux

hi
i have a question regarding the same
If i add widgets to a container than i get the signal
visibility-notify-event, whenever visibility changes
but if i add widgets to a scrolledwindow i donot get visibility-notify-event
for the widgets that have 
scrolled up ie not visible nor i get unmap signal.

What should i look for in order to get any of the two signals or anything
else for the widgets in scrolled window that have either scrolled up or
down.

thanks and regards
varun
-- 
View this message in context: 
http://www.nabble.com/query-about-visibility-notify-event-tp16023402p16023402.html
Sent from the Gtk+ - General mailing list archive at Nabble.com.

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Query: Progress on Bug 496958 (Wacom Bamboo tablet not working on Win32)

2008-01-23 Thread J.P. Tuttle
Hello all.

I was wondering if there has been any progress on Bug 496958 (Wacom 
Bamboo Doesn't Function with GTK apps in Win32).  I'm thinking of 
getting a Bamboo, but it would be significantly less useful if it didn't 
work with the GIMP.  In case it matters, I'm using Vista :-P.

I might buy one of the tablets anyway; if so, would it be helpful to 
have someone to test development versions of GTK with an actual tablet?

Thanks.

-- J.P.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk on Embedded Device Query

2007-12-14 Thread Saroj Kumar
Hi Mathais,

Thanks for the help. strace is really helped.
Following files are not found.

read(4, "\355\33x\311\267\272\320\262ax\31\353:@%c\313\n\357\313"..., 4096)
= 4096
open("/root/.Xdefaults", O_RDONLY)  = -1 ENOENT (No such file or
directory)
uname({sys="Linux", node="ARMCore", ...}) = 0
open("/root/.Xdefaults-ARMCore", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/root/.Xdefaults", O_RDONLY)  = -1 ENOENT (No such file or
directory)
uname({sys="Linux", node="ARMCore", ...}) = 0
open("/root/.Xdefaults-ARMCore", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/root/.Xdefaults", O_RDONLY)  = -1 ENOENT (No such file or
directory)
uname({sys="Linux", node="ARMCore", ...}) = 0
open("/root/.Xdefaults-ARMCore", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/root/.Xdefaults", O_RDONLY)  = -1 ENOENT (No such file or
directory)
uname({sys="Linux", node="ARMCore", ...}) = 0
open("/root/.Xdefaults-ARMCore", O_RDONLY) = -1 ENOENT (No such file or
directory)
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


How to generate these files?

Thanks and Regards,
Saroj

On Dec 14, 2007 5:26 PM, Mathias Hasselmann <[EMAIL PROTECTED]>
wrote:

> No idea. I'd suspect some folders missing and run the program with
> strace to see if folder locations are correct.
>
> Ciao,
> Mathais
>
> Am Freitag, den 14.12.2007, 11:18 +0530 schrieb Saroj Kumar:
> >
> > Hi,
> >
> > I ported X11 and Gtk with X11 support on Embedded
> > board(arm-linux).
> > The problem I am facing now is setting the fontconfig. Because
> > I have fontconfig and freetype libraries for X11 and I
> > compiled Gtk with those libraries.
> >
> > The following error is produced when I tried to run gtkdemo
> > application.
> >
> > (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> > to STRING: Could not open converter from 'UTF-8' to
> > 'ISO-8859-'
> >
> > (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> > to STRING: Conversion from character set 'UTF-8' to
> > 'ISO-8859-d
> > Fontconfig warning: line 32: unknown element "cachedir"
> > Fontconfig warning: line 33: unknown element "cachedir"
> > Fontconfig error: "conf.d", line 1: no element found
> >
> > (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> > to STRING: Conversion from character set 'UTF-8' to
> > 'ISO-8859-d
> >
> > (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> > to STRING: Conversion from character set 'UTF-8' to
> > 'ISO-8859-d
> >
> > (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> > to STRING: Conversion from character set 'UTF-8' to
> > 'ISO-8859-d
> > Segmentation fault
> >
> >
> > What I am doing is correct or not. Pls. suggest some solution
> > for this.
> >
> > Thanks and Regards,
> > Saroz
> >
> >
> >
> >
> > ___
> > gtk-list mailing list
> > gtk-list@gnome.org
> > http://mail.gnome.org/mailman/listinfo/gtk-list
> --
> Mathias Hasselmann <[EMAIL PROTECTED]>
> http://taschenorakel.de/
>
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk on Embedded Device Query

2007-12-14 Thread Mathias Hasselmann
No idea. I'd suspect some folders missing and run the program with
strace to see if folder locations are correct.

Ciao,
Mathais

Am Freitag, den 14.12.2007, 11:18 +0530 schrieb Saroj Kumar:
> 
> Hi,
> 
> I ported X11 and Gtk with X11 support on Embedded
> board(arm-linux). 
> The problem I am facing now is setting the fontconfig. Because
> I have fontconfig and freetype libraries for X11 and I
> compiled Gtk with those libraries. 
> 
> The following error is produced when I tried to run gtkdemo
> application.
> 
> (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> to STRING: Could not open converter from 'UTF-8' to
> 'ISO-8859-' 
> 
> (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> to STRING: Conversion from character set 'UTF-8' to
> 'ISO-8859-d
> Fontconfig warning: line 32: unknown element "cachedir"
> Fontconfig warning: line 33: unknown element "cachedir" 
> Fontconfig error: "conf.d", line 1: no element found
> 
> (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> to STRING: Conversion from character set 'UTF-8' to
> 'ISO-8859-d
> 
> (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> to STRING: Conversion from character set 'UTF-8' to
> 'ISO-8859-d 
> 
> (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8
> to STRING: Conversion from character set 'UTF-8' to
> 'ISO-8859-d
> Segmentation fault
> 
> 
> What I am doing is correct or not. Pls. suggest some solution
> for this. 
> 
> Thanks and Regards,
> Saroz
> 
> 
> 
> 
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-list
-- 
Mathias Hasselmann <[EMAIL PROTECTED]>
http://taschenorakel.de/


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk on Embedded Device Query

2007-12-13 Thread Saroj Kumar
> Hi,
>
> I ported X11 and Gtk with X11 support on Embedded board(arm-linux).
> The problem I am facing now is setting the fontconfig. Because I have
> fontconfig and freetype libraries for X11 and I compiled Gtk with those
> libraries.
>
> The following error is produced when I tried to run gtkdemo application.
>
> *(gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8 to STRING:
> Could not open converter from 'UTF-8' to 'ISO-8859-'
>
> (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8 to STRING:
> Conversion from character set 'UTF-8' to 'ISO-8859-d
> Fontconfig warning: line 32: unknown element "cachedir"
> Fontconfig warning: line 33: unknown element "cachedir"
> Fontconfig error: "conf.d", line 1: no element found
>
> (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8 to STRING:
> Conversion from character set 'UTF-8' to 'ISO-8859-d
>
> (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8 to STRING:
> Conversion from character set 'UTF-8' to 'ISO-8859-d
>
> (gtk-demo:1152): Gdk-WARNING **: Error converting from UTF-8 to STRING:
> Conversion from character set 'UTF-8' to 'ISO-8859-d
> Segmentation fault
> *
>
> What I am doing is correct or not. Pls. suggest some solution for this.
>
> Thanks and Regards,
> Saroz
>
>
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Gtk on Embedded Device Query

2007-11-29 Thread Saroj Kumar
Hi,

I am running gtk+ application on an embedded board (PXA255 processor with
400MHz speed) running Linux.
Gtk+ is running on top of frame buffer (instead of X11).
Application is running very slow on the board.

Compared to desktop Linux system its 20 times slower. (Found out by testing
GtkPerf application)

Is there any way to make it fast?
I ran gtk-demo for testing, that one also very slow.

Any suggestions is really appreciated.

Thanks and Regards,
Saroz
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk on Embedded Device Query

2007-11-28 Thread Saroj Kumar
   Hi,

>
> I am running gtk+ application on an embedded board (PXA255 processor with
> 400MHz speed) running Linux.
> Gtk+ is running on top of frame buffer (instead of X11).
> Application is running very slow on the board.
>
> Compared to desktop Linux system its 20 times slower. (Found out by
> testing GtkPerf application)
>
> Is there any way to make it fast?
> I ran gtk-demo for testing, that one also very slow.
>
> Any suggestions is really appreciated.
>
> Thanks and Regards,
> Saroz
>
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: newcomer query - seeing other apps Xwindows

2007-05-14 Thread Andrew Sobala
Ritesh Khadgaray wrote:
> On Fri, 2007-05-11 at 23:24 +0100, Godfrey Nix wrote:
>> Hi,
>>
>> I am a newcomer to the list so don't know if this has been asked before
>> or not. What I want to do is to be able to view the structure of all the
>> windows open on a display, and to both read values from them (eg see
>> what is in a text area) and to send events to control them.
>>
>> For example, I would like to be able to 'record' the buttons and menus
>> that I activate whilst doing some work, so that I can 'play back' as
>> part of a training session for others.
>>
>> I have looked through the library functions, read tutorials but so far I
>> cannot find anything that helps. I don't want yet more help on drawing
>> widgets in my own app., I want to 'take control' of widgets in other
>> apps! I realise there are security implications, but I do want to (if
>> possible) have the ability to record my actions for use in student
>> training sessions.
>>
>> Any help to point me in the right direction would be appreciated, or a
>> comment that it is not possible (if that is the case).
> 
> Not sure if this is what is being looked for, but checkout LDTP
> http://ldtp.freedesktop.org/

Also, if you enable accessibility, you should be able to get the hooks 
you want through atk. Checkout atk for documentation on how to do it 
yourself, and accerciser for an application that should be able to 
access other applications.
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: newcomer query - seeing other apps Xwindows

2007-05-14 Thread Ritesh Khadgaray
On Fri, 2007-05-11 at 23:24 +0100, Godfrey Nix wrote:
> Hi,
> 
> I am a newcomer to the list so don't know if this has been asked before
> or not. What I want to do is to be able to view the structure of all the
> windows open on a display, and to both read values from them (eg see
> what is in a text area) and to send events to control them.
> 
> For example, I would like to be able to 'record' the buttons and menus
> that I activate whilst doing some work, so that I can 'play back' as
> part of a training session for others.
> 
> I have looked through the library functions, read tutorials but so far I
> cannot find anything that helps. I don't want yet more help on drawing
> widgets in my own app., I want to 'take control' of widgets in other
> apps! I realise there are security implications, but I do want to (if
> possible) have the ability to record my actions for use in student
> training sessions.
> 
> Any help to point me in the right direction would be appreciated, or a
> comment that it is not possible (if that is the case).

Not sure if this is what is being looked for, but checkout LDTP
http://ldtp.freedesktop.org/


-- 
Ritesh Khadgaray
ॐ मणि पद्मे हूँ
LinuX N Stuff
Ph: +919970164885
Eat Right, Exercise, Die Anyway.

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


newcomer query - seeing other apps Xwindows

2007-05-11 Thread Godfrey Nix
Hi,

I am a newcomer to the list so don't know if this has been asked before
or not. What I want to do is to be able to view the structure of all the
windows open on a display, and to both read values from them (eg see
what is in a text area) and to send events to control them.

For example, I would like to be able to 'record' the buttons and menus
that I activate whilst doing some work, so that I can 'play back' as
part of a training session for others.

I have looked through the library functions, read tutorials but so far I
cannot find anything that helps. I don't want yet more help on drawing
widgets in my own app., I want to 'take control' of widgets in other
apps! I realise there are security implications, but I do want to (if
possible) have the ability to record my actions for use in student
training sessions.

Any help to point me in the right direction would be appreciated, or a
comment that it is not possible (if that is the case).
-- 
Godfrey Nix <[EMAIL PROTECTED]>

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Compile related query

2006-10-09 Thread varadaraj.yatirajula
Title: Compile related query






Hi,

I have downloaded the gtk+ code from CVS. I am facing the following two issues. Any 

help would be appreciated.

1) When I run the autogen --- following warning is printed:



[EMAIL PROTECTED] gtk+]# sh autogen.sh --prefix=$PREFIX --with-gdktarget=directfb --without-x

WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'

WARNING: and `config.h.top', to define templates for `config.h.in'

WARNING: is deprecated and discouraged.

WARNING: Using the third argument of `AC_DEFINE' and

WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without

WARNING: `acconfig.h':

WARNING:   AC_DEFINE([NEED_MAIN], 1,

WARNING: [Define if a function `main' is needed.])

WARNING: More sophisticated templates can also be produced, see the

WARNING: documentation.

2) Subsequently when I do a make following error is printed:



fa.po:157: 'msgstr[0]' is not a valid C format string, unlike 'msgid'

fa.po:354: 'msgstr' is not a valid C format string, unlike 'msgid'

fa.po:395: 'msgstr' is not a valid C format string, unlike 'msgid'

fa.po:425: 'msgstr' is not a valid C format string, unlike 'msgid'

fa.po:494: 'msgstr' is not a valid C format string, unlike 'msgid'

fa.po:1313: 'msgstr' is not a valid C format string, unlike 'msgid'

fa.po:1692: 'msgstr[0]' is not a valid C format string, unlike 'msgid'

fa.po:2184: 'msgstr' is not a valid C format string, unlike 'msgid'

fa.po:3143: 'msgstr' is not a valid C format string, unlike 'msgid'

fa.po:3148: 'msgstr' is not a valid C format string, unlike 'msgid'

fa.po:3153: 'msgstr' is not a valid C format string, unlike 'msgid'

/usr/bin/msgfmt: found 11 fatal errors

make[2]: *** [fa.gmo] Error 1

make[2]: Leaving directory `/home/yg/gtk/gtk+/po'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/yg/gtk/gtk+'

make: *** [all] Error 2




___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Glib Main Loop Query

2006-05-26 Thread Sumit Kumar Jain
Hello All,  I have one quey about the function g_main_context_add_poll function.  Once we add a file descriptor to be polled and if file descriptor is  ready, how do we call a callback function for it. What i mean to say is  if we use g_main_context_add_poll, where and how do we set the  prepare,check and dispatch( to call the call back function) for that  fd. When i use a source attached to a context, i can specify the same  using g_source_new  and g_source_set_callback.Thanks to all in advance.Regards,  Sumit Kumar Jain  
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail Beta.___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


gdk-pixbuf-query-loaders cannot load loader

2005-11-10 Thread Chien-Yu Chen
Hi!

  I compiled gtk+-2.6.10...but /etc/gtk-2.0/gdk-pixbuf.loaders is not
generated...so I tried to use gdk-pixbuf-query-loaders to generate
/etc/gtk-2.0/gdk-pixbuf.loadershowever, I am getting
Cannot load loader.

from the source code, this is from

---

if (module  &&
g_module_symbol (module, "fill_info", (gpointer *) &fill_info) &&
g_module_symbol (module, "fill_vtable", (gpointer *) &fill_vtable))
..
else {
if (module == NULL)
g_fprintf (stderr, "g_module_open() failed for
%s: %s\n", path,
   g_module_error());
else
g_fprintf (stderr, "Cannot load loader %s\n", path);
}

--

so module is loaded...but fill_info and fill_vtable is not there or
something...can anyone give me some suggestion?  thanks

chen

--
   .--.
  |o_o |   Freedom of Choice
  |:_/ |   __
 //   \ \ / / __  __  __  __  __ __  __
(| | )   / /__   / / /  \/ / / /_/ / \ \/ /
   /'\_   _/`\  /_/ /_/ /_/\__/ /_/  /_/\_\
   \___)=(___/
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


GTK query

2005-06-07 Thread Jagadish K , Bangalore

Hi,
  I am using gtk for GUI application development, where I required drag and 
drop option, I downloaded testdnd.c a sample dnd program. 
It is simple program, didn't work's as actual drag and drop, I just modified 
the program, which creates new widget, when a widget is dropped on a widget 
like Label. Kindly clarify the following query.

1. How to catch drop event of the widget on the table (1:1), of size 3 row X 3 
column( presently dropping on the label widget)
2. On drag and drop the source widget has to be created, where the source 
widget is dropped.

 I required more details on drag & drop, the gtk tutorial didn't have much 
information on dnd. I like to refer more sample programs, if you send me the 
link will be much useful & helpful.  

 With Anticipation & regards,
 Jagadish.K
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


query on GTK module for python

2005-05-16 Thread Jagadish K , Bangalore
Hi,

I require some help.
On Linux system import gtk & import gobject is working fine, 

where as it's giving error "ImportError: No module named gtk" & 

"No module named gobject" on windows. Kindly let me know any library modules 
required to be installed & also the site map.

With Regards,

Jagadish.K
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


GtkFB query

2004-10-06 Thread Miven Dooligan
Is there list for GtkFB, and the linux-fb subdirectory.
Where to look for info on this?
--
Peace and Cheer
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list


db query tool

2003-11-15 Thread gtkphpmail
Hi,
How do I use the database manager and db query tool. are there any docs/sample codes for them.
cheers,
shalabh. Click onthe image to chat with me


Query

2002-08-30 Thread vishal

Hi,

I have a query regarding images. How do I append an image into a clist ? I 
want to display an image along with other things in a clist. 

Regards,
Vishal Kothari
([EMAIL PROTECTED])

-


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: query about editable

2002-04-19 Thread John . Cupitt

gdk_window_lookup() only works for windows which have been created by 
the program you call it from.

What are you trying to do? Maybe there is another way.

John


Jyothi wrote:
> But I tried using it . gdk_window_lookup function is always returning
> zero. Is there any other function or any things I should do before using
> this function


>>Jyothi wrote:
>>
>>>I have a xid of a window. From that can I get to know that whether
>>>it is a entry or text.
>>
>>Hi, you could try:
>>
>>GdkWindow *gdk_window_lookup( int xid );
>>
>>to find the GdkWindow ... I'm not sure how you'd get the widget from
>>that. Maybe you could set the user_data for the windows for all your
>>entry/text widgets to point back to the widget? There's probably a
>>better way.
>>
>>John





== 
Aelbert Cuyp 13 February - 12 May 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/cuyp/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: query about editable

2002-04-18 Thread Jyothi

Hi,

Thanks for the help..

But I tried using it . gdk_window_lookup function is always returning
zero. Is there any other function or any things I should do before using
this function

Thanks,
Jyothi.





[EMAIL PROTECTED] wrote:

> Jyothi wrote:
> > I have a xid of a window. From that can I get to know that whether
> > it is a entry or text.
>
> Hi, you could try:
>
> GdkWindow *gdk_window_lookup( int xid );
>
> to find the GdkWindow ... I'm not sure how you'd get the widget from
> that. Maybe you could set the user_data for the windows for all your
> entry/text widgets to point back to the widget? There's probably a
> better way.
>
> John
>
> ==
> Aelbert Cuyp 13 February - 12 May 2002
>
> For information and tickets:
> http://www.nationalgallery.org.uk/exhibitions/cuyp/

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: query about editable

2002-04-18 Thread John . Cupitt

Jyothi wrote:
> I have a xid of a window. From that can I get to know that whether
> it is a entry or text.

Hi, you could try:

GdkWindow *gdk_window_lookup( int xid );

to find the GdkWindow ... I'm not sure how you'd get the widget from 
that. Maybe you could set the user_data for the windows for all your 
entry/text widgets to point back to the widget? There's probably a 
better way.

John



== 
Aelbert Cuyp 13 February - 12 May 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/cuyp/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



query about editable

2002-04-18 Thread Jyothi

Hi,

I have a xid of a window. From that can I get to know that whether
it is a entry or text.

Thanks in Advance,
Jyothi.

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Query

2002-01-02 Thread Perveez

Hello ,
  Could Any one tell me is there a 64 bit gtk library
which can be used to link along with the object code
which i have built on 64 bit machine?
  while trying to link i get this error.
"libgmodule is not valid in current object mode."
I suspect libgmodule is not built on 64 bit machine.

Any help would be of great help.

Thanks in Advance 
Regards,
Perveez.



__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: A New user's Query

2001-10-08 Thread Chris Wareham

BAIJU M wrote:
> 
>I am new to this mailing list (to linux also). I want to develope an
> application software in linux.Could you list some references for GTK+
> other than this mailing list and gtk.org . Where I can find some nice
> documents about GTK+ .(Please mention any books on GTK+ also). I will be
> reading this mailing lists and examples & tutorials in gtk.org.
> 

http://www.gtk.org/tutorial/ - A neat tutorial
http://www.gtk.org/faq/  - Frequently Asked Questions
http://www.gtk.org/api/  - an (incomplete) API reference

There's two really good books on GTK+, including Havoc Pennington's
which
is also geared towards development with Gnome. An online version is
available at:

http://www106.pair.com/rhp/gnome-app-devel.html

I'd suggest starting with the tutorial, and then progress onto Havoc's
book.

One other thing, Frequently Asked Questions or FAQ's as they're better
known, answer many newbies questions. Each reasonably busy mailing list
and newsgroup has one, so it's worth tracking them down before posting.
Try the following sites for a comprehensive selection:

http://www.linuxdoc.org/
http://www.faqs.org/

Chris
--
bendy-straw for spitoon guzzlers

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: A New user's Query

2001-10-08 Thread rsteinke

From: BAIJU M <[EMAIL PROTECTED]>
>
> Hi,
>I am new to this mailing list (to linux also). I want to develope an
> application software in linux.Could you list some references for GTK+
> other than this mailing list and gtk.org . Where I can find some nice
> documents about GTK+ .(Please mention any books on GTK+ also). I will be
> reading this mailing lists and examples & tutorials in gtk.org.

Havoc's book is mentioned on the website somewhere in the FAQ, but
should probably be mentioned under the Documentation/Published Books
section too. You can find it at

http://developer.gnome.org/doc/GGAD/

Ron Steinke

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



A New user's Query

2001-10-08 Thread BAIJU M

Hi,
   I am new to this mailing list (to linux also). I want to develope an
application software in linux.Could you list some references for GTK+
other than this mailing list and gtk.org . Where I can find some nice
documents about GTK+ .(Please mention any books on GTK+ also). I will be
reading this mailing lists and examples & tutorials in gtk.org.

Thank you,A
  Baiju.M


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: GTK+ 2.0, Themes Query

2001-09-19 Thread Havoc Pennington


Matt Keenan <[EMAIL PROTECTED]> writes: 
> Can anyone help me in explaining what these new tokens relate to
> and if there is an example or how they are used within a gtkrc file
> ?

All of them should be documented in the GtkRcStyle docs.
See also http://www.gtk.org/~otaylor/gtk/2.0/theme-engines.html
 
>   GTK_RC_TOKEN_XTHICKNESS,
>   GTK_RC_TOKEN_YTHICKNESS,

These are "widths" used in different ways by different widgets,
usually for frame/bevel size

>   GTK_RC_TOKEN_FONT_NAME,

Name of the style's font

>   GTK_RC_TOKEN_THEME,

Theme name

>   GTK_RC_TOKEN_IM_MODULE_PATH,

Search path for input method modules

>   GTK_RC_TOKEN_IM_MODULE_FILE,

Don't know

>   GTK_RC_TOKEN_STOCK,
>   GTK_RC_TOKEN_LTR,
>   GTK_RC_TOKEN_RTL,

Documented in the API docs, sort of involved.

Havoc


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



GTK+ 2.0, Themes Query

2001-09-19 Thread Matt Keenan


Hi,

I was just browsing through the gtkrc.h header for file for GTK+ 2.0 
and noticed some new token definitions for gtkrc theme file elements.

Can anyone help me in explaining what these new tokens relate to
and if there is an example or how they are used within a gtkrc file ?

New Tokens :

  GTK_RC_TOKEN_XTHICKNESS,
  GTK_RC_TOKEN_YTHICKNESS,
  GTK_RC_TOKEN_FONT_NAME,
  GTK_RC_TOKEN_THEME,
  GTK_RC_TOKEN_IM_MODULE_PATH,
  GTK_RC_TOKEN_IM_MODULE_FILE,
  GTK_RC_TOKEN_STOCK,
  GTK_RC_TOKEN_LTR,
  GTK_RC_TOKEN_RTL,

Thanks

Matt

-- 
__.--'\ \.__./ /'--.__
_.-'   '.__.''.__.'   '-._
  .'   Matt Keenan (mattman)  '.
 /   Sun Microsystems Ireland   \
||
|   E-Mail : [EMAIL PROTECTED] |
|[EMAIL PROTECTED]  |
||
|MattMan's Home Page, Go Jaguars !!! |
| http://www.iol.ie/~mattman |
||
|  Irish Fantasy League Of American Football |
|   http://www.iflaf.com |
||
|Happy Hookers Golf Society  |
|   http://www.iol.ie/~mattman/golf/hhgs.htm |
||
|   Phone  : +353 1 8199251, Sun Ext : 19251 |
 \ .---.  .---. /
  '._.' '.''..''.' '._.'
 '-./\  /\.-'
  ''

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: A Query - how to install Gtk--?

2000-11-01 Thread D-Man


There is a list specific to gtk--.

Libsigc++ is a library that provides a safe signal framework for C++ app.  Gtk-- uses 
this signal framework for the C++ parts (gtk provides it's own signal mechanisms but I 
imagine it doesn't work well with C++).

You need to install libsigc++, then gtk--.  I don't know if glade-- is dependent on 
gtk-- (for installing and running, that is) but inorder to use the C++ code glade-- 
spits out you will need gtk-- installed.  

You may also want to check out libglade.  Libglade is a C library (I don't know if 
there are C++ wrappers, though you could make some) that creates the UI at runtime 
from the .glade file.  It's advantage is that you don't need to generate and compile 
any code for the UI itself and the UI can be changed without recompiling the app (just 
change the .glade file).

If you want/need rpms for a RedHat system on x86 platform e-mail me and I'll send them 
to you.

-D

On Tue, 31 Oct 2000 00:35:03 [EMAIL PROTECTED] wrote:
 | 
 | 
 | 
 | 
 | Hi,
 |   I am having a problem in installing gtk--
 | I need to work in glade and generate code in c++. For that, I installed glade--.
 | Then it asked me, to install GTK--. When doing that it asked me for Libsigc++.
 | Now all this is not fitting in line properly.
 | 
 | It is still giving me compilation errors. It doesn't generate the makefile.
 | Can you please tell me the exact procedure of installing gtk--,(or how to
 | generate C++ code using glade)!
 | regards,
 | Ela
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | ___
 | gtk-list mailing list
 | [EMAIL PROTECTED]
 | http://mail.gnome.org/mailman/listinfo/gtk-list
 | 



___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



A Query - how to install Gtk--?

2000-11-01 Thread eprakash





Hi,
  I am having a problem in installing gtk--
I need to work in glade and generate code in c++. For that, I installed glade--.
Then it asked me, to install GTK--. When doing that it asked me for Libsigc++.
Now all this is not fitting in line properly.

It is still giving me compilation errors. It doesn't generate the makefile.
Can you please tell me the exact procedure of installing gtk--,(or how to
generate C++ code using glade)!
regards,
Ela







___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Query about gdk (draw) used along with GtkStyle.

2000-06-25 Thread Saravanan A

  Sub : I have some problem with gdk (Drawing Rectangle) when changing Style.
  
  I have already posted this question as a non member. I am reposting it again.

  I used the following code to draw the border for the widget (over the parent widget, 
ie a GtkFixed). This is done to highlight the widget when it is clicked. But if I 
change the font of the contained widget the border not visible. Suggest me to over 
come this problem

  To draw a border for a widget to do so I wrote the following code.

void
Draw_Border(GtkWidget *SelectedWidget)
{
GdkWindow *window;
int w=0,h=0;

  /* Border Does not appear if this line is included*/
  SetFont(SelectedWidget,"-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*");
  window = (get_widget_window (SelectedWidget->parent, SelectedWidget));
  gdk_window_get_size (window, &w, &h);

  black_gc = SelectedWidget->parent->style->black_gc;
  gdk_gc_set_subwindow (black_gc, GDK_INCLUDE_INFERIORS);
  gdk_draw_rectangle (SelectedWidget->parent->window, black_gc, FALSE,
SelectedWidget->allocation.x,
SelectedWidget->allocation.y, 
SelectedWidget->allocation.width - 1, 
SelectedWidget->allocation.width - 1);
  gdk_gc_set_subwindow (black_gc, GDK_CLIP_BY_CHILDREN);
  return ;
}

SetFont(GtkWidget *Widget, char *Font)
{
  GtkStyle *Style=gtk_style_copy(gtk_widget_get_default_style());
  Style->font=gdk_font_load(Font);
  gtk_widget_set_style(GTK_WIDGET(Widget), Style);
  return ;
}

  If this mail is to be redirected to someone else please do inform me.
  Thanking U

Saravanan,
India.


_
Get Your Free Email At, http://www.rediffmail.com

Participate in crazy Re.1 auctions at http://www.rediff.com/auctions




___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Pixmap query regarding XpmRGBCloseness.

2000-06-20 Thread Julian Rogers

In the Xpm library you can set the following attribute for a Pixmap
"XpmRGBCloseness". However it does not seem to be possible when calling
`gdk_pixmap_create_from_xpm'. Does someone have a hint?

Thanks in advance,
Julian

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list