Re: gtk-list Digest, Vol 18, Issue 22



Hi,
 
I want some help from the group.
I am just creating a sample calculator that will have button with Indian language numbers on it. That everything on the calculator will be in indian languageHindi).
I am able to create calculator using gtk library in english. But I am facing problem how to render Hindi text/number over the button.
I have hindi OT fonts installed on my machine. I am using Red hat as well as fedora core 3.
 
 
Can anybody help me out?
Sample code for displaying hindi text will help me a lot.
 
Thanks in advance.
 
lalit
 


On 10/17/05, gtk-list-request gnome org <gtk-list-request gnome org > wrote:
Send gtk-list mailing list submissions to
       gtk-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
       http://mail.gnome.org/mailman/listinfo/gtk-list
or, via email, send a message with subject or body 'help' to
       gtk-list-request gnome org

You can reach the person managing the list at
       gtk-list-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-list digest..."


Today's Topics:

  1. Question about GtkActionEntry. (DC A)
  2. Re: progressbar color (Markus Jonsson)
  3. Re: so, is this claim about pango still true? or does nobody
     actually care? (Daniel Kasak)
  4. Re: so, is this claim about pango still true? or does nobody
     actually care? (Russell Shaw)
  5. Re: so, is this claim about pango still true? or does nobody
     actually care? (Russell Shaw)
  6. Re: progressbar color (funebre (sent by Nabble.com))
  7. Re: progressbar color (Markus Jonsson)
  8. Re: progressbar color (Nick Soffe)
  9. Re: so, is this claim about pango still true? or does nobody
     actually care? (Emmanuel Briot)
10. Re: so, is this claim about pango still true? or does     nobody
     actually care? (Federico Mena Quintero)


----------------------------------------------------------------------

Message: 1
Date: Sun, 16 Oct 2005 17:35:15 +0000
From: "DC A" <adc4444 hotmail com >
Subject: Question about GtkActionEntry.
To: gtk-list gnome org
Message-ID: <BAY106-F2997369EA51C894C1EF822A97F0 phx gbl >
Content-Type: text/plain; format=flowed

I saw in an example that entries of type GtkActionEntry are defined like
this:


static GtkActionEntry entries[] = {
{ "Menu1Action", NULL, "Menu _1" },
{ "Menu2Action", NULL, "Menu _2" },
{ "Menu3Action", NULL, "_Dynamic Menu" },

{ "cut", GTK_STOCK_CUT, "C_ut", "<control>X",
   "Cut the selected text to the clipboard", G_CALLBACK (activate_action)
},
{ "copy", GTK_STOCK_COPY, "_Copy", "<control>C",
   "Copy the selected text to the clipboard", G_CALLBACK (activate_action)
},
{ "paste", GTK_STOCK_PASTE, "_Paste", "<control>V",
   "Paste the text from the clipboard", G_CALLBACK (activate_action) },
{ "quit", GTK_STOCK_QUIT,  NULL, "<control>Q",
   "Quit the application", G_CALLBACK (gtk_main_quit) },
{ "customise-accels", NULL, "Customise _Accels", NULL,
   "Customise keyboard shortcuts", G_CALLBACK (show_accel_dialog) },
{ "toolbar-small-icons", NULL, "Small Icons", NULL,
   NULL, G_CALLBACK (toolbar_size_small) },
{ "toolbar-large-icons", NULL, "Large Icons", NULL,
   NULL, G_CALLBACK (toolbar_size_large) }
};




First three lines are for menus. In api it is stated that GtkActionEntry has
6 fields. How is that the last three of them for "Menu*Action" are skipped?
Why NULL keyword wasn't being used instead?

Thanks.




------------------------------

Message: 2
Date: Sun, 16 Oct 2005 22:05:33 +0200
From: Markus Jonsson <marjo691 student liu se>
Subject: Re: progressbar color
To: funebre < carlospam katamail com>
Cc: gtk-list gnome org
Message-ID: <1129493133 23013 8 camel alÃpha orbit>
Content-Type: text/plain; charset=utf-8

Did you look at the image I attached to my reply, it can also be found
at [1]. The image displays what I get when I compile and run your code.

cheers

[1] http://www.markus-jonsson.com/test.png

sön 2005-10-16 klockan 03:52 -0700 skrev funebre (sent by Nabble.com):
> >What version of GTK are you using?
> 2.6.7
>
> >I get result like in the image attached to this email, is this
> result
> >what you are trying to achive?
> the bigger img is a screenshot of application from code in the
> message, i'm trying to obtain a progressbar like the one in the other
> img, with the bar drawn with different color from background of
> widget
>
> ______________________________________________________________________
> Sent from the Gtk+ - General forum at Nabble.com.
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list



------------------------------

Message: 3
Date: Mon, 17 Oct 2005 11:17:07 +1000
From: Daniel Kasak < dkasak nusconsulting com au>
Subject: Re: so, is this claim about pango still true? or does nobody
       actually care?
To: Russell Shaw <rjshaw netspace net au >, gtk-list gnome org
Message-ID: <4352FB93 9000202 nusconsulting com au>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Russell Shaw wrote:

> I don't care how much tedious rendering pango does; if a gui isn't
> lightning fast on a 100MHz pentium (or 25MHz 386 for that matter),
> it's fundamentally broken in either or both design and implementation.

Oh come on!
A pentium 100?
That's what you're using, right? Sure? Really sure? I don't believe you.
Computers from that time are starting to pack it in. In fact, computers
from that time have probably *finished* packing it in.
If anyone has a pentium 100 ( or a 25MGz 386 for that matter ) still
around, it's *NOT* to run Gtk2, it's to run a firewall, DNS, etc, and it
will not have X at all.
Everyone else ( bar the occasional minimal-freak ) uses widget toolkits
designed to run on today's hardware.
God help you when XGL / Glitz arrive :)

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au


------------------------------

Message: 4
Date: Mon, 17 Oct 2005 11:59:37 +1000
From: Russell Shaw <rjshaw netspace net au>
Subject: Re: so, is this claim about pango still true? or does nobody
       actually care?
Cc: gtk-list gnome org
Message-ID: <43530589 2030909 netspace net au>
Content-Type: text/plain; charset=us-ascii; format=flowed

Daniel Kasak wrote:
> Russell Shaw wrote:
>
>> I don't care how much tedious rendering pango does; if a gui isn't
>> lightning fast on a 100MHz pentium (or 25MHz 386 for that matter),
>> it's fundamentally broken in either or both design and implementation.
>
> Oh come on!
> A pentium 100?
> That's what you're using, right? Sure? Really sure? I don't believe you.
> Computers from that time are starting to pack it in. In fact, computers
> from that time have probably *finished* packing it in.
> If anyone has a pentium 100 ( or a 25MGz 386 for that matter ) still
> around, it's *NOT* to run Gtk2, it's to run a firewall, DNS, etc, and it
> will not have X at all.

I'm using a pentium 166 as a dedicated mozilla machine among a few other
things.

> Everyone else ( bar the occasional minimal-freak ) uses widget toolkits
> designed to run on today's hardware.
> God help you when XGL / Glitz arrive :)

Well, i write a lot of stuff for embedded systems, and a full windowing
graphical widget kit for a 12MHz 8bit cpu using scaleable fonts is
entirely feasible.

There is absolutely no reason for the sluggishness of graphical toolkits
on anything faster than an old 386. Excessive layers of convoluted bloat
and poor architectural design is the problem. Rendering of arbitrary unicode
glyphs is fast and easy (unlike pango). Old laptops with 1MB video ram
should be entirely useable for web browsing with mozilla and gui
word processing.


------------------------------

Message: 5
Date: Mon, 17 Oct 2005 12:28:34 +1000
From: Russell Shaw <rjshaw netspace net au>
Subject: Re: so, is this claim about pango still true? or does nobody
       actually care?
Cc: gtk-list gnome org
Message-ID: <43530C52 5040606 netspace net au>
Content-Type: text/plain; charset=us-ascii; format=flowed

Russell Shaw wrote:
> Daniel Kasak wrote:
>
>> Russell Shaw wrote:
...
> I'm using a pentium 166 as a dedicated mozilla machine among a few other
> things.

Correction: 266MHz (with 64MB ram)

But that is very sluggish because of ram swapping when running mozilla.

In a typical gtk window with a dozen widgets in it, dragging the lower
right corner to resize the window shows a very sluggish iterative loop
of repositioning/resizing all the widgets, on a 2.4GHz AMD athlon.

I think the video card is unaccelerated in dual-head mode that i have.
However, even if unaccelerated, a well designed system should still be
lightning fast. You'd expect this if every individual pixel was retrieved
from the X server, alpha-composited, then written back.


------------------------------

Message: 6
Date: Mon, 17 Oct 2005 03:39:37 -0700 (PDT)
From: "funebre (sent by Nabble.com)" <lists nabble com>
Subject: Re: progressbar color
To: gtk-list gnome org
Message-ID: <1139028 post talk nabble com>
Content-Type: text/plain; charset="us-ascii"


argh! the green statusbar in your image is the result i'm trying to archive, but differs from result on my pc... I presume is a platform configuration problem.... any tip?
thanks for your support!
--
Sent from the Gtk+ - General forum at Nabble.com:
http://www.nabble.com/progressbar-color-t410005.html#a1139028
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /archives/attachments/20051017/f0e48d85/attachment.htm

------------------------------

Message: 7
Date: Mon, 17 Oct 2005 12:55:38 +0200
From: Markus Jonsson <marjo691 student liu se>
Subject: Re: progressbar color
To: funebre <carlospam katamail com >
Cc: gtk-list gnome org
Message-ID: <1129546538 29875 2 camel alÃpha orbit>
Content-Type: text/plain; charset=utf-8

Don't know really.. I'm running gkt+-2.8.6 and the clearlooks engine.
maybe that the engine does it, but it should work in gtk+-2.6.

mån 2005-10-17 klockan 03:39 -0700 skrev funebre (sent by Nabble.com):
> argh! the green statusbar in your image is the result i'm trying to
> archive, but differs from result on my pc... I presume is a platform
> configuration problem.... any tip?
> thanks for your support!
>
> ______________________________________________________________________
> Sent from the Gtk+ - General forum at Nabble.com.
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list


------------------------------

Message: 8
Date: Mon, 17 Oct 2005 13:32:38 +0100 (GMT Daylight Time)
From: Nick Soffe <nick soffe bioch ox ac uk>
Subject: Re: progressbar color
To: funebre <carlospam katamail com>
Cc: gtk-list gnome org
Message-ID: < Pine WNT 4 33 0510171326530 -263301 nmrpc bioch ox ac uk>
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,
I think I encountered this problem some time ago (should be in this list's
archives somewhere) and in my case it was related to the theme engine. I
was using the FC3 bluecurve theme at the time which I think uses a pixmap
for the progress bar. This was overriding my chosen color. When I changed
to another theme the problem disappeared.
Nick



On Mon, 17 Oct 2005, funebre (sent by Nabble.com) wrote:

>
> argh! the green statusbar in your image is the result i'm trying to archive, but differs from result on my pc... I presume is a platform configuration problem.... any tip?
> thanks for your support!
> --
> Sent from the Gtk+ - General forum at Nabble.com:
> http://www.nabble.com/progressbar-color-t410005.html#a1139028
>



------------------------------

Message: 9
Date: Mon, 17 Oct 2005 11:10:33 +0200
From: Emmanuel Briot <briot adacore com>
Subject: Re: so, is this claim about pango still true? or does nobody
       actually care?
To: Federico Mena Quintero <federico ximian com>
Cc: gtk-list gnome org, paul linuxaudiosystems com
Message-ID: <43536A89 3040104 adacore com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed



Federico Mena Quintero wrote:
> Many people care.  The problem is that up until now, we have not had
> good/friendly tools to profile complex apps like GNOME's.  Now that we
> have them, we can do something about our performance problems.

I have read your very interesting blog, but haven't found out what tools
you are using to profile an application. I would love to use them on my
own tools using gtk+!

regards
Emmanuel



------------------------------

Message: 10
Date: Mon, 17 Oct 2005 10:53:26 -0500
From: Federico Mena Quintero <federico ximian com>
Subject: Re: so, is this claim about pango still true? or does  nobody
       actually care?
To: Emmanuel Briot <briot adacore com>
Cc: gtk-list gnome org, paul linuxaudiosystems com
Message-ID: <1129564407 12292 27 camel cacharro xalalinux org>
Content-Type: text/plain

On Mon, 2005-10-17 at 11:10 +0200, Emmanuel Briot wrote:

> I have read your very interesting blog, but haven't found out what tools
> you are using to profile an application. I would love to use them on my
> own tools using gtk+!

So far I've only been using Sysprof:

       http://primates.ximian.com/~federico/news-2005-07.html#26

Federico



------------------------------

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


End of gtk-list Digest, Vol 18, Issue 22
****************************************



--
Bye,

Lalit Kumar
Project Engineer
GIST R & D, C-DAC
Pune
M- 9881209069

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]