Re: The Future?

2019-03-10 Thread Daniel Kasak via gtk-list
On Mon, Mar 11, 2019 at 7:54 AM Jerome Flesch  wrote:

> Le 2019-03-10 12:01, Kasper Peeters a écrit :
> >> 1. GTK is not so cross-platform anymore: on Windows and macOS, you
> >> are supposed to build your own library binaries (gvsbuild for Windows
> >> and jhbuild for macOS exist, but are not foolproof).
> >
> > That's definitely not true; on Windows there's vcpkg and on macOS
> > there is Homebrew; both let you install reasonably up-to-date versions
> > of GTK3 with a single command line.
>
> For Windows, there is also Msys2 ( https://www.msys2.org/ ). It may be
> more handy for porting applications from Linux to Windows. This is what
> I intend to use to build the next versions of Paperwork (
> https://openpaper.work ) for Windows.
>
>
I've also had extreme difficulty in the past with deploying on Windows. Not
being a ( proficient ) C developer, and not having experience with building
on Windows didn't help. I've toyed with broadway ( including writing an
authentication layer, app launcher and transparent proxy ) for giving
Windows users a relatively painless way of accessing apps, though was
discouraged from this by statements of broadway being experimental and
probably not making it through the gtk-4 work. More recently this may have
changed ( there were a bunch of commits to broadway stuff for gtk-4 ),
though from a user perspective there are still some bits missing. I've
recently ( last year or so ) switched to deploying with Flatpak, and this
has worked astonishingly well. In particular, Alexander Larsson's work:
 - https://blogs.gnome.org/alexl/2018/09/17/flatpak-on-windows/
 - https://github.com/flatpak/flatpak/tree/wip/WSL
  ... has given us a very easy path for at least bringing up our apps on
Windows. You still need an X Server ( I use MobaXterm, though I assume we
could build and package an X server too? ). The only thing that hasn't
worked out-of-the-box for us has been maximising windows. This is a bit
nasty, but with some hacks to save + restore window geometry, it's not a
deal-breaker. Keep in mind we haven't done a production deployment yet (
luckily all clients recently have been fine with running Linux ), but I've
done a reasonable amount ( many hours ) of testing and only found this 1
issue.

I would suggest people who need windows binaries check out the Flatpak
angle.

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


Re: GtkStack, builder and hidden objects

2019-02-19 Thread Daniel Kasak via gtk-list
Hi Emmanuele. Thanks for the response.

No, I checked for that ... the only thing like it is when I construct the
stack *switcher*:

$self->{main_stack} = $self->{builder}->get_object( "main_stack" );
$self->{main_stack_switcher} = Gtk3::StackSwitcher->new();
$self->{main_stack_switcher}->set_stack( $self->{main_stack} );
$self->{builder}->get_object( 'HeaderBar' )->pack_end(
$self->{main_stack_switcher} );
$self->{main_stack_switcher}->show;

 ... which I do in code because there are other things that are packed into
the header bar by code.

Dan

On Tue, Feb 19, 2019 at 11:22 PM Emmanuele Bassi  wrote:

> Hi;
>
> Are you calling gtk_widget_show_all() on the Stack or Notebook, at any
> point?
>
> If you call show_all() on a container, all children will be marked as
> visible; you need to use gtk_widget_set_no_show_all() if you don't want
> this behaviour.
>
> Ciao,
>  Emmanuele.
>
> On Tue, 19 Feb 2019 at 12:14, Daniel Kasak via gtk-list <
> gtk-list@gnome.org> wrote:
>
>> Hi all.
>>
>> I'm using glade to lay out my UIs. I've just noticed after porting some
>> things that used GtkNotebook to GtkStack that objects that I've set as
>> *not* visible ( in glade, select the object, go to the 'common' page, go to
>> 'widget flags' and de-select 'Visible' ) are in fact visible. It seems like
>> GtkStack is calling 'show all' on the widget tree.
>>
>> Is this intended behaviour? I would expect my 'Visible' flag to be
>> honoured, though I can see how this would be extra work.
>>
>> For now, I've hooked up some code to re-hide my hidden widgets when the
>> GtkStack's 'set-focus-child' event fires.
>>
>> Dan
>> ___
>> gtk-list mailing list
>> gtk-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/gtk-list
>>
>
>
> --
> https://www.bassi.io
> [@] ebassi [@gmail.com]
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


GtkStack, builder and hidden objects

2019-02-19 Thread Daniel Kasak via gtk-list
Hi all.

I'm using glade to lay out my UIs. I've just noticed after porting some
things that used GtkNotebook to GtkStack that objects that I've set as
*not* visible ( in glade, select the object, go to the 'common' page, go to
'widget flags' and de-select 'Visible' ) are in fact visible. It seems like
GtkStack is calling 'show all' on the widget tree.

Is this intended behaviour? I would expect my 'Visible' flag to be
honoured, though I can see how this would be extra work.

For now, I've hooked up some code to re-hide my hidden widgets when the
GtkStack's 'set-focus-child' event fires.

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


Re: Python- Modal Window

2018-12-10 Thread Daniel Kasak via gtk-list
On Tue, Dec 11, 2018 at 6:36 AM J.Arun Mani via gtk-list 
wrote:

> Hello,
> I'm making a Python3 powered project which opens whenever someone opens
> their computer (assume Linux-Debain based) and asks them some details. The
> user should not be allowed to use the computer without giving the details.
> The project is based on GTK3 and is for Debian based OS. I need help in the
> following-
> How can I make the application modal? That is, make sure that the user
> cannot access any thing in desktop without giving the details (the
> application is a compulsory one, thus one should not be able to close or
> minimise it).
>
> I researched on this a bit and found the answers leading to Desktop
> Managers. But I'm stuck how to start with them using Python. So need some
> help here.
>
> Thank You
> J. Arun Mani
>

The easiest way I can see to do this is to have your computer set up to
auto-login ( eg maybe something along the lines of
https://askubuntu.com/questions/175248/how-to-autologin-without-entering-username-and-passwordin-text-mode
) ... and then have it start X automatically ... but with a ~/.xinitrc that
launches *just* your python app, instead of a window manager. Then if the
user has done what's needed, you'd have your app launch a window manager.
I'd do it like this because once a window manager is running, you don't
have a reliable way of preventing users from escaping your app. Maybe there
is a better way?

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


Re: GtkTextView and undo/redo

2018-11-28 Thread Daniel Kasak via gtk-list
On Thu, Nov 29, 2018 at 4:00 AM Igor Korot via gtk-list 
wrote:

> Hi, ALL,
> I'm surprised that there is no Undo/Redo functionality inside GtkTextView.
> Or maybe I'm looking at the wrong class and Undo/Redo is in a different
> one?
>
> Thank you.
>

There's no undo/redo facility in GtkTextView, now. If you can pull in an
external lib, GtkSourceView has undo/redo facility, and can otherwise be
used as a drop-in replacement for GttkTextView ( at least in my cases ).

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


Signal for treeview column changing size

2018-09-19 Thread Daniel Kasak via gtk-list
Hi all. Is there a signal for when a treeview column is resized? I don't
see anything on:

- https://developer.gnome.org/gtk3/stable/GtkTreeViewColumn.html ( or up
the object hierarchy - which gives permissions denied errors, by the way ),
or
- https://developer.gnome.org/gtk3/stable/GtkCellRenderer.html

I'm not 100% on top of which object type I should be looking at in this
case.

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


Re: Broken link in docs - GdkEventMask

2017-11-04 Thread Daniel Kasak
Hey Eric. Yours is looking nice :) At the moment, I'm just drawing
rectangular bars in my graphs:
http://tesla.duckdns.org/downloads/screenshot.jpg

I'm not on top of the maths required for nice curvy lines at this point,
but I should read up on it. There have been more pressing issues to deal
with up to this point. Anyway I'll check out your project - thanks for the
link :)

Dan

On Sat, Nov 4, 2017 at 12:23 PM,  wrote:

>
>
> Hi Dan,
>
> A little aside here. I put together a multigraph widget. Works better than
> my last attempt at drawing many graphs in one drawing area.
>
> https://github.com/cecashon/OrderedSetVelociRaptor/tree/
> master/Misc/MultiGraph
>
> Yep, a lot of linear equations and loops. Cairo can draw fast so it does
> well. Better than I thought it would. Haven't captured any kwh with it
> though. Haven't figured out how to do Perl bindings yet either. Some fun
> with graphs.
>
> Eric
>
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Broken link in docs - GdkEventMask

2017-11-02 Thread Daniel Kasak
Thanks Emmanuele :)

On Fri, Nov 3, 2017 at 9:00 AM, Emmanuele Bassi  wrote:

> On 2 November 2017 at 21:46, Daniel Kasak  wrote:
> > Hi all.
> >
> > On the page: https://developer.gnome.org/gtk3/stable/GtkWidget.html#
> gtk-widget-add-events
> >  ... the link for GdkEventMask points to:
> > https://developer.gnome.org/gtk3/gdk4/gdk4-Events.html#GdkEventMask
> > ... which doesn't exist.
>
> Yes, that's a known gtk-doc issue with the developer.gnome.org
> scripts; the actual page is:
>
>   https://developer.gnome.org/gdk3/stable/gdk3-Events.html#GdkEventMask
>
> You probably want to install DevHelp and have the documentation
> locally, instead of using the website.
>
> > Could anyone point me to some docs that would help me understand what
> > I pass to gtk_widget_add_events? I have some ( perl ) code that I was
> > given in the gtk-perl list to add some events for catching mouse
> > events:
> >
> > $drawing_area->add_events(0x004|0x100|0x200);
>
> > This works, but:
> >  a) I don't know where these values are coming from and what they are
> >  b) I'd like to also catch mouse wheel events now
> >
> > Any tips?
>
> This is a gtk-perl-list question, really. The Perl bindings for GLib
> typically use strings, not an enumeration, for flags; see:
>
>   http://gtk2-perl.sourceforge.net/doc/pod/Glib.html#PERL_VERSUS_C
>
> the section about flags. So if you want to handle pointer events, you
> want to use:
>
>   [ "button-press-mask", "button-release-mask" ]
>
> and if you want to get scrolling events, you want to add "scroll-mask"
> and "smooth-scroll-mask".
>
> 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


Broken link in docs - GdkEventMask

2017-11-02 Thread Daniel Kasak
Hi all.

On the page: 
https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-add-events
 ... the link for GdkEventMask points to:
https://developer.gnome.org/gtk3/gdk4/gdk4-Events.html#GdkEventMask
... which doesn't exist.

Could anyone point me to some docs that would help me understand what
I pass to gtk_widget_add_events? I have some ( perl ) code that I was
given in the gtk-perl list to add some events for catching mouse
events:

$drawing_area->add_events(0x004|0x100|0x200);

This works, but:
 a) I don't know where these values are coming from and what they are
 b) I'd like to also catch mouse wheel events now

Any tips?

Thanks :)

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


Re: How to get a "traditional" file-chooser

2017-09-14 Thread Daniel Kasak
Come on. It's troll bait. He comes to a gtk+ list, declaring his
preference upfront to not use gtk3 because the "file chooser is
driving me crazy". In what why is the file chooser driving him crazy?
Unknown - other than it not looking like GTK2 or qt ( unknown version
) file chooser. Just wondering: what apps use a file chooser anyway?
He didn't mention that either. There's gedit and glade ( I'm guessing
he's not using glade ). He does mention that "more and more
applications of my desktop are ( being ) ported to GTK3". I'm again
wondering which applications. If you're on Gnome or Cinnamon or
whatever, you get *all* GTK3 apps, not a mix  Doesn't add up to me.
Anyway, would you like to tease more information out of Clemens
regarding what parts of the file chooser is driving him crazy? In the
meantime, I stand by my recommendation. If someone passionately hates
parts of a gui toolkit, they should use apps written in a different
toolkit. If, on the other hand, they have a serious intention to use
gtk3, then constructive observations / suggestions / feature requests
would have been included, and things like "drive me crazy" and "I
tried to avoid GTK3 applications" would not. Quick comparison ... I
don't use QT apps when I have a choice either ... I prefer GTK apps. I
like GTK's default theme better, and I also develop GTK apps. I like
some consistency on my desktop, so once there's a critical mass of
apps using 1 toolkit, I try to have all apps using that toolkit.
That's personal choice. However, note that I don't rock up to QT
mailing lists declaring "Hey there donkeys ... I've tried really hard
not to use QT because I think the calendar widget looks like arse. How
about you make it more like GTK3?".

On Fri, Sep 15, 2017 at 9:43 AM, Paul Davis  wrote:
> Now that was surely helpful.
>
> On Thu, Sep 14, 2017 at 6:48 PM, Daniel Kasak 
> wrote:
>>
>> Of course there is. Use GTK2 or QT apps. I suggest Redhat 5. That shit
>> is old school.
>>
>> On Fri, Sep 15, 2017 at 4:22 AM, Clemens Eisserer 
>> wrote:
>> > Hi,
>> >
>> > Until recently I tried to avoid GTK3 applications, because the GTK3's
>> > file chooser is driving me crazy.
>> > However, as more and more applications of my desktop environment are
>> > ported to GTK3, I wonder ... is there any way, to get a more
>> > traditional file chooser for GTK3 applications which resembles what
>> > GTK2 or QT offer?
>> >
>> > Thank you in advance, Clemens
>> > ___
>> > gtk-list mailing list
>> > gtk-list@gnome.org
>> > https://mail.gnome.org/mailman/listinfo/gtk-list
>> ___
>> gtk-list mailing list
>> gtk-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/gtk-list
>
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: How to get a "traditional" file-chooser

2017-09-14 Thread Daniel Kasak
Of course there is. Use GTK2 or QT apps. I suggest Redhat 5. That shit
is old school.

On Fri, Sep 15, 2017 at 4:22 AM, Clemens Eisserer  wrote:
> Hi,
>
> Until recently I tried to avoid GTK3 applications, because the GTK3's
> file chooser is driving me crazy.
> However, as more and more applications of my desktop environment are
> ported to GTK3, I wonder ... is there any way, to get a more
> traditional file chooser for GTK3 applications which resembles what
> GTK2 or QT offer?
>
> Thank you in advance, Clemens
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Broken link in online docs - GdkRGBA

2017-07-05 Thread Daniel Kasak
Hi all.

At 
https://developer.gnome.org/gtk3/stable/GtkColorButton.html#GtkColorButton--rgba
there is a broken link for GdkRGBA.

I guess it should be:
https://developer.gnome.org/gdk3/stable/gdk3-RGBA-Colors.html

 ... but is:
https://developer.gnome.org/gtk3/gdk4/gdk4-RGBA-Colors.html#GdkRGBA

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


Re: GTK+ with Broadway.

2017-04-09 Thread Daniel Kasak
I'm guessing this functionality is not implemented, and that there are
no plans to implement it.

Dan

On Thu, Mar 30, 2017 at 11:42 PM, Igor D  wrote:
> Hi,
>
> I'm trying to change the cursor when it is over certain widget and do not
> succeed to do that
> when I'm working with GTK+ via Broadway. Without Broadway it works
> perfectly.
> Somebody knows about limitation for this case ?
>
> Thanks,
> Igor
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Combobox and columns

2017-04-02 Thread Daniel Kasak
This bit is a little non-obvious. The related documentation is:
https://developer.gnome.org/gtk3/stable/GtkCellLayout.html#gtk-cell-layout-set-attributes

So you can pass various attributes into the renderer / cell layout /
whatever. I'm still slightly confused by it, but I can make it work :)

In perl, I have a convenience method for setting up renderers for
combos with multi-column models:

---

sub create_combo_renderers {

my ( $self, $widget, $text_column, $icon_column ) = @_;

if ( $icon_column ) {
my $renderer = Gtk3::CellRendererPixbuf->new;
$widget->pack_start( $renderer, FALSE );
$widget->set_attributes( $renderer, pixbuf => $icon_column );
}

my $renderer = Gtk3::CellRendererText->new;
$widget->pack_start( $renderer, FALSE );
$widget->set_attributes( $renderer, text => $text_column );

}

---

It's the last line:
$widget->set_attributes( $renderer, text => $text_column );
 ... that tells the renderer / cell layout which column to use.

Dan


On Mon, Apr 3, 2017 at 8:33 AM, Eric Cashon via gtk-list
 wrote:
> Hi Axel,
>
> How do you want to change the list column combo in your program?
>
> If you use a combo2 box row to change a combo1 box column from a list you
> might have a "changed" callback that looks something like the following.
>
> Eric
>
> ...
> GtkCellRenderer *renderer=NULL;
> ...
> renderer=gtk_cell_renderer_text_new();
> ...
> static void change_column(GtkComboBox *combo2, GtkComboBox *combo1)
>   {
> gint row=gtk_combo_box_get_active(combo2);
> gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(combo1),
> GTK_CELL_RENDERER(renderer), "text", row, NULL);
> gtk_widget_queue_draw(GTK_WIDGET(combo1));
>   }
>
>
>
> -Original Message-
> From: axel 
> To: gtk-list 
> Sent: Sun, Apr 2, 2017 6:39 am
> Subject: Combobox and columns
>
> Have a liststore with 4 columns. And a combobox with a cellrenderer.
> UI made with Glade. Programm is written in C.
>
> How to choose one of the columns out of the liststore to use/show in the
> combobox?
> I can set in Glade the actual column but I need it to be done on runtime.
>
>
>
> Cheers,
> Axel
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Tooltip for GtkTextView contents

2017-02-21 Thread Daniel Kasak
Thanks for the response. It came down to a simple logic error. In this code:

my $start_iter;

if ( $iter->starts_word ) {
$start_iter = $iter;
} else {
$iter->backward_word_start;
$start_iter = $iter;
}

$iter->forward_word_end;

 ... I set $start_iter to be $iter. This *doesn't* make a copy of the
iter ... so when I call $iter->backward_word_start or
$iter->forward_word_end ... both $start_iter and $iter are pointing to
the same position. The correct method of getting 2 iters ( eg for
'start' and 'end' ) is to create them independently.

Dan

On Sat, Feb 18, 2017 at 6:51 AM,   wrote:
>
> Hi Dan,
>
> I am not very good with Perl but it looks like the iters aren't getting
> moved forward and backwards on the word the cursor is over. In C, the
> callback would look something like
>
> static gboolean query_tooltip(GtkWidget *textview, gint x, gint y, gboolean
> keyboard_mode, GtkTooltip *tooltip, gpointer user_data)
>   {
> GtkTextIter start_iter;
> GtkTextIter end_iter;
> GtkTextBuffer *buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview));
> gtk_text_view_get_iter_at_location(GTK_TEXT_VIEW(textview), &end_iter,
> x, y);
> if(gtk_text_iter_inside_word(&end_iter))
>   {
> start_iter=end_iter;
> gtk_text_iter_forward_word_end(&end_iter);
> gtk_text_iter_backward_word_start(&start_iter);
> gchar *string=gtk_text_buffer_get_text(buffer, &start_iter,
> &end_iter, TRUE);
> gtk_tooltip_set_text(tooltip, string);
> g_free(string);
> return TRUE;
>   }
> return FALSE;
>   }
>
> Should be similar in Perl, right?
>
> Eric
>
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Tooltip for GtkTextView contents

2017-02-16 Thread Daniel Kasak
Also should note - the detection of whether the pointer is over a word
or not ( $iter->inside_word ) *is* working correctly ... as my app
appears to be returning correctly when I'm pointing at whitespace. It
just prints blank lines when I point at some text.

Dan

On Fri, Feb 17, 2017 at 3:50 PM, Daniel Kasak  wrote:
> Hi all.
>
> I'd like to provide help on special text ( tokens in code ) in a
> GtkSourceView / GtkTextView. I see my question is basically:
> https://mail.gnome.org/archives/gtk-list/2010-May/msg00107.html
>
>  ... and the important part of the response to this question was:
>
> "Simply set text view's "has-tooltip" property to "TRUE" and connect handler 
> to
> "query-tooltip" signal. Use coordinates provided by callback to find
> the word that cursor hovers over and then do the lookup. I think
> things should be relatively simple."
>
> So I've done attempted this in Perl:
>
> ---
>
> sub on_PARAM_VALUE_query_tooltip {
>
> my ( $self, $sourceview, $window_x, $window_y, $keyboard_mode,
> $tooltip ) = @_;
>
> my ( $buffer_x, $buffer_y ) = $sourceview->window_to_buffer_coords
> ( 'GTK_TEXT_WINDOW_TEXT', $window_x, $window_y );
>
> my ( $trailing, $iter ) = $sourceview->get_iter_at_position(
> $buffer_x, $buffer_y );
>
> if ( ! $iter->inside_word ) {
> return FALSE;
> }
>
> my $start_iter;
>
> if ( $iter->starts_word ) {
> $start_iter = $iter;
> } else {
> $iter->backward_word_start;
> $start_iter = $iter;
> }
>
> $iter->forward_word_end;
>
> my $text = $sourceview->get_buffer->get_text( $start_iter, $iter, 1 );
>
> print "$text\n";
>
> }
>
> ---
>
> This code runs, produces iters where expected, but then never gets any text.
>
> What have I done wrong?
>
> Thanks :)
>
> Dan
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Tooltip for GtkTextView contents

2017-02-16 Thread Daniel Kasak
Hi all.

I'd like to provide help on special text ( tokens in code ) in a
GtkSourceView / GtkTextView. I see my question is basically:
https://mail.gnome.org/archives/gtk-list/2010-May/msg00107.html

 ... and the important part of the response to this question was:

"Simply set text view's "has-tooltip" property to "TRUE" and connect handler to
"query-tooltip" signal. Use coordinates provided by callback to find
the word that cursor hovers over and then do the lookup. I think
things should be relatively simple."

So I've done attempted this in Perl:

---

sub on_PARAM_VALUE_query_tooltip {

my ( $self, $sourceview, $window_x, $window_y, $keyboard_mode,
$tooltip ) = @_;

my ( $buffer_x, $buffer_y ) = $sourceview->window_to_buffer_coords
( 'GTK_TEXT_WINDOW_TEXT', $window_x, $window_y );

my ( $trailing, $iter ) = $sourceview->get_iter_at_position(
$buffer_x, $buffer_y );

if ( ! $iter->inside_word ) {
return FALSE;
}

my $start_iter;

if ( $iter->starts_word ) {
$start_iter = $iter;
} else {
$iter->backward_word_start;
$start_iter = $iter;
}

$iter->forward_word_end;

my $text = $sourceview->get_buffer->get_text( $start_iter, $iter, 1 );

print "$text\n";

}

---

This code runs, produces iters where expected, but then never gets any text.

What have I done wrong?

Thanks :)

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


Re: GTK+ with Broadway

2016-12-05 Thread Daniel Kasak
Yes it is. Do something like:

ssh -C -L 1:127.0.0.1:1 me@remote_broadway_server

I also posted recently on a way to get multiplexed connections and
SSL/TLS termination:
https://tesla.duckdns.org/transparent-proxy-for-broadway-gtk3-html5-backend/

I'm trying to make some time to implement a complete solution, with an
authentication+cookie database and configurable redirection ( ie to
multiple broadway applications ), but free time is hard to come by.

Dan

On Tue, Dec 6, 2016 at 2:01 AM, Igor D  wrote:
> Hi,
>
> Is it possible to forward connection from web browser to Broadway display
> server via SSH ?
>
> Thanks,
> Igor
>
> On Tue, Nov 29, 2016 at 12:15 PM, Daniel Kasak 
> wrote:
>>
>> Unfortunately, no there is no way to do this. *If* copy + paste were
>> implemented between a broadway app and the browser, then you could at
>> least push a link to a file to download into the browser, and the user
>> could copy it and paste it into a new tab. Anyway, copy + paste is not
>> implemented yet ( Hi devs ... if this is easy, it would be pretty
>> damned handy ).
>>
>> I haven't had to do anything like this yet, but if I had to tomorrow,
>> I'd get users to enter an email address in a config screen, and I'd
>> email documents or links to downloads to them. Not ideal, I know.
>>
>> Dan
>>
>> On Tue, Nov 29, 2016 at 7:31 PM, Igor D  wrote:
>> > Hi,
>> >
>> > I'm working with GTK+ via Broadway.
>> > I need to upload and save some file on local computer (which run
>> > browser).
>> > Can I do in this mode that and how ?
>> >
>> > Thanks,
>> > Igor
>> >
>> > On Thu, Oct 13, 2016 at 3:10 PM, Igor D  wrote:
>> >>
>> >> Hi Dan,
>> >>
>> >> I don't need real time graphing or something like that. It should work
>> >> only after triggers from user.
>> >>
>> >> I don't remember exactly which feature was missed. I'll recheck.
>> >>
>> >> Your inputs are optimistic :-)
>> >>
>> >> Thanks a lot for the help.
>> >> Igor
>> >>
>> >>
>> >>
>> >> On Thu, Oct 13, 2016 at 2:04 PM, Daniel Kasak 
>> >> wrote:
>> >>>
>> >>> On Thu, Oct 13, 2016 at 5:31 PM, Igor D  wrote:
>> >>>
>> >>> > Hi,
>> >>> >
>> >>> > Thanks for prompt reply.
>> >>> >
>> >>> > Yes, I have couple of specific concerns:
>> >>> > 1. Performance. I'm not looking for something special but expect
>> >>> > something
>> >>> > reasonable. My few experiments show
>> >>> > that performance may be too low.
>> >>>
>> >>> I haven't seen bad performance in terms of user experience, though I
>> >>> have noticed high CPU usage in the broadwayd process(es). My very
>> >>> rough guess is that you can support somewhere between 2-3 times the
>> >>> number of active users as CPU cores on your system before users start
>> >>> to notice. I've never done any stress-testing to see what exactly
>> >>> would happened if you pushed this limit. I guess if you're trying to
>> >>> deliver to more users than this model supports, you're entering "real"
>> >>> web-app development. Out of interest, what kind of applications are
>> >>> you considering distributing?
>> >>>
>> >>> It will depend a lot on what your app is doing I guess. Real-time
>> >>> graphing or apps where there is constant rendering happening ( eg text
>> >>> flying past in a log viewer ) will consume a lot more CPU than an app
>> >>> that sits still and waits for a user to do something.
>> >>>
>> >>> I've also noticed that broadway gives a much better experience than
>> >>> VNC. VNC is laggy and has rendering glitches. Broadway is pretty
>> >>> impressive under conditions where VNC degrades badly.
>> >>>
>> >>> > 2. Reduced feature set, comparing to GTK without broadway. I found
>> >>> > few
>> >>> > minor
>> >>> > differences but this makes me afraid that it might be more.
>> >>>
>> >>> I haven't noticed any reduced features at all. You may have to set
>> >>> some environment variables to act

Re: GTK+ with Broadway

2016-11-29 Thread Daniel Kasak
Unfortunately, no there is no way to do this. *If* copy + paste were
implemented between a broadway app and the browser, then you could at
least push a link to a file to download into the browser, and the user
could copy it and paste it into a new tab. Anyway, copy + paste is not
implemented yet ( Hi devs ... if this is easy, it would be pretty
damned handy ).

I haven't had to do anything like this yet, but if I had to tomorrow,
I'd get users to enter an email address in a config screen, and I'd
email documents or links to downloads to them. Not ideal, I know.

Dan

On Tue, Nov 29, 2016 at 7:31 PM, Igor D  wrote:
> Hi,
>
> I'm working with GTK+ via Broadway.
> I need to upload and save some file on local computer (which run browser).
> Can I do in this mode that and how ?
>
> Thanks,
> Igor
>
> On Thu, Oct 13, 2016 at 3:10 PM, Igor D  wrote:
>>
>> Hi Dan,
>>
>> I don't need real time graphing or something like that. It should work
>> only after triggers from user.
>>
>> I don't remember exactly which feature was missed. I'll recheck.
>>
>> Your inputs are optimistic :-)
>>
>> Thanks a lot for the help.
>> Igor
>>
>>
>>
>> On Thu, Oct 13, 2016 at 2:04 PM, Daniel Kasak 
>> wrote:
>>>
>>> On Thu, Oct 13, 2016 at 5:31 PM, Igor D  wrote:
>>>
>>> > Hi,
>>> >
>>> > Thanks for prompt reply.
>>> >
>>> > Yes, I have couple of specific concerns:
>>> > 1. Performance. I'm not looking for something special but expect
>>> > something
>>> > reasonable. My few experiments show
>>> > that performance may be too low.
>>>
>>> I haven't seen bad performance in terms of user experience, though I
>>> have noticed high CPU usage in the broadwayd process(es). My very
>>> rough guess is that you can support somewhere between 2-3 times the
>>> number of active users as CPU cores on your system before users start
>>> to notice. I've never done any stress-testing to see what exactly
>>> would happened if you pushed this limit. I guess if you're trying to
>>> deliver to more users than this model supports, you're entering "real"
>>> web-app development. Out of interest, what kind of applications are
>>> you considering distributing?
>>>
>>> It will depend a lot on what your app is doing I guess. Real-time
>>> graphing or apps where there is constant rendering happening ( eg text
>>> flying past in a log viewer ) will consume a lot more CPU than an app
>>> that sits still and waits for a user to do something.
>>>
>>> I've also noticed that broadway gives a much better experience than
>>> VNC. VNC is laggy and has rendering glitches. Broadway is pretty
>>> impressive under conditions where VNC degrades badly.
>>>
>>> > 2. Reduced feature set, comparing to GTK without broadway. I found few
>>> > minor
>>> > differences but this makes me afraid that it might be more.
>>>
>>> I haven't noticed any reduced features at all. You may have to set
>>> some environment variables to activate things like gtk+ themes and
>>> icon packs, but I haven't found anything with broadway that doesn't
>>> work as I expect from a regular X11 experience. What differences have
>>> you seen? If it's just things like icon packs, it might be worth
>>> documenting what's needed to get on-par with X11.
>>>
>>> Dan
>>>
>>> >
>>> > Thanks,
>>> > Igor
>>> >
>>> > On Thu, Oct 13, 2016 at 1:21 AM, Daniel Kasak 
>>> > wrote:
>>> >>
>>> >> I've been using it on+off for a couple of years. As far as widget
>>> >> toolkit functionality goes, it's a stable platform for me. Security is
>>> >> not handled by broadway, except for basic password authentication ( 1
>>> >> password per linux user who runs broadway apps ). I posted on this
>>> >> topic a little while back:
>>> >>
>>> >>
>>> >> http://tesla.duckdns.org/transparent-proxy-for-broadway-gtk3-html5-backend/
>>> >>
>>> >> Are you after some info in particular?
>>> >>
>>> >> Dan
>>> >>
>>> >> On Thu, Oct 13, 2016 at 5:49 AM, Igor D  wrote:
>>> >> > Hi,
>>> >> >
>>> >> > I wonder if someone have practical experience with GTK+ with
>>> >> > Broadway.
>>> >> > I'll be glad to have feedback.
>>> >> >
>>> >> > Thanks
>>> >> > Igor
>>> >> >
>>> >> > ___
>>> >> > gtk-list mailing list
>>> >> > gtk-list@gnome.org
>>> >> > https://mail.gnome.org/mailman/listinfo/gtk-list
>>> >> >
>>> >
>>> >
>>
>>
>
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK+ with Broadway

2016-10-13 Thread Daniel Kasak
On Thu, Oct 13, 2016 at 5:31 PM, Igor D  wrote:

> Hi,
>
> Thanks for prompt reply.
>
> Yes, I have couple of specific concerns:
> 1. Performance. I'm not looking for something special but expect something
> reasonable. My few experiments show
> that performance may be too low.

I haven't seen bad performance in terms of user experience, though I
have noticed high CPU usage in the broadwayd process(es). My very
rough guess is that you can support somewhere between 2-3 times the
number of active users as CPU cores on your system before users start
to notice. I've never done any stress-testing to see what exactly
would happened if you pushed this limit. I guess if you're trying to
deliver to more users than this model supports, you're entering "real"
web-app development. Out of interest, what kind of applications are
you considering distributing?

It will depend a lot on what your app is doing I guess. Real-time
graphing or apps where there is constant rendering happening ( eg text
flying past in a log viewer ) will consume a lot more CPU than an app
that sits still and waits for a user to do something.

I've also noticed that broadway gives a much better experience than
VNC. VNC is laggy and has rendering glitches. Broadway is pretty
impressive under conditions where VNC degrades badly.

> 2. Reduced feature set, comparing to GTK without broadway. I found few minor
> differences but this makes me afraid that it might be more.

I haven't noticed any reduced features at all. You may have to set
some environment variables to activate things like gtk+ themes and
icon packs, but I haven't found anything with broadway that doesn't
work as I expect from a regular X11 experience. What differences have
you seen? If it's just things like icon packs, it might be worth
documenting what's needed to get on-par with X11.

Dan

>
> Thanks,
> Igor
>
> On Thu, Oct 13, 2016 at 1:21 AM, Daniel Kasak 
> wrote:
>>
>> I've been using it on+off for a couple of years. As far as widget
>> toolkit functionality goes, it's a stable platform for me. Security is
>> not handled by broadway, except for basic password authentication ( 1
>> password per linux user who runs broadway apps ). I posted on this
>> topic a little while back:
>>
>> http://tesla.duckdns.org/transparent-proxy-for-broadway-gtk3-html5-backend/
>>
>> Are you after some info in particular?
>>
>> Dan
>>
>> On Thu, Oct 13, 2016 at 5:49 AM, Igor D  wrote:
>> > Hi,
>> >
>> > I wonder if someone have practical experience with GTK+ with Broadway.
>> > I'll be glad to have feedback.
>> >
>> > Thanks
>> > Igor
>> >
>> > ___
>> > gtk-list mailing list
>> > gtk-list@gnome.org
>> > https://mail.gnome.org/mailman/listinfo/gtk-list
>> >
>
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK+ with Broadway

2016-10-12 Thread Daniel Kasak
I've been using it on+off for a couple of years. As far as widget
toolkit functionality goes, it's a stable platform for me. Security is
not handled by broadway, except for basic password authentication ( 1
password per linux user who runs broadway apps ). I posted on this
topic a little while back:
http://tesla.duckdns.org/transparent-proxy-for-broadway-gtk3-html5-backend/

Are you after some info in particular?

Dan

On Thu, Oct 13, 2016 at 5:49 AM, Igor D  wrote:
> Hi,
>
> I wonder if someone have practical experience with GTK+ with Broadway.
> I'll be glad to have feedback.
>
> Thanks
> Igor
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk_main_iteration under broadway

2016-08-01 Thread Daniel Kasak
I see. Sorry to ruffle your feathers :) Until now, I was under the
impression that this was the way things are done - as you note, it's
what's recommended to us evil Perl users. I've done some parts
threaded already, but I've found implementations on different
platforms ( eg Windows ) kinda temperamental. Anyway, thanks for the
response and explanation.

Dan

On Mon, Aug 1, 2016 at 7:16 PM, Emmanuele Bassi  wrote:
> Hi;
>
> On 29 July 2016 at 04:48, Daniel Kasak  wrote:
>> Hi all.
>>
>> I've got some convenience functions that update a progress bar for long
>> running operations. I do:
>>
>> Gtk3::main_iteration() while ( Gtk3::events_pending() );
>
> Stop. I know this kind of behaviour is peddled and cargo culted on
> gtk-perl-list because "hey, it works in my abominable 2500 lines
> single file Perl program that I have to use for work and nobody will
> ever bother to read or change", but it's a really stupid thing to do,
> that goes against the design of GTK+.
>
> Either you move your blocking code inside a thread and update the UI
> using Glib::idle_add(), like any sensible person would; or you stop
> using synchronous operations blocking the main loop, and then try to
> "catch up" at the end so that your UI doesn't continuously lock up.
>
> Those two functions are a crutch that expose design and implementation
> issues in your code, or in the library code you're using. Stop hurting
> yourself.
>
> The only reason why those two functions haven't been deprecated — and
> I swear I'll deprecate them before we get into GTK+ 4 — is because
> they were used in the test suite, i.e. for controlled, non-interactive
> use cases.
>
>>  ... ( in Perl ) after updating the progress bar, so that the window's
>> contents are updated while my code continues to run. This works great in X
>> and wayland. However in broadway, I quite often see CPU usage in broadwayd
>> rise to 100%, and my application hang, immediately after the above line of
>> line.
>
> You're doing a busy loop.
>
>> Is this known to be not safe under broadway?
>
> That construct is known to be unsafe *everywhere*. The only reason why
> you don't get into a busy loop just as often is that you're getting
> another process involved (the X server on X11, the Wayland compositor
> on Wayland) and that introduces a potential lag between the "events
> pending" and the "main iteration" steps of the loop.
>
> You're doing something broken. Stop doing it.
>
> 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


gtk_main_iteration under broadway

2016-07-28 Thread Daniel Kasak
Hi all.

I've got some convenience functions that update a progress bar for long
running operations. I do:

Gtk3::main_iteration() while ( Gtk3::events_pending() );

 ... ( in Perl ) after updating the progress bar, so that the window's
contents are updated while my code continues to run. This works great in X
and wayland. However in broadway, I quite often see CPU usage in broadwayd
rise to 100%, and my application hang, immediately after the above line of
line.

Is this known to be not safe under broadway?

I can put together a demo if needed, but it's pretty easy for me to trigger
...

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


"A new combobox"

2016-07-27 Thread Daniel Kasak
Hi all.

I'm a Perl god and C "relative newbie', and I'm interested in the new
combobox work, ie
https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/theming/widgets/combobox-replacements.png
and https://git.gnome.org/browse/gtk+/log/?h=wip/combo

If someone can mentor me, I'd be interested in attempting to complete
it. What state is it in? Is it realistic of me to think it would be
within my reach? I've done a very small amount of hacking in C -
mainly fixing bugs where necessary.

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


Re: GTK+ tests

2016-01-17 Thread Daniel Kasak
Ouch! I'm certainly not an expert in this area, but since you don't
have any replies yet, I thought I'd help as best I can ...

The error: "Illegal instruction (core dumped)" sounds to me like a
compilation issue. You would get this error, for example, if you
compiled for a target CPU that had instructions that aren't supported
by your current CPU. It would help if you gave details of your target
CPU ( cat /proc/cpu ), and compiler flags you used to build.

Dan

On Fri, Jan 15, 2016 at 10:56 PM, FAURE, MAXIMILIEN
 wrote:
> Hello,
>
> I try to port GTK+ on AIX. I succed to compile it but I don't know why,
> tests failed (with the error : Illegal instruction (core dumped))
> I would like to know where we can found documents which explain the
> process when we type "make check" in order to can control and execute
> just one test.
>
> best regards,
> maximilien
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Broadway on Ubuntu 14.04

2015-11-05 Thread Daniel Kasak
Hi all.

Reposting from http://ubuntuforums.org/showthread.php?t=2301869 ... (
I'm not getting any takers there ).

I'm a long-time Gentoo user, and attempting to get an application
running on a Ubuntu VM ( 14.04 LTS ) for work. I'm using gtk's
broadway backend, which in Gentoo can be enabled by setting the
'broadway' USE flag. It's proving to be quite difficult with Ubuntu,
unfortunately.

First, I tried using the binaries from:
https://launchpad.net/~malizor/+arch...u/gtk-broadway. This package
doesn't install cleanly. I get strange errors about incompatibilities,
and I end up with a broadwayd binary, but with gtk+ build without
broadway support.

Next I followed instructions at:
http://www.cyberciti.biz/faq/rebuild...inary-package/. I edited
debian/rules in the gtk+ source folder, and added
--enable-broadway-backend. I then continued to build as per the
instructions ( ie fakeroot debian/rules binary ). This almost works.
It dies right at the end:

Code:

dh_install -plibgtk-3-0  --sourcedir=debian/install/shared
dh_link -plibgtk-3-0
dh_installmime -plibgtk-3-0
dh_installgsettings -plibgtk-3-0
dh_gconf -plibgtk-3-0
dh_icons -plibgtk-3-0
dh_translations -plibgtk-3-0
dh_langpack: processing files to add translation domain 'gtk30'..
# Install the binaries with a -3.0 suffix
mv debian/libgtk-3-0/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-update-icon-cache \

debian/libgtk-3-0/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-update-icon-cache-3.0
mv: cannot stat
‘debian/libgtk-3-0/usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-update-icon-cache’:
No such file or directory
make: *** [binary-install/libgtk-3-0] Error 1
root@ggs010:~/gtk+3.0-3.10.8#

I have no idea why this error occurs.

Does anyone know how I can get broadway support in gtk+ in Ubuntu 14.04?

Thanks ...

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


Re: Trigger a GtkEntryCompletion's popup

2015-10-08 Thread Daniel Kasak
I had issues with GtkComboBoxText last time I tried it, though admittedly
that was a long time back. Anyway, yes I'm aware of these widgets, and use
GtkComboBox regularly. I'll look into GtkComboBoxText again. But the
question remains - is there a way to trigger the completion's popup?

Dan

On Fri, Oct 9, 2015 at 8:21 AM, Stefan Salewski  wrote:

> On Thu, 2015-10-08 at 15:36 +1100, Daniel Kasak wrote:
> > Hi all. I have some GtkEntry widgets with a GtkEntryCompletion
> > attached.
> > I've set the minimum key length to 0, hoping this would make the
> > completion's popup appear on focus in, but it doesn't. I have noticed
> > that
> > if I type something, then hit backspace, the popup appears. So I guess
> > I
> > can hook up some code on focus-in to simulate this - ie insert some
> > text
> > and delete it. Is there a cleaner way of doing it?
> >
>
> Maybe you want a
>
> https://developer.gnome.org/gtk3/stable/GtkComboBox.html
> https://developer.gnome.org/gtk3/stable/GtkComboBoxText.html
>
> with active entry widget (has-entry = TRUE) ?
>
> So you can select from a list of text or enter own text.
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Trigger a GtkEntryCompletion's popup

2015-10-07 Thread Daniel Kasak
Hi all. I have some GtkEntry widgets with a GtkEntryCompletion attached.
I've set the minimum key length to 0, hoping this would make the
completion's popup appear on focus in, but it doesn't. I have noticed that
if I type something, then hit backspace, the popup appears. So I guess I
can hook up some code on focus-in to simulate this - ie insert some text
and delete it. Is there a cleaner way of doing it?

Thanks.

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


Re: WHere is the icons

2015-08-11 Thread Daniel Kasak
On Wed, Aug 12, 2015 at 7:15 AM, Igor Korot  wrote:

> Daniel,
>
> On Tue, Aug 11, 2015 at 2:09 AM, Daniel Kasak 
> wrote:
> > I posted on this topic a little while back ( a month or 2 from memory ).
> The
> > icon theme you're using has to have icons of the same name that you're
> > trying to use. If you're using a 'default' ( eg adwaita ) icon theme in
> > conjunction with icon names that used to work a couple of years ago,
> you're
> > likely to have issues. Either choose an older icon theme, or migrate to
> the
> > new 'best practices'.
>
> Problem is I am not running under GNOME. I have KDE4 installed on my
> machine and
> I'm trying to port the GTK2 app to work with GTK3.
>

I don't use KDE, but I recommend using Gnome, at least until you're on top
of these issues. Read up on the ways of setting your icon theme if you're
not going to use Gnome. I don't use Gnome either, by the way ( and so I
know what it's like to get gtk+ to play nicely outside it ).


> The thing is - I want to have a clean compilation before saying: this
> works fine. ;-)
>
> Now, since you mention "best practice", let me ask you - what is it?
> Using named icon? If yes - can you throw in some code? I will see if
> that will find the icon...
>

No code at this point, sorry. To be honest, I'm only just barely across
icon handling myself. I'm not developing gtk+ stuff full-time any more, and
only return to it occasionally ( sadly, usually to see that more stuff has
broken ).

Here's part of a response I got a while back when I posted about none of my
icons being rendered any more:

---

This whole mess has been deprecated (and rightfully so) because it
makes it impossible to actually determine what will go to the screen
reliably; it was added before we had icon themes, and survived far too
long afterwards.

If you want to use symbolic names for icons, as opposed to loading
assets using GdkPixbuf, you should use the name of the icon in the
icon theme — in this case, 'document-new' instead of 'gtk-new' (which
is the string hiding behind the GTK_STOCK_NEW symbol).

The deprecation notes for each stock item here:

  https://developer.gnome.org/gtk3/stable/gtk3-Stock-Items.html

And the freedesktop.org icon naming specification here:

  http://standards.freedesktop.org/icon-naming-spec/icon
-naming-spec-latest.html

Should give you a head start on porting your code and your coding
practices. The Adwaita icon theme (which is used as a template for
most icon themes available these days) contains more icons that you
can use.

---

Dan

On Wed, Aug 12, 2015 at 7:15 AM, Igor Korot  wrote:

> Daniel,
>
> On Tue, Aug 11, 2015 at 2:09 AM, Daniel Kasak 
> wrote:
> > I posted on this topic a little while back ( a month or 2 from memory ).
> The
> > icon theme you're using has to have icons of the same name that you're
> > trying to use. If you're using a 'default' ( eg adwaita ) icon theme in
> > conjunction with icon names that used to work a couple of years ago,
> you're
> > likely to have issues. Either choose an older icon theme, or migrate to
> the
> > new 'best practices'.
>
> Problem is I am not running under GNOME. I have KDE4 installed on my
> machine and
> I'm trying to port the GTK2 app to work with GTK3.
>
> The thing is - I want to have a clean compilation before saying: this
> works fine. ;-)
>
> Now, since you mention "best practice", let me ask you - what is it?
> Using named icon? If yes - can you throw in some code? I will see if
> that will find the icon...
>
> >
> > You can also run with GTK_DEBUG=icontheme set - this can show you some
> info
> > about where gtk is looking to find icons. See
> > https://developer.gnome.org/gtk3/stable/gtk-running.html
>
> Now, I may be able to install GNOME and run it there just to make sure KDE
> is
> out of the picture. ;-)
>
> >
> > Good luck, Gentoo warrior :) Oh ... you're running 'stable' ... luck not
> > required ;)
>
> Yup, I will need it.
>
> Thank you.
>
> >
> > Dan
> >
> > On Tue, Aug 11, 2015 at 1:31 PM, Igor Korot  wrote:
> >>
> >> Stefan et al,
> >>
> >> On Mon, Aug 10, 2015 at 2:23 PM, Stefan Salewski 
> >> wrote:
> >> > On Mon, 2015-08-10 at 12:28 -0400, Igor Korot wrote:
> >> >> But then how do I set the label for such button?
> >> >> It looks like this function can be used for bitmap buttons only (no
> >> >> labels).
> >> >
> >> > Of course you can continue using the deprecat

Re: WHere is the icons

2015-08-10 Thread Daniel Kasak
I posted on this topic a little while back ( a month or 2 from memory ).
The icon theme you're using has to have icons of the same name that you're
trying to use. If you're using a 'default' ( eg adwaita ) icon theme in
conjunction with icon names that *used* to work a couple of years ago,
you're likely to have issues. Either choose an older icon theme, or migrate
to the new 'best practices'.

You can also run with GTK_DEBUG=icontheme set - this can show you some info
about where gtk is looking to find icons. See
https://developer.gnome.org/gtk3/stable/gtk-running.html

Good luck, Gentoo warrior :) Oh ... you're running 'stable' ... luck not
required ;)

Dan

On Tue, Aug 11, 2015 at 1:31 PM, Igor Korot  wrote:

> Stefan et al,
>
> On Mon, Aug 10, 2015 at 2:23 PM, Stefan Salewski 
> wrote:
> > On Mon, 2015-08-10 at 12:28 -0400, Igor Korot wrote:
> >> But then how do I set the label for such button?
> >> It looks like this function can be used for bitmap buttons only (no
> >> labels).
> >
> > Of course you can continue using the deprecated stock item, as long as
> > that still works...
> >
> > My impression is, that recommendation for recent GTK3 is to have only
> > textual label for buttons and menu items generally, with some
> > exceptions...
> >
> > We can use gtk_button_new() with a container widget argument, which may
> > contain a label and an image. Some details I found here
> >
> > https://developer.gnome.org/gtk3/stable/GtkImageMenuItem.html
> >
> > Unfortunately that is some more work now...
>
> Here is what I have right now:
>
> [code]
> static
> GtkWidget *gtk_my_dialog_add_button_to (GtkBox *box, const gchar *label,
> const gchar *stock, gint
> response_id)
> {
> /* create the button */
> GtkWidget *button = gtk_button_new_with_mnemonic (label);
> gtk_widget_set_can_default(button, true);
> GtkWidget *image = NULL;
> #if GTK_CHECK_VERSION( 3, 10, 0 )
> if( !gtk_check_version( 3, 10, 0 ) )
> {
> image = gtk_image_new_from_icon_name( stock, GTK_ICON_SIZE_BUTTON
> );
> }
> else
> #endif
> {
> /* add a stock icon inside it */
> wxGCC_WARNING_SUPPRESS(deprecated-declarations);
> image = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_BUTTON);
> wxGCC_WARNING_RESTORE()
> }
> gtk_button_set_image (GTK_BUTTON (button), image);
>
> /* add to the given (container) widget */
> if (box)
> gtk_box_pack_end (box, button, FALSE, TRUE, 8);
>
> /* add the button to the dialog's action area */
> gtk_dialog_add_action_widget (GTK_DIALOG (dlg), button, response_id);
>
>return button;
> }
>
> extern "C" {
> static void gtk_my_dialog_init(GTypeInstance* instance, void*)
> {
> // some code
> #if GTK_CHECK_VERSION( 3, 10, 0 )
> if( !gtk_check_version( 3, 10, 0 ) )
> {
> continuebtn = gtk_assert_dialog_add_button( dlg, "Continue",
> "yes", GTK_ASSERT_DIALOG_CONTINUE);
> }
> else
> #endif
> {
> wxGCC_WARNING_SUPPRESS(deprecated-declarations);
> continuebtn = gtk_assert_dialog_add_button (dlg, "_Continue",
> GTK_STOCK_YES, GTK_ASSERT_DIALOG_CONTINUE);
> wxGCC_WARNING_RESTORE();
> }
> // some more code
> }
> [/code]
>
> I am running currently KDE-4 on Gentoo Linux (stable). This peice of
> code works when running against GTK+-2.24, i.e. I see
> both label and the icon. However, when running against GTK+-3.16.5 all
> I can see is just a text and no icon.
>
> What am I doing wrong? Am I using the right replacements? Do I use it
> properly?
>
> Thank you.
>
> >
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: What to use on GTK+3

2015-08-08 Thread Daniel Kasak
No no no. Everybody is wrong. What we need is:

[ Actually, now that I come to think about it, this is not the action
I would like to take at this time. Thankyou all the same]
[ This is precisely the action that I require, and I thank you for the
explicit dialog and verbose text in the buttons; it really makes sure
I know what it about to happen, and possibly makes the rest of the
text of the dialog redundant, but hey, at least there is zero scope
for confusion]

Dan

On Sun, Aug 9, 2015 at 11:45 AM, Paul Davis  wrote:
> On Sat, Aug 8, 2015 at 8:41 PM, Allin Cottrell  wrote:
>
>> However, in relation to Igor's original point, giving the user options of
>> Yes/No is IMO fine if your dialog asks a short, simple question that
>> requires an answer of Yes or No. As in
>>
>> Overwrite ? Yes/No
>> Send message? Yes/No
>> Really delete X? Yes/No
>>
>> One could rephrase these messages as something other than Yes/No questions
>> but would that actually be clearer? I doubt it.
>
> I think you're wrong. Each one of these can be converted into a dialog
> of the following general form:
>
>   Need confirmation to carry out potentially significant action
>
> [ Do not take this action ][ Take this action ]
>
>
> A specific case may help
>
>
>   Overwriting this file may cause data loss
>
>[ Do not overwrite the file ]   [ Overwrite the file ]
>
>
> or
>
>   Once your message is sent, you cannot delete it.
>
>[ Do not send this message]  [ Send this message]
>
>
> Both these examples are clearer, because they explain what is at stake.
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Distributing OSX binaries

2015-07-03 Thread Daniel Kasak
Hi all.

I've previously built OSX binaries, just for myself, but now I'd like
to share amongst some workmates. I'm not really up-to-speed with OSX
and packaging ( new job, Mac-only shop ).

I built using jhbuild, and by default, it installed into ~/gtk/inst. I
moved the 'inst' folder to ~/gtk3-perl and ran gtk3-demo, just to see
what would happen. This happened:

dyld: Library not loaded: /Users/danielkasak/gtk/inst/lib/libgtk-3.0.dylib
  Referenced from: /Users/danielkasak/gtk3-perl/bin/gtk3-demo
  Reason: image not found
Trace/BPT trap: 5

I did a bit of searching on library paths for OSX, and then did:

export DYLD_LIBRARY_PATH=~/gtk3-perl/lib

 ... and tried to run gtk3-demo again:

dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from:
/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /Users/danielkasak/gtk3-perl/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Trace/BPT trap: 5

I don't know what to do about this.

Any hints?

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


Re: Outdated win32 bundle

2015-06-18 Thread Daniel Kasak
Hi all. I've got my own builds of Gtk+ for Windows, available at:
http://tesla.duckdns.org/jewelkit-1-0-released/ ( I have another build
I'm ready to upload in the next week actually ).

This contains perl as well as Gtk+. I make regular releases (
currently ). I also have a bunch of patches I've been meaning to
submit ( fixing build issues ). In particular, the object
introspection stuff is a MAJOR PITA to build on Windows, and AFAIK is
impossible to build in Linux with a cross-compiler.

It would be fantastic if building Gtk+ ( and bindings ) on Windows
were "far less painful" ... and better yet if there were official
installers ... though I guess that's asking a bit much for
corner-cases like perl developers' needs :)

Dan

On Fri, Jun 19, 2015 at 4:20 AM, Tarnyko  wrote:
> anatoly techtonik writes:
>>
>> On Fri, Jun 12, 2015 at 2:42 PM, Emmanuele Bassi  wrote:
>>>
>>> On 12 June 2015 at 12:27, anatoly techtonik  wrote:

 On Thu, Jun 11, 2015 at 4:15 PM, Emmanuele Bassi 
 wrote:
>
>
> Currently, we advertise ad hoc Windows builds on gtk.org; those are
> out of date, and lack many of the bug fixes that went into GTK.


 I see two problems here:
 - [ ] http://www.gtk.org/download/win32.php - doesn't say this info
 - [ ] http://www.gtk.org/download/win32.php - doesn't have a link to
   the site source to fix that
>>>
>>>
>>> Yes, that's why I said:
>>> | The current stance of everyone involved in the Windows backend for
>>> | GLib and GTK+ is to stop advertising binary builds for Windows
>>> There's also a bug about this:
>>> https://bugzilla.gnome.org/show_bug.cgi?id=747742
>>> It would be good to fix the website to reflect the reality.
>>
>>
>> That's not that I mean. I mean that the site will not be fixed if there is
>> no visible way to fix that. Can we solve this problem first? Where is the
>> site source and what is the process to add the source link (along with
>> description of the site update process) to the site footer?

 Points that are also missing to enable me (or anybody else) to
 fix the situation:
 1. Is it possible to make "lack many of the bug fixes that went into
 GTK"
 a link to actual list?
>>>
>>>
>>> The "actual list" is published with each release of GTK+.
>>
>>
>> That means that data about all previous versions need to be updated
>> with new fixed bugs. Is the publishing process automated enough to
>> allow this?

 2. How to detect automatically that builds listed on the page are out
 of date?
>>>
>>>
>>> There are no new builds. The last build for Windows was for GTK+ 3.6,
>>> which, as of today, is two and half years old.
>>
>>
>> The question assumes that. When the build becomes out of date?
>>>
>>> The website needs to be changed to reflect the reality of the project,
>>> not the past.
>>
>>
>> Marking old releases as outdated does just that.
>
> This
> situation is confusing for application developers, and makes the
> project look bad. It also reflect badly on the great work that
> developers have been doing in order to make GTK work well on Windows.


 Editing the site with heads up on the situation and an entrypoint
 to change it would make it better.
>>>
>>>
>>> Indeed it would.
>>
>>
>> I am glad there is no misunderstanding between us here. =) Can we now
>> make an actionable item out of it? So that it is clear for everybody how
>> to
>> do this and what to do exactly as a next step.
>
> On top of that, we don't offer binary builds for any other platform,
> and instead rely on distributors — like Homebrew on Mac; the *BSD
> ports; or the various Linux distributions — to provide binary builds
> for them. Windows is an anomaly, mostly because there weren't
> good/usable software distributions in the past. This has now changed,
> and it's a good thing to ensure that developers on Windows get
> reliable, up to date software.


 You're speaking about Chocolatey or about Steam? =)
>>>
>>>
>>> I'm talking about MSYS2.
>>
>>
>> I think that the concept of package managers for Windows is flawed,
>> but it is just my opinion as a Windows user with 10+ years experience.
>
> MSYS2 is for developers, not for end users.


 Ok. Still I don't get it. I wanted a local directory install for GTK
 libs for
 compiling Wesnoth. I don't want system global install of MSYS2 - I
 already have MinGW unpacked locally and building with SCons. Is that
 possible?
>>>
>>>
>>> That's possible if you build GTK+ for yourself.
>>
>>
>> But that is possible with current binary downloads. That's a regression
>> and
>> vendor dependency on MSYS2 project. For project like Wesnoth GTK is one
>> of the dozen possible dependencies and exclusive requirements and
>> processes for every dependency makes life of a build system integrators
>> a nightmare.
>>>
>>> There have been no binary builds of GTK+ si

Re: Treeviews: changing the color of column headers

2015-06-13 Thread Daniel Kasak
I've done this in Gtk2. I don't have my laptop and old code handy
right now, but from memory:

- create a label
- set_markup() on the label, and set your colour(s) in there
- use TreeViewColumn.set_widget() to override the default label

If you can't get it working, post again and I'll go and dig out the
old ( perl ) code that I used.

Dan

On Sun, Jun 14, 2015 at 7:55 AM, Stefan Salewski  wrote:
> On Sat, 2015-06-13 at 20:43 +0200, Stefan Salewski wrote:
>> On Tue, 2015-06-09 at 08:54 +0200, Juan L. Freniche wrote:
>> > I am trying to change the color of the column headers of a treeview,
>> > with no sucess at all.
>>
>> It is funny that currently many people try to change default colors of
>> GTK widgets. Of course generally that is not a good idea -- common sense
>> is to give users their default styles. Of course, for special
>> applications that may be OK. For tree view headers, I can remember that
>> I tried to chance something style related, and it worked after I added a
>> custom label widget as header text. See
>>
>> http://www.daa.com.au/pipermail/pygtk/2009-February/016601.html
>>
>> > Try using a custom widget for the header using
>> > TreeViewColumn.set_widget()
>>
>
> Sorry, have not been able to get it working with GTK2. I tried to put a
> label in a column header and change the color of the label with
> gtk_widget_modify_bg(label, GTK_STATE_NORMAL, &color). But it seems to
> have no effect. Maybe it would work for GTK3, there we have
> gtk_widget_override_color().
>
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Combos & NULL values and/or 'no value selected'

2015-05-26 Thread Daniel Kasak
Greetings.

I'm trying to find a sensible approach to dealing with NULL values,
combos, and database values. It's of course a valid situation where a
database field has a NULL value. It's also valid that someone wants to
SET a database field to NULL, by "somehow" de-selecting a currently
selected item in a combo.

How do I do this? :) There are a few approaches that come to mind ...

1) Is there an easy way for a user to *de-select* a selected item in a
combo? I don't see any way of doing this currently, but if there *was*
such a way, my problem would be solved. I'm having difficulty
connecting to signals like the button press event and populate-popup
event ( maybe combos don't have this ). Right-clicking the combo and
clicking an item 'de-select' might be ok, though not really obvious.

2) I've tried adding to the combo's model an initial row. All my combo
models have at least 2 columns - the ID and the text to be displayed.
So if I add an initial row with both the ID and text columns set to
NULL ( undef - I'm using perl - whatever ) ... I actually get the
desired effect ( both in setting and getting values between combo & DB
), but I also get warnings:

Use of uninitialized value in list assignment at
/usr/local/lib64/perl5/5.20.1/Gtk3.pm line 1572.
Argument "" isn't numeric in subroutine entry at
/usr/local/lib64/perl5/5.20.1/x86_64-linux-thread-multi/Glib/Object/Introspection.pm
line 58.

 ... which is not really ideal. I don't think it's safe to use any
other values - 0, for example, might be a valid ID from the database.
Other than the issue of the STDOUT looking bad, is this a bad idea for
any other reason?

Maybe there are some other approaches that aren't occurring to me. Thoughts?

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


Re: Flowgraphs for Gtk3!

2015-05-21 Thread Daniel Kasak
Excellent! I was actually just thinking about how I'd do this. I'd
very much like for this to work with the Perl bindings. I'll have a
chat to people in the gtk-perl list and see how difficult it would be
to make it work.

Dan

On Thu, May 21, 2015 at 1:24 PM, Lee Fallat  wrote:
> Wow, absolutely fantastic Daniel (Dan?). I checked out the source and I
> can't believe how concise it is. Very clean. Another application I can see
> this for is in PulseAudio volume control, when users redirect audio from
> multiple sources to a sink.
>
> Once again, great job!
>
> Lee
>
> On Wed, May 20, 2015 at 11:02 PM, Daniel Brendle 
> wrote:
>>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA256
>>
>> Hi there!
>>
>> I wanted to introduce you to a project that has been on my
>> "to-do"-stack for a long time. Now it grew to be somewhat presentable.
>> Meet our very own Blender-Node-Editor-like flowgraph library for Gtk3:
>>
>> https://github.com/grindhold/libgtkflow
>>
>> GtkFlow gives you a new Widget, the GtkFlow.NodeView you can add nodes
>> to this view that have inputs and outputs (so called sinks and sources
>> respectively). These Nodes and the connections between them can be
>> arranged by the user by dragging and dropping.
>> It provides an easy way for users to communicate to a program how
>> things interact and how things are connected.
>>
>> If you develop UI (especially for GNOME-related stuff), please let
>> yourself be inspired how Flowgraphs could enhance your UI-concept.
>> Some usecases i thought about are:
>>   - A GUI for GStreamer that you can build and export your GStreamer
>> pipelines from/to
>>   - UI Replacement for GNURadio's Flowgraph implementation
>>   - Video Compositing for PiTiVi
>>
>> I am eager to hear about your thoughts of possible usecases and
>> especially for feedback about the library itself.
>>
>> If anyone can use it, i'd also be happy about helpers that engage in
>> pushing the project further.
>>
>>
>> Yours, Grindhold
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v2
>>
>> iQIcBAEBCAAGBQJVXUqxAAoJEBuqgJs6izSEDbQP/i4mNisnbV98DBrhe6Scb7So
>> Zg+Q1e7z9fpyEqoWI1sFsT640nt+pvZrNFjWYUA4zBDoUGM9FgGW7LAtgDAd/LNq
>> ghz0luwwfOJu+dDum698YhSpFv87J0uLRK7UMYzf1GSMm4I2qwEsIuZnTq+QsffY
>> HTEt0+vSsG9yVC5Be/bFDTxVuJO6Bs3X1bGP0LkSpLoFL0gt3OSR7MpZBD4NNVwZ
>> /cZ3LLwEWAGeOx+EnfkT33zdReJuDrFrYJRIwoPUWMYJ1jR/C5h4rYSa+EAPmTf5
>> d+SVg4vfWBeHxPhA/pJVRLPcYqngdj7g/aMBx9HCFjkSdmTRwI6KnVZpK0OKmGzY
>> sgMmMr8bTs+cWDTnE8JsTm83Ph42HcJ8Y0RTECEFYrtGCIE2HPHOW/gOjWs8ZY72
>> rtgctD2kXWtGttsowr+cpp+lxvK7rxuIzAQuJjWhuK0NDBRKvfBaqMCWmrN4rPvK
>> +kegFRrGg3crNSZgUcH29+Kwu0D+Ad4urkej5I+0pVkUO+f6LkiMOJe6bTkjycS5
>> 9aCWJqtrSeI19UGKv0V2rRsq9LgZDxaFiu164B01WaVpJs9Wm2Kd5pjlw1ZPpMnO
>> DSCv1tgS/PsB3BHfq5mzffaQ+45phpesQq5wW9IqYBu5IAobIz8fWQSngxdtA4mX
>> l4riNalBqyC4VQDlT7S/
>> =J1cf
>> -END PGP SIGNATURE-
>> ___
>> gtk-list mailing list
>> gtk-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/gtk-list
>
>
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk-3.14.3 on Windows: icon rendering issues

2015-05-20 Thread Daniel Kasak
Aha. Thanks Emmanuele. I'm now totally on top of what is needed :)

Dan

On Wed, May 20, 2015 at 8:01 PM, Emmanuele Bassi  wrote:
> Hi;
>
> sorry, it was late at night and I was on my phone, so I was unhelpfully terse.
>
> On 20 May 2015 at 01:32, Daniel Kasak  wrote:
>> Can you please explain this further? I had assumed this was the
>> correct way to ask for the 'new' icon, from whatever icon theme was
>> selected.
>
> No, that's the way you use the deprecated GTK+ stock items, which may
> have an associated icon and may have an associated label, or both, or
> even neither. Stock icons may map to icons that may be outsourced to
> the current icon theme, or to resources embedded into the GTK+'s
> shared library, or to resources inside an application, if the
> application registers their own stock items.
>
> This whole mess has been deprecated (and rightfully so) because it
> makes it impossible to actually determine what will go to the screen
> reliably; it was added before we had icon themes, and survived far too
> long afterwards.
>
> If you want to use symbolic names for icons, as opposed to loading
> assets using GdkPixbuf, you should use the name of the icon in the
> icon theme — in this case, 'document-new' instead of 'gtk-new' (which
> is the string hiding behind the GTK_STOCK_NEW symbol).
>
> The deprecation notes for each stock item here:
>
>   https://developer.gnome.org/gtk3/stable/gtk3-Stock-Items.html
>
> And the freedesktop.org icon naming specification here:
>
>   
> http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
>
> Should give you a head start on porting your code and your coding
> practices. The Adwaita icon theme (which is used as a template for
> most icon themes available these days) contains more icons that you
> can use.
>
>> Also I'm not convinced this build is working correctly WRT selecting
>> icon themes - as noted, changing the theme in my settings.ini has no
>> effect on icons that do get rendered ( and there aren't many of them
>> ).
>
> You need to check that the icon theme is in the correct path (usually:
> PREFIX/share/icons); that the icon theme cache is updated
> (gtk-update-icon-cache or gtk3-update-icon-cache is run after
> installation); that the GdkPixbuf loader are set and available for the
> various formats used by the icon theme assets.
>
> Ciao,
>  Emmanuele.
>
>> Dan
>>
>> On Wed, May 20, 2015 at 10:04 AM, Emmanuele Bassi  wrote:
>>> Hi;
>>>
>>> Do not use "gtk-new" and other stock button names: use the correctly named
>>> icons from the theme.
>>>
>>> Ciao,
>>>  Emmanuele.
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk-3.14.3 on Windows: icon rendering issues

2015-05-19 Thread Daniel Kasak
OK I think I can see what's going on here ... the old method of
generating icons via names like 'gtk-new' has been removed. G ...
reminds me of how much I hate PHP every time I'm forced to return to
it ( eg suggested 'best practices' are removed, leaving large chunks
of otherwise well-written code broken ). I assume I've only hit this
on Windows because I'm using the very latest versions of everything on
Windows, and my Linux boxen haven't quite caught up yet.

I've gotten hold of the GtkSettings thing and verified that it is in
fact picking up settings from my settings.ini, so at least this side
of things seems OK.

The icon theme packages are installing into:

$PREFIX/share/icons/$ICON_THEME_NAME

 ... instead of:

$PREFIX/usr/share/icons/$ICON_THEME_NAME

 ... which the spec suggests ... so I have to set the XDG_DATA_DIRS
environment variable to include this path. No idea why the icon themes
are ending up in this location.

Thanks to all those who responded and pointed my in the right
direction. I predict I will return in 6 months with the exact same
problem :P

Dan

On Wed, May 20, 2015 at 10:32 AM, Daniel Kasak  wrote:
> Can you please explain this further? I had assumed this was the
> correct way to ask for the 'new' icon, from whatever icon theme was
> selected. If I have to change my behaviour, I'm quite willing to do
> that. I'm still confused as to why this would work on Linux and OSX,
> but not Windows, when all had the same themes installed.
>
> Also I'm not convinced this build is working correctly WRT selecting
> icon themes - as noted, changing the theme in my settings.ini has no
> effect on icons that do get rendered ( and there aren't many of them
> ).
>
> Dan
>
> On Wed, May 20, 2015 at 10:04 AM, Emmanuele Bassi  wrote:
>> Hi;
>>
>> Do not use "gtk-new" and other stock button names: use the correctly named
>> icons from the theme.
>>
>> Ciao,
>>  Emmanuele.
>>
>>
>> On Tuesday, May 19, 2015, Daniel Kasak  wrote:
>>>
>>> Here's a screenshot, showing *some* icons rendering ( no idea which
>>> icon theme they come from ), and some *not* rendering:
>>>
>>> http://tesla.duckdns.org/images/windows_7_gtk3.png
>>>
>>> I'm using code like:
>>>
>>> my $icon   = Gtk3::Image->new_from_icon_name( 'gtk-new', 'button' );
>>>
>>>  ... to render the icons. Note the missing images in the buttons in
>>> the header bar. It works fine on Linux and OSX.
>>>
>>> Dan
>>>
>>> On Wed, May 20, 2015 at 7:16 AM, Daniel Kasak 
>>> wrote:
>>> > On Wed, May 20, 2015 at 12:08 AM, LRN  wrote:
>>> >> On 19.05.2015 15:44, Daniel Kasak wrote:
>>> >>> On Tue, May 19, 2015 at 9:45 PM, LRN wrote:
>>> >>>> On 19.05.2015 14:44, LRN wrote:
>>> >>>>> On 19.05.2015 14:34, Daniel Kasak wrote:
>>> >>>>>> On Sun, Oct 19, 2014 at 10:17 PM, Emmanuele Bassi wrote:
>>> >>>>>>> On 19 October 2014 03:42, Daniel Kasak wrote:
>>> >>>>>>>> On Sat, Oct 18, 2014 at 10:45 PM, Kalev Lember wrote:
>>> >>>>>>>>> On 10/18/2014 01:25 PM, Daniel Kasak wrote:
>>> >>>>>>>>>> Why are some icons not being rendered? Is this a packaging
>>> >>>>>>>>>> issue? I see
>>> >>>>>>>>>> the same issue in the gtk demo apps. Also note that there is an
>>> >>>>>>>>>> image in the
>>> >>>>>>>>>> combo box that's also not being rendered. I'm hoping this is
>>> >>>>>>>>>> just a case of
>>> >>>>>>>>>> chucking a png file or 2 in the correct place now :)
>>> >>>>>>>>>>
>>> >>>>>>>>>> Some screenshots of Linux vs Windows:
>>> >>>>>>>>>> http://tesla.duckdns.org/downloads/gtk_linux.png
>>> >>>>>>>>>> http://tesla.duckdns.org/downloads/gtk_windows.png
>>> >>>>>>>>>
>>> >>>>>>>>> Looking at the screenshots, it looks like the Windows packaging
>>> >>>>>>>>> is
>>> >>>>>>>>> missing all the standard icons that would normally come from
>>> >>>>>>>>> adwaita-icon-theme. Try including th

Re: Gtk-3.14.3 on Windows: icon rendering issues

2015-05-19 Thread Daniel Kasak
Can you please explain this further? I had assumed this was the
correct way to ask for the 'new' icon, from whatever icon theme was
selected. If I have to change my behaviour, I'm quite willing to do
that. I'm still confused as to why this would work on Linux and OSX,
but not Windows, when all had the same themes installed.

Also I'm not convinced this build is working correctly WRT selecting
icon themes - as noted, changing the theme in my settings.ini has no
effect on icons that do get rendered ( and there aren't many of them
).

Dan

On Wed, May 20, 2015 at 10:04 AM, Emmanuele Bassi  wrote:
> Hi;
>
> Do not use "gtk-new" and other stock button names: use the correctly named
> icons from the theme.
>
> Ciao,
>  Emmanuele.
>
>
> On Tuesday, May 19, 2015, Daniel Kasak  wrote:
>>
>> Here's a screenshot, showing *some* icons rendering ( no idea which
>> icon theme they come from ), and some *not* rendering:
>>
>> http://tesla.duckdns.org/images/windows_7_gtk3.png
>>
>> I'm using code like:
>>
>> my $icon   = Gtk3::Image->new_from_icon_name( 'gtk-new', 'button' );
>>
>>  ... to render the icons. Note the missing images in the buttons in
>> the header bar. It works fine on Linux and OSX.
>>
>> Dan
>>
>> On Wed, May 20, 2015 at 7:16 AM, Daniel Kasak 
>> wrote:
>> > On Wed, May 20, 2015 at 12:08 AM, LRN  wrote:
>> >> On 19.05.2015 15:44, Daniel Kasak wrote:
>> >>> On Tue, May 19, 2015 at 9:45 PM, LRN wrote:
>> >>>> On 19.05.2015 14:44, LRN wrote:
>> >>>>> On 19.05.2015 14:34, Daniel Kasak wrote:
>> >>>>>> On Sun, Oct 19, 2014 at 10:17 PM, Emmanuele Bassi wrote:
>> >>>>>>> On 19 October 2014 03:42, Daniel Kasak wrote:
>> >>>>>>>> On Sat, Oct 18, 2014 at 10:45 PM, Kalev Lember wrote:
>> >>>>>>>>> On 10/18/2014 01:25 PM, Daniel Kasak wrote:
>> >>>>>>>>>> Why are some icons not being rendered? Is this a packaging
>> >>>>>>>>>> issue? I see
>> >>>>>>>>>> the same issue in the gtk demo apps. Also note that there is an
>> >>>>>>>>>> image in the
>> >>>>>>>>>> combo box that's also not being rendered. I'm hoping this is
>> >>>>>>>>>> just a case of
>> >>>>>>>>>> chucking a png file or 2 in the correct place now :)
>> >>>>>>>>>>
>> >>>>>>>>>> Some screenshots of Linux vs Windows:
>> >>>>>>>>>> http://tesla.duckdns.org/downloads/gtk_linux.png
>> >>>>>>>>>> http://tesla.duckdns.org/downloads/gtk_windows.png
>> >>>>>>>>>
>> >>>>>>>>> Looking at the screenshots, it looks like the Windows packaging
>> >>>>>>>>> is
>> >>>>>>>>> missing all the standard icons that would normally come from
>> >>>>>>>>> adwaita-icon-theme. Try including that in the builds and see if
>> >>>>>>>>> it fixes
>> >>>>>>>>> the icon issue?
>> >>>>>>>>>
>> >>>>>>>> Thanks for the response. I just attempted to build
>> >>>>>>>> adwaita-icon-theme, and
>> >>>>>>>> it wants me to install gnome-common. I wonder if this is *really*
>> >>>>>>>> necessary,
>> >>>>>>>> but anyway I'll persist ( when I get a full dev environment going
>> >>>>>>>> on Windows
>> >>>>>>>> ).
>> >>>>>>>
>> >>>>>>> gnome-common is just a build-time requirement for a bunch of
>> >>>>>>> modules
>> >>>>>>> loosely tied to GNOME; it's a collection of autotool macros that
>> >>>>>>> cut
>> >>>>>>> down the maintenance burden, similar to the X.org macros
>> >>>>>>> module[1].
>> >>>>>>>
>> >>>>>>> [1] http://cgit.freedesktop.org/xorg/util/macros
>> >>>>>> I'm back with exactly the same issue :(
>> >>>>>>
>> >>>>>&

Re: Gtk-3.14.3 on Windows: icon rendering issues

2015-05-19 Thread Daniel Kasak
Here's a screenshot, showing *some* icons rendering ( no idea which
icon theme they come from ), and some *not* rendering:

http://tesla.duckdns.org/images/windows_7_gtk3.png

I'm using code like:

my $icon   = Gtk3::Image->new_from_icon_name( 'gtk-new', 'button' );

 ... to render the icons. Note the missing images in the buttons in
the header bar. It works fine on Linux and OSX.

Dan

On Wed, May 20, 2015 at 7:16 AM, Daniel Kasak  wrote:
> On Wed, May 20, 2015 at 12:08 AM, LRN  wrote:
>> On 19.05.2015 15:44, Daniel Kasak wrote:
>>> On Tue, May 19, 2015 at 9:45 PM, LRN wrote:
>>>> On 19.05.2015 14:44, LRN wrote:
>>>>> On 19.05.2015 14:34, Daniel Kasak wrote:
>>>>>> On Sun, Oct 19, 2014 at 10:17 PM, Emmanuele Bassi wrote:
>>>>>>> On 19 October 2014 03:42, Daniel Kasak wrote:
>>>>>>>> On Sat, Oct 18, 2014 at 10:45 PM, Kalev Lember wrote:
>>>>>>>>> On 10/18/2014 01:25 PM, Daniel Kasak wrote:
>>>>>>>>>> Why are some icons not being rendered? Is this a packaging issue? I 
>>>>>>>>>> see
>>>>>>>>>> the same issue in the gtk demo apps. Also note that there is an 
>>>>>>>>>> image in the
>>>>>>>>>> combo box that's also not being rendered. I'm hoping this is just a 
>>>>>>>>>> case of
>>>>>>>>>> chucking a png file or 2 in the correct place now :)
>>>>>>>>>>
>>>>>>>>>> Some screenshots of Linux vs Windows:
>>>>>>>>>> http://tesla.duckdns.org/downloads/gtk_linux.png
>>>>>>>>>> http://tesla.duckdns.org/downloads/gtk_windows.png
>>>>>>>>>
>>>>>>>>> Looking at the screenshots, it looks like the Windows packaging is
>>>>>>>>> missing all the standard icons that would normally come from
>>>>>>>>> adwaita-icon-theme. Try including that in the builds and see if it 
>>>>>>>>> fixes
>>>>>>>>> the icon issue?
>>>>>>>>>
>>>>>>>> Thanks for the response. I just attempted to build adwaita-icon-theme, 
>>>>>>>> and
>>>>>>>> it wants me to install gnome-common. I wonder if this is *really* 
>>>>>>>> necessary,
>>>>>>>> but anyway I'll persist ( when I get a full dev environment going on 
>>>>>>>> Windows
>>>>>>>> ).
>>>>>>>
>>>>>>> gnome-common is just a build-time requirement for a bunch of modules
>>>>>>> loosely tied to GNOME; it's a collection of autotool macros that cut
>>>>>>> down the maintenance burden, similar to the X.org macros module[1].
>>>>>>>
>>>>>>> [1] http://cgit.freedesktop.org/xorg/util/macros
>>>>>> I'm back with exactly the same issue :(
>>>>>>
>>>>>> I'm doing another full windows build ( the previous one was flaky WRT
>>>>>> rendering pixbufs, so I thought I'd try a full rebuild ). Previously,
>>>>>> adding the adwaita-icon-theme package fixed the issue, and I saw the
>>>>>> default Adwaita icons. Now, this doesn't seem to help. I've set
>>>>>> GTK_DEBUG=icontheme and seen a LOT of messages about icons in the
>>>>>> Adwaita directory, which would seem to suggest gtk is traversing the
>>>>>> directory.
>>>>>>
>>>>>> Is there a definitive list of things that need to be set up to tell
>>>>>> gtk3 where to look for icons?
>>>>>
>>>>>
>>>>> Did you run
>>>>> /bin/gtk-update-icon-cache-3.0 -f -t /share/icons/hicolor
>>>>> after installing Adwaita?
>>>>>
>>>>> Unrelated: do edit /etc/gtk-3.0/settings.ini and at the very 
>>>>> least set
>>>>>
>>>>> [Settings]
>>>>> gtk-xft-antialias=1
>>>>>
>>>> Related: also, did you run
>>>> /bin/gdk-pixbuf-query-loaders.exe >
>>>> /lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
>>>> after installing librsvg?
>>>>
>>> Yes I've scripted the initial setup:
>>>
>>> bin\pango-querymodules.exe > etc\pango\pango.modules
>>> bin\gdk-pixbuf-query-loaders.exe > lib\gdk-pixbuf-2.0\2.10.0\loaders.cache
>>> bin\gtk-query-immodules-3.0.exe > lib\gtk-3.0\3.0.0\immodules.cache
>>> bin\gtk-update-icon-cache.exe -f -t share\icons\hicolor
>>> bin\gtk-update-icon-cache.exe -f -t share\icons\Adwaita
>>> bin\gtk-update-icon-cache.exe -f -t share\icons\Faenza-Fresh
>>>
>>> I've tried setting in /etc/gtk-3.0/settings.ini:
>>>
>>> [Settings]
>>> gtk-icon-theme-name = Adwaita
>>> gtk-xft-antialias = 1
>>>
>>>  ... or:
>>>
>>> [Settings]
>>> gtk-icon-theme-name = Faenza-Fresh
>>> gtk-xft-antialias = 1
>>>
>>>  ... but neither affect how things look.>
>>> [...]
>>> look for cache in c:\jewelkit\c\share\icons
>>> [...]
>>
>> Um...just to make things clear: is your  = "c:\jewelkit\c"? Is
>> libgtk-3-0.dll located in "c:\jewelkit\c\bin"?
>
> Yes, and yes.
>
> Dan
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk-3.14.3 on Windows: icon rendering issues

2015-05-19 Thread Daniel Kasak
On Wed, May 20, 2015 at 12:08 AM, LRN  wrote:
> On 19.05.2015 15:44, Daniel Kasak wrote:
>> On Tue, May 19, 2015 at 9:45 PM, LRN wrote:
>>> On 19.05.2015 14:44, LRN wrote:
>>>> On 19.05.2015 14:34, Daniel Kasak wrote:
>>>>> On Sun, Oct 19, 2014 at 10:17 PM, Emmanuele Bassi wrote:
>>>>>> On 19 October 2014 03:42, Daniel Kasak wrote:
>>>>>>> On Sat, Oct 18, 2014 at 10:45 PM, Kalev Lember wrote:
>>>>>>>> On 10/18/2014 01:25 PM, Daniel Kasak wrote:
>>>>>>>>> Why are some icons not being rendered? Is this a packaging issue? I 
>>>>>>>>> see
>>>>>>>>> the same issue in the gtk demo apps. Also note that there is an image 
>>>>>>>>> in the
>>>>>>>>> combo box that's also not being rendered. I'm hoping this is just a 
>>>>>>>>> case of
>>>>>>>>> chucking a png file or 2 in the correct place now :)
>>>>>>>>>
>>>>>>>>> Some screenshots of Linux vs Windows:
>>>>>>>>> http://tesla.duckdns.org/downloads/gtk_linux.png
>>>>>>>>> http://tesla.duckdns.org/downloads/gtk_windows.png
>>>>>>>>
>>>>>>>> Looking at the screenshots, it looks like the Windows packaging is
>>>>>>>> missing all the standard icons that would normally come from
>>>>>>>> adwaita-icon-theme. Try including that in the builds and see if it 
>>>>>>>> fixes
>>>>>>>> the icon issue?
>>>>>>>>
>>>>>>> Thanks for the response. I just attempted to build adwaita-icon-theme, 
>>>>>>> and
>>>>>>> it wants me to install gnome-common. I wonder if this is *really* 
>>>>>>> necessary,
>>>>>>> but anyway I'll persist ( when I get a full dev environment going on 
>>>>>>> Windows
>>>>>>> ).
>>>>>>
>>>>>> gnome-common is just a build-time requirement for a bunch of modules
>>>>>> loosely tied to GNOME; it's a collection of autotool macros that cut
>>>>>> down the maintenance burden, similar to the X.org macros module[1].
>>>>>>
>>>>>> [1] http://cgit.freedesktop.org/xorg/util/macros
>>>>> I'm back with exactly the same issue :(
>>>>>
>>>>> I'm doing another full windows build ( the previous one was flaky WRT
>>>>> rendering pixbufs, so I thought I'd try a full rebuild ). Previously,
>>>>> adding the adwaita-icon-theme package fixed the issue, and I saw the
>>>>> default Adwaita icons. Now, this doesn't seem to help. I've set
>>>>> GTK_DEBUG=icontheme and seen a LOT of messages about icons in the
>>>>> Adwaita directory, which would seem to suggest gtk is traversing the
>>>>> directory.
>>>>>
>>>>> Is there a definitive list of things that need to be set up to tell
>>>>> gtk3 where to look for icons?
>>>>
>>>>
>>>> Did you run
>>>> /bin/gtk-update-icon-cache-3.0 -f -t /share/icons/hicolor
>>>> after installing Adwaita?
>>>>
>>>> Unrelated: do edit /etc/gtk-3.0/settings.ini and at the very least 
>>>> set
>>>>
>>>> [Settings]
>>>> gtk-xft-antialias=1
>>>>
>>> Related: also, did you run
>>> /bin/gdk-pixbuf-query-loaders.exe >
>>> /lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
>>> after installing librsvg?
>>>
>> Yes I've scripted the initial setup:
>>
>> bin\pango-querymodules.exe > etc\pango\pango.modules
>> bin\gdk-pixbuf-query-loaders.exe > lib\gdk-pixbuf-2.0\2.10.0\loaders.cache
>> bin\gtk-query-immodules-3.0.exe > lib\gtk-3.0\3.0.0\immodules.cache
>> bin\gtk-update-icon-cache.exe -f -t share\icons\hicolor
>> bin\gtk-update-icon-cache.exe -f -t share\icons\Adwaita
>> bin\gtk-update-icon-cache.exe -f -t share\icons\Faenza-Fresh
>>
>> I've tried setting in /etc/gtk-3.0/settings.ini:
>>
>> [Settings]
>> gtk-icon-theme-name = Adwaita
>> gtk-xft-antialias = 1
>>
>>  ... or:
>>
>> [Settings]
>> gtk-icon-theme-name = Faenza-Fresh
>> gtk-xft-antialias = 1
>>
>>  ... but neither affect how things look.>
>> [...]
>> look for cache in c:\jewelkit\c\share\icons
>> [...]
>
> Um...just to make things clear: is your  = "c:\jewelkit\c"? Is
> libgtk-3-0.dll located in "c:\jewelkit\c\bin"?

Yes, and yes.

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


Re: Gtk-3.14.3 on Windows: icon rendering issues

2015-05-19 Thread Daniel Kasak
Thanks for the responses.

Yes I've scripted the initial setup:

bin\pango-querymodules.exe > etc\pango\pango.modules
bin\gdk-pixbuf-query-loaders.exe > lib\gdk-pixbuf-2.0\2.10.0\loaders.cache
bin\gtk-query-immodules-3.0.exe > lib\gtk-3.0\3.0.0\immodules.cache
bin\gtk-update-icon-cache.exe -f -t share\icons\hicolor
bin\gtk-update-icon-cache.exe -f -t share\icons\Adwaita
bin\gtk-update-icon-cache.exe -f -t share\icons\Faenza-Fresh

I've tried setting in /etc/gtk-3.0/settings.ini:

[Settings]
gtk-icon-theme-name = Adwaita
gtk-xft-antialias = 1

 ... or:

[Settings]
gtk-icon-theme-name = Faenza-Fresh
gtk-xft-antialias = 1

 ... but neither affect how things look. Interestingly, when I set the
icon theme to Faenza-Fresh and set GTK_DEBUG=icontheme, the debug
messages still refer to Adwaita:

scanning resources /org/gtk/libgtk/icons/scalable/stock/navigation
scanning resources /org/gtk/libgtk/icons/scalable/stock/net
scanning resources /org/gtk/libgtk/icons/scalable/stock/object
scanning resources /org/gtk/libgtk/icons/scalable/stock/table
scanning resources /org/gtk/libgtk/icons/scalable/stock/text
scanning resources /org/gtk/libgtk/icons/symbolic/apps
look for cache in c:\jewelkit\c\share\icons
look for cache in c:\jewelkit\c\share\icons
Current icon themes Adwaita hicolor
lookup name: view-refresh
theme_lookup_icon dir c:\jewelkit\c\share\icons\Adwaita\8x8/emblems
get_icon_suffix (cached) 0
theme_lookup_icon dir c:\jewelkit\c\share\icons\Adwaita\8x8/emblems
get_icon_suffix (cached) 0
theme_lookup_icon dir c:\jewelkit\c\share\icons\Adwaita\16x16/actions
get_icon_suffix (cached) 4
theme_lookup_icon dir c:\jewelkit\c\share\icons\Adwaita\16x16/actions
get_icon_suffix (cached) 4
theme_lookup_icon dir c:\jewelkit\c\share\icons\Adwaita\16x16/apps
get_icon_suffix (cached) 0
theme_lookup_icon dir c:\jewelkit\c\share\icons\Adwaita\16x16/apps
get_icon_suffix (cached) 0
theme_lookup_icon dir c:\jewelkit\c\share\icons\Adwaita\16x16/categories

Why does it say:

   Current icon themes Adwaita hicolor

Where is Faenza-Fresh? Is there an environment variable I can use to
override either the theme name, or preferably the theme *path* for an
application?

Dan

On Tue, May 19, 2015 at 9:45 PM, LRN  wrote:
> On 19.05.2015 14:44, LRN wrote:
>> On 19.05.2015 14:34, Daniel Kasak wrote:
>>> On Sun, Oct 19, 2014 at 10:17 PM, Emmanuele Bassi wrote:
>>>> On 19 October 2014 03:42, Daniel Kasak wrote:
>>>>> On Sat, Oct 18, 2014 at 10:45 PM, Kalev Lember wrote:
>>>>>> On 10/18/2014 01:25 PM, Daniel Kasak wrote:
>>>>>>> Why are some icons not being rendered? Is this a packaging issue? I see
>>>>>>> the same issue in the gtk demo apps. Also note that there is an image 
>>>>>>> in the
>>>>>>> combo box that's also not being rendered. I'm hoping this is just a 
>>>>>>> case of
>>>>>>> chucking a png file or 2 in the correct place now :)
>>>>>>>
>>>>>>> Some screenshots of Linux vs Windows:
>>>>>>> http://tesla.duckdns.org/downloads/gtk_linux.png
>>>>>>> http://tesla.duckdns.org/downloads/gtk_windows.png
>>>>>>
>>>>>> Looking at the screenshots, it looks like the Windows packaging is
>>>>>> missing all the standard icons that would normally come from
>>>>>> adwaita-icon-theme. Try including that in the builds and see if it fixes
>>>>>> the icon issue?
>>>>>>
>>>>> Thanks for the response. I just attempted to build adwaita-icon-theme, and
>>>>> it wants me to install gnome-common. I wonder if this is *really* 
>>>>> necessary,
>>>>> but anyway I'll persist ( when I get a full dev environment going on 
>>>>> Windows
>>>>> ).
>>>>
>>>> gnome-common is just a build-time requirement for a bunch of modules
>>>> loosely tied to GNOME; it's a collection of autotool macros that cut
>>>> down the maintenance burden, similar to the X.org macros module[1].
>>>>
>>>> [1] http://cgit.freedesktop.org/xorg/util/macros
>>> I'm back with exactly the same issue :(
>>>
>>> I'm doing another full windows build ( the previous one was flaky WRT
>>> rendering pixbufs, so I thought I'd try a full rebuild ). Previously,
>>> adding the adwaita-icon-theme package fixed the issue, and I saw the
>>> default Adwaita icons. Now, this doesn't seem to help. I've set
>>> GTK_DEBUG=icontheme and seen a LOT of messages about icons in the
>>> Adwaita directory, which would seem to suggest gtk is trav

Re: Gtk-3.14.3 on Windows: icon rendering issues

2015-05-19 Thread Daniel Kasak
I'm back with exactly the same issue :(

I'm doing another full windows build ( the previous one was flaky WRT
rendering pixbufs, so I thought I'd try a full rebuild ). Previously,
adding the adwaita-icon-theme package fixed the issue, and I saw the
default Adwaita icons. Now, this doesn't seem to help. I've set
GTK_DEBUG=icontheme and seen a LOT of messages about icons in the
Adwaita directory, which would seem to suggest gtk is traversing the
directory.

Is there a definitive list of things that need to be set up to tell
gtk3 where to look for icons?

Dan

On Sun, Oct 19, 2014 at 10:17 PM, Emmanuele Bassi  wrote:
> hi;
>
> gnome-common is just a build-time requirement for a bunch of modules
> loosely tied to GNOME; it's a collection of autotool macros that cut
> down the maintenance burden, similar to the X.org macros module[1].
>
> ciao,
>  Emmanuele.
>
> [1] http://cgit.freedesktop.org/xorg/util/macros
>
>
> On 19 October 2014 03:42, Daniel Kasak  wrote:
>> Thanks for the response. I just attempted to build adwaita-icon-theme, and
>> it wants me to install gnome-common. I wonder if this is *really* necessary,
>> but anyway I'll persist ( when I get a full dev environment going on Windows
>> ).
>>
>> Dan
>>
>> On Sat, Oct 18, 2014 at 10:45 PM, Kalev Lember 
>> wrote:
>>>
>>> On 10/18/2014 01:25 PM, Daniel Kasak wrote:
>>> > Why are some icons not being rendered? Is this a packaging issue? I see
>>> > the same issue in the gtk demo apps. Also note that there is an image in 
>>> > the
>>> > combo box that's also not being rendered. I'm hoping this is just a case 
>>> > of
>>> > chucking a png file or 2 in the correct place now :)
>>> >
>>> > Some screenshots of Linux vs Windows:
>>> > http://tesla.duckdns.org/downloads/gtk_linux.png
>>> > http://tesla.duckdns.org/downloads/gtk_windows.png
>>>
>>> Looking at the screenshots, it looks like the Windows packaging is
>>> missing all the standard icons that would normally come from
>>> adwaita-icon-theme. Try including that in the builds and see if it fixes
>>> the icon issue?
>>>
>>> --
>>> Hope this helps,
>>> Kalev
>>> ___
>>> gtk-list mailing list
>>> gtk-list@gnome.org
>>> https://mail.gnome.org/mailman/listinfo/gtk-list
>>
>>
>>
>> ___
>> gtk-list mailing list
>> gtk-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/gtk-list
>>
>
>
>
> --
> http://www.bassi.io
> [@] ebassi [@gmail.com]
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


GtkPaned widgets are too visually inconspicuous ( Adwaita )

2015-02-11 Thread Daniel Kasak
Hi all.

I have several GtkPaned widgets in an app I'm building, and users report
that it's very difficult to tell where they are and where they should
click/drag to resize things. Even for me - having put them there myself -
it is somtimes difficult to tell.

The screenshot in the docs:
https://developer.gnome.org/gtk3/stable/GtkPaned.html

 ... has little dots in the middle of the widget, which is at least *some*
indication. But under Adwaita ( which is the default, and almost only theme
- particular for broadway users ), you don't get these dots.

Further compounding the issue under broadway is that the mouse pointer
doesn't change when it passes over the GtkPaned widget. Finally, also with
broadway, it feels like the GtkPaned widget is much thinner, or at least
the area sensitive for getting a grip on it is. This may be a symptom of
the previous point. Anyway, it's very, very hard to resize them under
broadway ... and it's my app and I know what I'm doing :)

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


Re: GTK-3.0 for Windows64 update

2015-01-12 Thread Daniel Kasak
I can't comment on the official builds. But I have gtk-3.14.3 built for
Windows, if you're interested. It also includes perl and some bindings.
This increases the download size considerably, obviously, but you're free
to not use perl once you download it :)

http://tesla.duckdns.org/jewelkit-1-0-released/

There are download links along the right-hand side. If you unzip this into
a location other than the top of C: drive, you'll have to run some scripts
to update some cache files or something ( it would be great if this wasn't
necessary, by the way - surely these things could be a relative path so
things are relocatable ). I'll document this when I'm in Windows next and
rememeber to do it.

Dan

On Thu, Jan 1, 2015 at 1:37 AM, Mark Cianfaglione <
m.cianfagli...@valydate.com> wrote:

> Hello
>
> Is there going to be an update for the 64 bit Windows "official"
> binaries? The current ones are over a year old (dated Dec 2013) and are
> at version 3.6.4.
>
> A lot happened in this last year in the world of GTK!
>
> Mark
>
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: GtkTable inside a scrolled window

2015-01-09 Thread Daniel Kasak
I've done this kind of thing with 2 GtkListViews, to implement 'footers'.

On Sat, Jan 10, 2015 at 1:25 AM,  wrote:

> On 01/09/2015 02:42 PM, onetmt wrote:
>
>> Il 09/01/2015 14:14, Paul Davis ha scritto:
>>
>>>
>>> On Fri, Jan 9, 2015 at 8:13 AM, Paul Davis >> > wrote:
>>>
>>>
>>>
>>>  On Fri, Jan 9, 2015 at 4:30 AM, >>  > wrote:
>>>
>>>  Hi all,
>>>
>>>  I have a GtkTable packed in a scrolled window. The margins,
>>>  row 0 and column 0 of the table should always stay visible and
>>>  not be scrolled, basically like the annotation margins in a
>>>  Microsoft Excel table. How could I do that?
>>>
>>>
>>>  GtkTable doesn't offer that. It is a basic grid layout widget, not a
>>>  table with headers etc.
>>>
>>>  Use a GtkListView.
>>>
>>>
>>> and now having re-read your mail, i doubt that you can get that effect
>>> with any existing Gtk widget. keeping row AND column zero visible while
>>> scrolling in both directions ... this is something highly specialized
>>> and generally Gtk doesn't tend to come with such application-specific
>>> widgets.
>>>
>>> someone else may have a different idea.
>>>
>> Maybe 3 different GtkTables?
>>
>
> Yes, I tried that. In order to get right sizes I placed the child widgets
> in GtkSizeGroup containers. This did not work at all however.
>
> Hans
>
>
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Deprecation of GtkImageMenuItem

2014-10-23 Thread Daniel Kasak
Right. That doesn't sound so bad. And I did search through my own archive,
but admittedly it doesn't go back *that* far. I think it would be a good
idea to put some links on the page:

https://developer.gnome.org/gtk3/stable/GtkImageMenuItem.html

 ... ( where it declares the deprecation every couple of lines ) ...
describing the situation and the fact that the world is not ending :)
Otherwise I predict more questions.

Anyway, thanks for your response.

Dan

On Thu, Oct 23, 2014 at 8:31 PM, Emmanuele Bassi  wrote:

> hi;
>
> at some point this should go in a FAQ — or people should start reading
> the archives — because I replied the exact same thing over and over
> again on three different mailing lists. clearly, I'm doomed to repeat
> this forever, so let's get another round. maybe I'll keep a link to
> the archives, and just reply with it, next time.
>
> a GtkImageMenuItem is just a GtkMenuItem with a GtkImage packed into
> it — plus code to handle the global hammer setting to toggle image
> visibility. you can use the GtkContainer API to pack basically
> anything inside a GtkMenuItem, though you'll have to be mindful of
> grabs if you pack something that handles input.
>
> as to the GNOME HIG: the recommendation is to use icons *sparingly*,
> and mostly for "objects" (or "nouns") — e.g. bookmarks, links to
> files, or similar concepts. using icons for "actions" (or "verbs")
> leads to overloading of images, and does nothing to increase the
> recognisability of those actions. it puts unduly pressure on icon
> artists to create unique icons for lots of actions, and put cognitive
> pressure on the users to remember what those icons mean. positional
> memory ("this item is the 5th from the top of the 2nd menu") and a
> proper label are better suited than icons.
>
> another recommendation is to *not* use GtkMenu and friends directly,
> but to use GtkBuilder, GAction, and GMenu — follow the "How Do I"
> document here: https://developer.gnome.org/GMenu/ — to describe your
> menus with XML, which also lets you specify icons for specific menu
> items.
>
> ciao,
>  Emmanuele.
>
> On 23 October 2014 06:24, Daniel Kasak  wrote:
> > I've read various threads about the deprecation of GtkImageMenuItem. From
> > what I gather, it's "not recommended" from a HIG perspective to put
> icons in
> > menus, and this is the reasoning behind deprecating them.
> >
> > Personally I disagree with this recommendation, and quite strongly. Icons
> > are instantly recognisable - in particular when you're familiar with the
> > application and context. It takes a lot more time to read some text and
> > figure out what a menu item is. I think this is fairly universal. What's
> > more, having a icons *looks* more polished - but I concede this is more a
> > matter of personal taste than the 1st point.
> >
> > If I were writing 'official' Gnome apps or whatever, I would abide by the
> > HIG recommendations, while simultaneously lobbying for a change in this
> > policy :P But since I'm *not* writing official Gnome apps, and I'm
> writing
> > commerical apps where we *do* want things like icons in menus, I think
> this
> > deprecation is of concern. I realise that until 4.0, I can continue to
> use
> > GtkImageMenuItem. But what happens after that? Will there be *any* way to
> > achieve icons in menus? If there will be, and it just involves ( a bit )
> > more work, then fine, I can deal with that. If not ... can I register my
> > protest against this?
> >
> > Thanks :)
> >
> > Dan
> >
> > ___
> > gtk-list mailing list
> > gtk-list@gnome.org
> > https://mail.gnome.org/mailman/listinfo/gtk-list
> >
>
>
>
> --
> http://www.bassi.io
> [@] ebassi [@gmail.com]
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Deprecation of GtkImageMenuItem

2014-10-22 Thread Daniel Kasak
I've read various threads about the deprecation of GtkImageMenuItem. From
what I gather, it's "not recommended" from a HIG perspective to put icons
in menus, and this is the reasoning behind deprecating them.

Personally I disagree with this recommendation, and quite strongly. Icons
are instantly recognisable - in particular when you're familiar with the
application and context. It takes a lot more time to read some text and
figure out what a menu item is. I think this is fairly universal. What's
more, having a icons *looks* more polished - but I concede this is more a
matter of personal taste than the 1st point.

If I were writing 'official' Gnome apps or whatever, I would abide by the
HIG recommendations, while simultaneously lobbying for a change in this
policy :P But since I'm *not* writing official Gnome apps, and I'm writing
commerical apps where we *do* want things like icons in menus, I think this
deprecation is of concern. I realise that until 4.0, I can continue to use
GtkImageMenuItem. But what happens after that? Will there be *any* way to
achieve icons in menus? If there will be, and it just involves ( a bit )
more work, then fine, I can deal with that. If not ... can I register my
protest against this?

Thanks :)

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


Re: Gtk-3.14.3 on Windows: icon rendering issues

2014-10-18 Thread Daniel Kasak
Thanks for the response. I just attempted to build adwaita-icon-theme, and
it wants me to install gnome-common. I wonder if this is *really*
necessary, but anyway I'll persist ( when I get a full dev environment
going on Windows ).

Dan

On Sat, Oct 18, 2014 at 10:45 PM, Kalev Lember 
wrote:

> On 10/18/2014 01:25 PM, Daniel Kasak wrote:
> > Why are some icons not being rendered? Is this a packaging issue? I see
> the same issue in the gtk demo apps. Also note that there is an image in
> the combo box that's also not being rendered. I'm hoping this is just a
> case of chucking a png file or 2 in the correct place now :)
> >
> > Some screenshots of Linux vs Windows:
> > http://tesla.duckdns.org/downloads/gtk_linux.png
> > http://tesla.duckdns.org/downloads/gtk_windows.png
>
> Looking at the screenshots, it looks like the Windows packaging is
> missing all the standard icons that would normally come from
> adwaita-icon-theme. Try including that in the builds and see if it fixes
> the icon issue?
>
> --
> Hope this helps,
> Kalev
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Gtk-3.14.3 on Windows: icon rendering issues

2014-10-18 Thread Daniel Kasak
Hi all.

I've just paid a developer to build a distribution of Perl & Gtk3 &
bindings for Windows ( I tried building it myself, but there were just too
many issues ). It's working great, with only 2 apparent issues:

1) Some icons are missing. I use the following code to generate icons for
buttons:

Gtk3::Image->new_from_icon_name( $this_item->{icon_name}, "button" );

In C I guess this translates to:

gtk_image_new_from_icon_name (*const gchar

*icon_name*,
  *GtkIconSize

size*);

Why are some icons not being rendered? Is this a packaging issue? I
see the same issue in the gtk demo apps. Also note that there is an
image in the combo box that's also not being rendered. I'm hoping this
is just a case of chucking a png file or 2 in the correct place now :)

Some screenshots of Linux vs Windows:
http://tesla.duckdns.org/downloads/gtk_linux.png
http://tesla.duckdns.org/downloads/gtk_windows.png

2) More disturbingly, I'm getting some errors in Windows that I don't
see in Linux:

*** unhandled exception in callback:
***   Can't locate object method "new_from_file_at_size" via package
"Gtk3::Gdk::Pixbuf" at window/browser.pm line 84.
***  ignoring at C:/strawberry/perl/site/lib/Gtk3.pm line 318.

The code in question here is again rendering some icons:

# render icons
$self->{icons}->{CONNECTION} =
Gtk3::Gdk::Pixbuf->new_from_file_at_size( $icon_folder . "/connection.png",
24, 24 );
$self->{icons}->{DATABASE} = Gtk3::Gdk::Pixbuf->new_from_file_at_size(
$icon_folder . "/database.png", 24, 24 );
$self->{icons}->{TABLE} = Gtk3::Gdk::Pixbuf->new_from_file_at_size(
$icon_folder . "/table.png", 24, 24 );

What's going on here? Surely this method of rendering icons hasn't been
removed? Admittedly, I'm running Gtk-3.12.x on Linux, and 3.14.x on
Windows, so maybe things have changed underneath me?

When I get on top of these issues, I'll be hosting packages and detailed
build instructions that will be useful for Gtk-Perl people like me, and I
assume also Python & PHP people. Apparently it was "damn nigh impossible"
to build GObject Introspection and some other packages on Windows. Anyway
if I could get a little insight into these icon rendering issues, it would
be greatly appreciated :)

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


Re: Would it be possible that gtk implementation in C++

2014-08-07 Thread Daniel Kasak
In my experience, people get quite fond of a language, and this fondness is
a MAJOR reason why a small development team will never rewrite their large
project in some other language that some random person requests they drop
everything and port to. There are other reasons of course, like the
monumental task, years of ironing out bugs, zero gains and substantial
losses. People sometimes ask me why I don't rewrite my Perl projects in
Python or PHP ( or why I don't port to framework xyz or whatever ), and I
always invite them to do such a port and maintain it, but I'm personally
not interested in it at all, and will continue hacking in Perl.

I've observed that most Linux software is written in C. For this reason,
I've done some C hacking myself, knowing that what I learn I can then apply
to a large majority of the software I'd be interested in working on. It's
really only QT / KDE that are written in C++, as far as I can tell. It was
news to me that gcc have shifted to C++. Damn it, that means I'll have to
stick with an old compiler for the next 3 years until it stabalises :/
Anyway I've never considered learning C++, as it just doesn't seem to have
much penetration in the circles that I'm interested in.

That's the psychological answer that I believe would apply to a large
majority of people you're asking.

Linus' take on C vs C++, for some light humour:
http://harmful.cat-v.org/software/c++/linus


Dan


On Fri, Aug 8, 2014 at 12:39 PM, Jasper St. Pierre 
wrote:

> Rewriting a widely-used library in a new language, breaking all APIs, is
> not a good idea when we're already struggling to maintain our current
> codebase. Regardless of whether you like C++ or not, this isn't going to
> happen. Sorry.
>
>
> On Thu, Aug 7, 2014 at 10:06 PM, 黄羽众  wrote:
>
>> Thank you for point out predecessors' question!
>>
>> I read the question and get some points, but I thinks the situtations
>> change a lot and I am not ask the same question.
>>
>> 1. I am not ask for why GTK choose to implement in C, I know it have some
>> historical reason. I want to make a proposal that gtk could be re-written
>> with c++ just as GCC does. I want to discuss with you whether it is a good
>> idea.
>>
>> 2. Situations change a lot. Back to the time GTK was born, C++ is also
>> very primitive so the developers would rather implement an object-system by
>> hand. But nowadays C++ is stable and have many cool features especially in
>> C++11 and the in-coming C++14. C++'s object-system is becoming more and
>> more complete and add many useful features in GUI development such as
>> exception, multi-threads and so on. I think due to the same reason did GCC
>> turn to C++.
>>
>> 3. Now, from the view of app developers, who are very likely learned
>> C/C++/Java in classes, and learn Python/JS/PHP/Nodejs after class. And very
>> probably have experiences coding with QT, HTML5, Android. They can't be
>> more familiar with OOP and C++. But when they turn to GTK, they have to
>> expand one line in C++ into three or more lines in C. This will threaten
>> many developers. Although there are gtkmm available, but gtkmm didn't gain
>> enough official support and recommend as GTK, and much fewer reference,
>> help, support available. The official recommand is gtk in c rather than
>> gtkmm in c++, so many devlopers read some tutorials and feel threatened and
>> leave. What's worse, gtkmm didn't wrapper all of the gtk featurese. In some
>> complex cases, developers have to use the low level gobj pointer to get
>> things done.
>>
>>
>> Now is in 2014, It can't be more normal to develop GUI application with
>> OOP style. I think it's time to change.
>>
>> GTK could be rewritten in C++, and what's more important, GTK should
>> officially recommend to develop apps in C++, which can't be more familiar
>> to GUI developers.
>>
>>
>> Sent from MEIZU MX
>>
>>  Original Message 
>> From:Florian Pelz 
>> Time:Fri 8/8 05:23
>> To:gtk-list@gnome.org
>> Subject:Re: Would it be possible that gtk implementation in C++
>>
>> >Hi,
>> >
>> >Someone asked this question on Stackoverflow:
>> >
>> http://stackoverflow.com/questions/9747468/why-was-the-gobject-system-created
>> >I think they answer it pretty well. Also, C is much closer to the
>> >hardware and GCC's error messages for C++ are not that great.
>> >
>> >On 08/07/2014 10:49 PM, Dub wrote:
>> >> tbh, the only reason I use GTK is because it is C.
>> >>
>> >> While C++ is probably a better choice. C allows you to easier
>> >> integrate it with pretty much any language of your choosing easily
>> >> (Vala, Ruby, PHP (lol), Python, Rust, Go, Perl, Lua, Javascript, etc)
>> >> that in itself is a really good reason.
>> >>
>> >>
>> >> On Thu, Aug 7, 2014 at 12:22 PM, 黄羽众 > >> > wrote:
>> >>
>> >> For the past few time, I am using gtkmm to development GUI
>> >> application, and I am really enjoy it.
>> >>
>> >> I know that choose C as its implementation language makes gtk gain
>> >

GtkSpinButton in Gtk3

2014-04-18 Thread Daniel Kasak
Hi all.

I'm trying to use a Gtk3 spinbutton. I've done this plenty of times in
Gtk2. I'm using Glade to define the layout, and using Perl. I drop a
GtkSpinButton into a container, create a GtkAdjustment, and associate it
with the spin button ( all in Glade ). I set the adjustment's max value to
100. Then save the builder file, and run the app. I can't change the value
in the spin button. The buttons don't seem to affect anything, and when I
enter a number and hit tab or enter, it changes back to 0. What's going on?

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


Considering offering bounty for broadway development

2014-03-12 Thread Daniel Kasak
Hi all.

I'd very much like to see some features added to broadway to make it usable
for me. I'd be building commerical apps with it ( using Perl / Gtk3 ), and
could throw some money into getting it up to the level I need, if that
would actually help.

Basically what I need is a proper multiplexing display server, and some
form of security. I've discussed this briefly in other posts to this list.
The basic flow I see would be:

1) User hits some generic login page, and authentication happens ( either
as a part of broadway, or via some other cgi / whatever logic )

2) Authenticated user's details are passed back to broadwayd, which looks
for an existing session with an app. If a session exists, user is
reconnected to it. Otherwise broadwayd spawns a new instance of the
configured app on some port, and starts proxying the user to this port.

I don't know if this matches what other people had in mind - in particular
whoever has written the current broadwayd. Anyway, how far off this are we,
both in terms of developer-hours, and money people would be happy to accept
for making this happen?

Alternatively, if someone is interested in mentoring me, I'd consider doing
it myself. I have *basic* C knowledge. I've done some simple patches to a
handful of projects - gtk+, enlightenment 'ecomorph' compositor. That was a
while back. I'd need some help :)

Thoughts?

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


Re: Gtk3, Windows, themes

2014-03-01 Thread Daniel Kasak
Thanks for responding. Unfortunately, I don't *quite* understand your
answer. You say Gtk3 doesn't have theming engines. I thought it still did.
For example, on my system, the package gtk-engines-unico owns these files:

ultrabook ~ # equo query files gtk-engines-unico
╠  @@ Files Search
╠  ### /usr
╠  ### /usr/lib
╠  ### /usr/lib64
╠  ### /usr/lib64/gtk-3.0
╠  ### /usr/lib64/gtk-3.0/3.0.0
╠  ### /usr/lib64/gtk-3.0/3.0.0/theming-engines
╠  ### /usr/lib64/gtk-3.0/3.0.0/theming-engines/libunico.so
╠  ### /usr/share
╠  ### /usr/share/doc
╠  ### /usr/share/doc/gtk-engines-unico-1.0.3_pre20121212
╠  ### /usr/share/doc/gtk-engines-unico-1.0.3_pre20121212/AUTHORS.bz2
╠  ### /usr/share/doc/gtk-engines-unico-1.0.3_pre20121212/NEWS.bz2
╠   Package:  x11-themes/gtk-engines-unico-1.0.3_pre20121212
╠   Found:12 files
ultrabook ~ #

So libunico.so is the theme engine binary in this case. Based on this, I
still believe that Gtk3 has theme engines, unless someone explains to me in
more detail what I misunderstand about the above.

So ... assuming I'm correct, but no-one has attempted to build any theme
engines for Windows ( and by extension, there is most likely no theme
switcher binary for Windows either ), I assume I'm limited to using
whatever themes use the default gtk3 theme engine, and setting up the gtk
preferences file ( or environment variables or whatever ) manually.

It would be good to hear someone else chime in and say "yes you are
correct" or "no you've got it all wrong, because ... ... ...".

Dan


On Sun, Mar 2, 2014 at 12:10 AM, LRN  wrote:

> -BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 01.03.2014 16:50, Daniel Kasak wrote:
> > On 01/03/2014 10:54 PM, LRN wrote:
> >> On 01.03.2014 3:54, Daniel Kasak wrote:
> >>> I'm looking to port some apps ( Gtk2-Perl ) to Gtk3 ( ie
> >>> Gtk3-Perl ), and I'm wondering if anyone has tackled building
> >>> themes for Windows? I know of the Windows Gtk3 binaries ...
> >>> great :) But the default theme on Windows looks pretty dry.
> >>> Does anyone know of existing theme binaries for Windows?
> >>
> >> Are you, by any chance, using the built-in Windows Classic
> >> Theme?
> >>
> > I believe so. But maybe I misunderstand. Are you implying there are
> > other themes included in the windows binaries?
> >
> Gtk2 had theme engines, Gtk3 doesn't. Windows Classic theme in Gtk2
> was implemented as a theme engine.
>
> Gtk3 has native theming elements support instead. But the API that it
> uses on W32 for this works with every normal Windows theme (such as
> the default Windows 7 theme, XP theme), except for the Classic theme
> (which is not a real theme).
>
> There's a bug [1] for this, but i haven't been able to fix it.
>
> [1] https://bugzilla.gnome.org/show_bug.cgi?id=676110
>
> - --
> O< ascii ribbon - stop html email! - www.asciiribbon.org
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (MingW32)
>
> iQEcBAEBAgAGBQJTEdwsAAoJEOs4Jb6SI2CwBowIAIz7Iu+Znu8qyxi1zjMCrI93
> CEqaxHJM3DxUlmYqU8lhNfVps+j/zJwmkKyIFVibk+iStmsXgI3W1+ApPZdoNPFM
> eVX7DyOcjj//eMd9QwWFLIoLc0tSRNL3phuJJ6XnsQ/MLRoMPhCpaARX8yuYcRM2
> 3P///AYnj4hBtHoxTFLqJLafYj5hz+cySroQpbup1INHoLH9+l9m4R/H+1zQlBj7
> kmk6/SqkYeHX1c2zW1wdcjgc9206hjxXJScd6+Oh2XMjZYYBDcCQnOvpWEOJ1er+
> E33V2XHCrGhIld52KnzkWjd96hOQrfiZ413ccIenLZc78m797eR/qYUYMujoIuM=
> =/ASg
> -END PGP SIGNATURE-
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Re: Gtk3, Windows, themes

2014-03-01 Thread Daniel Kasak
I believe so. But maybe I misunderstand. Are you implying there are other
themes included in the windows binaries?
On 01/03/2014 10:54 PM, "LRN"  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 01.03.2014 3:54, Daniel Kasak wrote:
> > Hi all.
> >
> > I'm looking to port some apps ( Gtk2-Perl ) to Gtk3 ( ie Gtk3-Perl
> > ), and I'm wondering if anyone has tackled building themes for
> > Windows? I know of the Windows Gtk3 binaries ... great :) But the
> > default theme on Windows looks pretty dry. Does anyone know of
> > existing theme binaries for Windows?
> >
> Are you, by any chance, using the built-in Windows Classic Theme?
>
>
> - --
> O< ascii ribbon - stop html email! - www.asciiribbon.org
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (MingW32)
>
> iQEcBAEBAgAGBQJTEcpQAAoJEOs4Jb6SI2CwVBEH/RjauTin75bu2Fgp2Vt8Orem
> ljVynLAbCgGyDmlTYgPM/7Q1xV/zr4CwEnXMm3n7/kLVyKRgUOmlhzjGBiaj3IJn
> uTDuo6vwoF+CzOlnMOxlBF09FD+LST5HvCnKaQG2whys/2JBNcDSgau4C5BSrXrD
> mLYJfoOLcISSHQwihvdev1u9KGlldl+QUM6Ka9FqL1eP+7d8L+Zs5H4X5mnD209s
> gVo545aANaOHQdJ2PDp0dYdw9h/R0PC31/t5B9cL9mI28vkeUhEAEED8kn6ltYwD
> Hr2PJTZxI6mtGpfGT2vML0NFN3jM8JN6P/4Nguz3n2BrKVNCoHRcgtwkGP+fEYg=
> =nhlv
> -END PGP SIGNATURE-
> ___
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


Gtk3, Windows, themes

2014-02-28 Thread Daniel Kasak
Hi all.

I'm looking to port some apps ( Gtk2-Perl ) to Gtk3 ( ie Gtk3-Perl ), and
I'm wondering if anyone has tackled building themes for Windows? I know of
the Windows Gtk3 binaries ... great :) But the default theme on Windows
looks pretty dry. Does anyone know of existing theme binaries for Windows?

Thanks.

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


Re: Who knows ANYTHING about broadway / HTML5 backend?

2014-01-22 Thread Daniel Kasak
Fair enough. Good to see someone answer ;) The other question I posted to
an app-devel list or something like that. I can deal with not being able to
resize / maximise for now. What I'm not clear on is security. The way I
assumed it would work was this:

- I write a simple login page that checks credentials in a DB
- If login is successful, an authentication key is generated, an instance
of broadwayd is spawned on a new port, an instance of the app is spawned,
and pointed ( somehow ) at the correct instance of broadwayd, and the key
and port is returned to the client's browser

What happens from here on is less clear. The browser would have to keep
passing this key back to broadwayd or the app? Can we use https or tunnel
through ssh? Is anything like this implemented already?

>From what I've seen with my limited testing, the default setup basically
allows anyone to hit the IP / port that broadway is running on, and take
over control of the app.

Any thoughts?

Dan


On Thu, Jan 23, 2014 at 11:07 AM, Jasper St. Pierre
wrote:

> Hi Daniel,
>
> I can only find one email to this list about this, which is about
> maximizing windows on Broadway. I'm sorry I didn't reply, but I was busy
> that day. I do remember investigating the question before getting poked to
> do something else instead.
>
> Broadway is indeed not "officially" supported, in that it's not ready for
> production.
>
>
> On Wed, Jan 22, 2014 at 6:55 PM, Daniel Kasak wrote:
>
>> Hi all. Unfortunately, my last couple of posts to various gtk lists on
>> this topic have had ZERO replies :(
>>
>> This is giving me the impression that broadway is not officially
>> supported, and possibly developed and maintained by a single person. Is
>> this the case? Does anyone know who I'd contact who does know about
>> broadway status?
>>
>> Dan
>>
>> ___
>> 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


Who knows ANYTHING about broadway / HTML5 backend?

2014-01-22 Thread Daniel Kasak
Hi all. Unfortunately, my last couple of posts to various gtk lists on this
topic have had ZERO replies :(

This is giving me the impression that broadway is not officially supported,
and possibly developed and maintained by a single person. Is this the case?
Does anyone know who I'd contact who does know about broadway status?

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


Broadway and maximizing

2014-01-03 Thread Daniel Kasak
Hi all. I've just started porting some libraries to Gtk3, and in the
process I'm having a look at the feasibility of the broadway backend. I've
built gtk+ with broadway support, and get can my basic proof-of-concept app
working. However there doesn't appear to be a way to maximize a window when
using the broadway backend. Is this correct? I assume I could provide a
config screen for people to enter their desired resolution, then manually
resize the window. Is this the only option?

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


Re: lots of Windows problems (pygtk)

2008-05-27 Thread Daniel Kasak
On Tue, 2008-05-27 at 21:40 -0400, Michael P. Soulier wrote:

> Daniel Kasak wrote:
> > I always use the binaries produced by Alexander Shaduri at:
> > http://gtk-win.sourceforge.net/home/index.php/Downloads
> 
> I ended up using these.
> 
> http://gladewin32.sourceforge.net/

I've used them at various times. They're not updated very often. Also
without the theme packages & installer from Alexander, the resulting
applications look quite bad ... ie not something that I'd present to a
client and be able to hold my head high ...

> I find the Gtk+ packaging situation for Win32 ridiculous. Next time I'll
> probably just use Java, God help me. At least I can get it to the target
> system with a minimum of hassle.

Java less hassle? I doubt it. Keep in mind that you and I are amongst a
very small group of trailblazers using gtk+ on Windows. That's why it's
less than ideal at present. If you put some time into it ( ie scripting
the installation, or at least letting various developers know what's not
working ), things will improve. There are some very dedicated developers
working on the Windows port.

--
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: [EMAIL PROTECTED]
website:
http://www.nusconsulting.com.au


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


Re: lots of Windows problems (pygtk)

2008-05-27 Thread Daniel Kasak
On Tue, 2008-05-27 at 23:41 +0200, Marek Kozlowski wrote:

> :-)
> I've written a nice pytgk application (under my Gentoo).

Great work. I develop Gtk2-Perl apps on Gentoo and deploy on Windows
2000 ( and Gentoo ).

I always use the binaries produced by Alexander Shaduri at:
http://gtk-win.sourceforge.net/home/index.php/Downloads

His gtk installer is a no-BS single-click thing that 'just works'. He
also has a nice theme switcher and lots of themes compiled. Do NOT use
the aurora theme engine - it's buggy under both Linux and Windows ( but
more so under Windows ).

His installer sets up the PATH for you as well ( it's easy to add it
anyway ).

I'm not really sure about troubleshooting. I've only ever had issues
with Windows 2003 server systems. If the theme switcher works, then you
can assume that gtk+ is working I suppose.

One last thing I have to do sometimes is change permissions. I also
unpack libxml.dll and some other stuff that our setup needs into the
gtk /lib folder. When I do this, the permissions are wrong. I go to
Windows Explorer, select the top-level gtk folder, tell it NOT to
inherit permissions from it's parent ( copy any existing permissions in
the dialog that appears ). Then I add full read / write for EVERYONE
( bite me, security people ), and go into the advanced properties and
tell it to reset all permissions on child objects and enable propogation
of permissions from the parent ( ie top-level gtk folder ) to child
objects.

That's the only mucking around I have to do.

If things are causing you pain, you should get a VM such as VirtualBox
going, save a snapshot, do your installation, and document everything.
Then revert to the snapshot, and write a batch file ( yuck ) or python
script or something that does all the mucking around for you. Then test
in the VM, revert, rewrite ... ...

--
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: [EMAIL PROTECTED]
website:
http://www.nusconsulting.com.au


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


Re: Changing the foreground colour of combo boxes

2008-01-17 Thread Daniel Kasak
On Fri, 2008-01-18 at 13:55 +1300, Alwin Leerling wrote:

> Hi,
> 
> My program runs on a device on which it is very hard to see the current 
> selected widget. I therefore wrote to functions 
> "on_button_focus_in_event" and "on_button_focus_out_event" that set or 
> reset the background color ( gtk_widget_modify_bg( widget, 
> GTK_STATE_NORMAL, &color_active )  and gtk_widget_modify_bg( widget, 
> GTK_STATE_NORMAL, NULL ) respectively ) and attached these callbacks to 
> my buttons.
> 
> I tried the same trick with the combo boxes but the background does not 
> change.

Have you tried getting hold of the combo's child ( if it's a
ComboBoxEntry ) and modifying it?

Also you could try a different gtk theme.

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

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


RE: Installing GTK+ on Windows XP

2008-01-16 Thread Daniel Kasak
On Wed, 2008-01-16 at 16:40 -0800, Ian Puleston wrote:

> 4. Copy those directories over the GTK installation from step 1 (if you wne
> with the default location, copy them into C:/GTK).

<-shudder->

Are you sure this is wise? It's quite possible that some files have been
renamed / removed in later distributions, and then you'll have cruft
from older distributions lying around, which can cause some
unpredictable ( and difficult to diagnose ) results. I don't have any
in-depth knowledge of whether this is likely to happen with gtk+ or not,
but generally, I think it's a good idea to remove EVERY trace of old
stuff before installing new stuff.

Anyway, what's the point of installing the old 2.10.11 if you're then
upgrading everything to later versions?

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

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


Re: Installing GTK+ on Windows XP

2008-01-16 Thread Daniel Kasak
On Tue, 2008-01-15 at 20:41 -0500, Michael P. Soulier wrote:

> On 15/01/08 Kevin Goodspeed said:
> 
> >  I'm trying to install a few programs on my computer that require GTK+.  If
> 
> Look for gladewin32 on sourceforge. There are links to devel and runtime
> installers for windows. Very handy. 

These binaries are now quite out of date. The Gimp-2.4.2 installer has a
much more recent gtk+. Also there are more recent ( 3.4.x ) binaries for
glade floating around ( google ).

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

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


Re: web interface for GTK+

2007-12-02 Thread Daniel Kasak
On Mon, 2007-12-03 at 01:08 +0100, Cofundos.org wrote:

> Hi all,
> 
> The following GTK+ related project was created on Cofundos.org (a
>  platform for describing open-source project ideas and pooling
>  resources for their implementation):
> 
> *web interface for GTK+* by stefan

I don't want to dampen your enthusiasm, but how would this be better
than using ssh & X11 fowarding? It seems like a *huge* effort would be
required to implement all functionality for all widgets, and in the end
I don't see any advantage to using ssh. I don't mean to be critical -
I'm just curious as to why you're going in this direction.

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

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


Re: GtkAdjustment & scrolling

2007-11-01 Thread Daniel Kasak
On Thu, 2007-11-01 at 10:27 +0100, Enno Fennema wrote:

> I'll try to answer my own question
> 
> > When should I set increment values to be retained and used for scrolling.
> After all window sizes have been calculated. I suffered from some 
> resizing late in the program which reset the values I carefully 
> calculated too early.

Nice co-incidence. I just figured this out myself, after quite a bit of
not knowing WTF was wrong. The easiest way I've found to do the
scrolling is to set up an idle timer to do it. eg ( in gtk2-perl ):

Glib::Idle->add( sub {
  my $adjustment = $self->{treeview}->get_vadjustment;
  my $upper = $adjustment->upper;
  $adjustment->set_value( $upper - $adjustment->page_increment -
$adjustment->step_increment );
  }
);

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

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


Re: Coloring an entire row at a GtkTreeView

2007-07-01 Thread Daniel Kasak
On Sat, 2007-06-30 at 17:50 -0300, Diogo Ramos wrote:

> Sorry to bother you with, which seems to be a simple question, but I am
>  out of ideas.
> 
> I am trying to coloring an entire row of a GtkTreeView.
> After some search I discovered "GTK+ 2.0 Tree View Tutorial" from
> Tim-Philipp Müller which taught me A LOT about tree views and the
> paradigm of model-view.
> Ok, said that, I am now able to paint an entire row, and just the row,
> with a color of my choice but, the problem is that I am unable to do
> that at execution time, just at the compilation time because the column
> which has to be read for the renderer knows if the color should be
> displayed or not isn't and I do not know why.

To colour things at run-time, based on data in your model, use 
gtk_tree_view_column_set_cell_data_func() on each column you want to
colour:
http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeViewColumn.html#gtk-tree-view-column-set-cell-data-func

This will get called for every cell, each time it's rendered, and it's
in here that you set the renderer's background to your desired colour.

See also:
http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeViewColumn.html#GtkTreeCellDataFunc


--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

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


Re: 'reloading' gtktreeview when model changes drastically

2007-06-18 Thread Daniel Kasak
On Thu, 2007-06-14 at 21:54 +0200, [EMAIL PROTECTED] wrote:

> Hello all,
> 
> I have implemented my own GtkTreeModel to query a custom database over
> the network.

Me too :) If you're interested in some nice Gtk2-Perl objects that
automate this sort of thing, check out my projects: Gtk2::Ex::DBI,
Gtk2::Ex::Datasheet::DBI ( and PDF::ReportWriter for reports ). They're
available on my website, http://entropy.homelinux.org/axis ... but
unfortunately there's no power to our apartment at the moment ( damned
thing caught on fire ), so you'll have to wait about 12 hours until the
power comes back up and I boot up the server.

>  The data model often changes drastically, a lot of rows and
> subtrees are modified, deleted, created, etc.

If you change the model significantly, you want to do one of 2 things. 

Option 1 ) Create a new model, populate it, and then use
gtk_tree_view_set_model to tell the treeview about the new model, and
dump the old one.

Option 2 ) use gtk_tree_view_set_model to point the treeview at another
( empty ) model ( or maybe NO model ... I'm not sure if you can do this,
I've never tried it ). Then do your changes to the real model. Then use
gtk_tree_view_set_model once more to point the treeview back at the real
model.

The idea with both of these approaches is that when you do lots of
changes to the model, it forces the treeview to keep updating, and this
is slow. It's best to do all your changes with the treeview
*disconnected* from the model, and then connect it back. Works for me
anyway.

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au

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


Re: Save Dialog

2007-03-29 Thread Daniel Kasak
Michael L Torrie wrote:

> Interesting proposition.  I wonder if this would lead to user confusion.
> Except for the crumb bar, there is little indication that the create
> folder operation was successful if a user is automatically moved to the
> new folder.  My grandmother would likely end up creating dozens of
> nested folders without realizing it.

Perhaps an animation, involving the folder in question being selected, 
and then navigated into, would avoid such confusion, not to mention look 
nice :)

Either way, I agree with the OP's suggestion. If you create a folder 
from a save dialog, chances are you want to save your file in the folder 
you've just created.

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: can we add checkbox as a Item in gtktreeview

2006-11-02 Thread Daniel Kasak
Hum Tum wrote:

> Helo all,
>
> I want to use checkbox as a item in GtkTreeView with the + sign to 
> expand the tree. Can i select multiple rows in treeview using checkbox 
> or any other alternate to handle this. Also i want to store 
> information along these rows. I want to achieve what is in the figure 
> attached.

You can put a GtkCellRendererToggle as your 1st column, and then connect 
some code to it's "toggled" signal to activate all the other stuff 
underneath it in the tree.

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Detecting a resize

2006-10-24 Thread Daniel Kasak
Hans Oesterholt-Dijkema wrote:

>> Or you could get really tricky and figure out when the user has finished
>> resizing the window by using a timeout and some code that sets a flag
>> when a size_allocate signal is set ... you'd do your scaling operation
>> if your timeout code runs and a *further* size_allocate signal *hasn't*
>> been fired.
>> 
>
> Thanks for your advice,
>   

That's OK :)

> That doesn't look tricky at all. I can implement
> such handling in half an hour. And I'll just create
> a new signal 'resized' that will be fired after the timeout.
>   

Cool.

> I got an advise to use the 'configure event'
> from someone else. Would this be a good idea?
>
> --Hans
>   

Never heard of it to be honest. I only use a relatively small subset of
what gtk+ can do ... and I'm using Gtk2-Perl.

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


Re: Detecting a resize

2006-10-20 Thread Daniel Kasak
Hans Oesterholt-Dijkema wrote:

> Thank you,
>
> But this is a 'run-first' signal.
> I assume that this signal runs before the
> actual resize has occured.
>
> Or is this a wrong assumption?
>
> --Hans

Um ... kinda. You can use signal_connect_after but in this case, it
won't help yout. When someone resizes a window, you could get a LOT of
size_allocate signals being fired. If they just hit the maximize button
you'd be OK, but if they drag and resize the window then you'll get
lots. What I'd do is set a Glib timeout to do your scaling a little
after the size_allocate fires, and the maybe set a flag telling yourself
not to rescale again until after the flag is reset ... and then reset it
when you do the scale ( after the timeout ).

Or you could get really tricky and figure out when the user has finished
resizing the window by using a timeout and some code that sets a flag
when a size_allocate signal is set ... you'd do your scaling operation
if your timeout code runs and a *further* size_allocate signal *hasn't*
been fired.

Dan

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


Re: Detecting a resize

2006-10-19 Thread Daniel Kasak
Hans Oesterholt-Dijkema wrote:

> L.S.,
>
> Is it possible to detect if a widget has been resized
> by a user? I'd like to zoom an image to fit a window
> on resize.
>
> Thanks in advance for your answers,
>
> --Hans Oesterholt-Dijkema
>   

Everything that inherits from GtkWidget has a 'size-allocate' signal.

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk using mysql

2006-10-10 Thread Daniel Kasak
sameer tandra wrote:

> Hi
> I am sameer.
>   I am using gtk and mysql as database in linux.I have 
> created a window with widgets.I want to store the data given in the 
> widgets in mysql database and also retrive it and display them in the 
> widgets.
>  
> how is it possible.
>  
> please help me.

I've written some Perl modules to automate this stuff. If you want to 
write your GUI in Perl ( lots less work, believe me ), check out: 
http://entropy.homelinux.org/axis_not_evil

There are screenshots of some in-house applications, and some code 
examples. All 3 modules are:
 - open-source
 - cross-platform
 - extensively tested ( on Linux and Windows 2000 )
 - being actively developed

The 'forms' module ( Gtk2::Ex::DBI ) and the 'datasheet' module ( 
Gtk2::Ex::Datasheet::DBI ) both use Gtk2 for the GUI. The forms module 
uses GladeXML to construct the GUI. The 'report' module uses PDF::API2 
to construct PDF reports.

If you want to work in C, then you can have a look at the GnomeDB stuff 
... though I would recommend Perl. Gtk2-Perl really is a great way of 
doing this :)

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK performance on Windows

2006-06-22 Thread Daniel Kasak
Alex Nedelcu wrote:

> Why is GTK's performance so bad on Windows ?
> Of all the gui tookits I use, it has the worse performance.
>
> I am interested in GTK on Windows because I want to make cross-platform 
> applications.
>
> Isn't there a new version on the horizon that will fix this ?
> Or what can be done to tune the performance of GTK interfaces ?
>
> I am using GTK+ version 2.8, and Windows XP.
> The platform I use is Mono with the GTK# bindings,
> but I also made tests in Python with the PyGTK.bindings, and I've got 
> the same results.
>   

I don't think it's so bad. I'm developing gtk2-perl applications and
deploying on a mix of Linux and Windows ( 2000 ) clients, and the
performance is actually quite impressive. It even runs inside vmware on
my Linux desktop quite well, though obviously not at full speed.

As per previous posts re: performance problems, have you tried changing
themes?

Also, what exactly is slow?

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Win32 Binaries

2006-06-01 Thread Daniel Kasak
Surya Kiran Gullapalli wrote:
>
> That's what supposed to happen when one uses the ms-windows theme.
>
>
> I've got it. The stock icons are coming with other themes.
> Thanks,
> Surya

How are you installing / changing themes under Windows?
I've been using a utility from http://members.lycos.co.uk/alexv6/ but if
there are others, I'd like to know.

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Rendering issues under Windows Terminal Services

2006-04-04 Thread Daniel Kasak

Tor Lillqvist wrote:

Daniel Kasak writes:
 > I'm using the latest distribution of Gtk2 for 
 > Windows, from http://members.lycos.co.uk/alexv6/ ( it's gtk-2.8.13 ).


Oh, yet another redistribution site that doesn't offer the
sources... That's against the license.
  


I wasn't aware there was an installer. In fact, I was certain that there 
*wasn't* one. But I see now that there is. New addition? Maybe I just 
missed it all this time. Anyway, I'm downloading it now and I'll test it 
out on a new Win2k install :)


One of this nice things about Alex's distro is that he has a nifty theme 
switcher, *and* lots of themes. I haven't been able to find these for 
Windows anywhere else. And to be perfectly blunt, the default theme on 
Windows looks pretty horrible. Are there any theme switchers for Windows 
in the wild?


As for the licensing issue, it had never occurred to me to look for 
sources on this guy's site. I agree with you that he should provide 
them, and I'll email him and sniff the issue out.


--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Rendering issues under Windows Terminal Services

2006-04-03 Thread Daniel Kasak

Hi all.

I've developed a Gtk app ( Gtk2-Perl ) and installed it under Windows 
2000 ( no service packs ). I'm using the latest distribution of Gtk2 for 
Windows, from http://members.lycos.co.uk/alexv6/ ( it's gtk-2.8.13 ).


The application works *perfectly* when run 'normally'. When the 
application is run through Windows Terminal Services, however, I get 
strange rendering issues - parts of the window are black. A screenshot 
is at:

http://entropy.homelinux.org/worker_accident_inc_black_windows.jpg

I've never seen anything like it. I've also never used Windows Terminal 
Services - the issue is being reported to me by the customer ( who 
provided the screenshot ).


Other than going to Microsoft for help ( I know how helpful they'll be 
), does anyone have any ideas on what's up / how to fix it?


--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Usability of the GTK+ 2 file open dialog

2006-03-07 Thread Daniel Kasak

Michael L Torrie wrote:

On Wed, 2006-03-08 at 10:20 +1100, Daniel Kasak wrote:
  
I'm not so sure about this. I can understand people wanting to have the 
*option* of overriding the Gtk2 File Open dialog with a native windows 
one, but I personally prefer the Gtk2 dialog - apart from it currently 
now knowing about special locations such as 'My Documents', etc. 
Admittedly, I don't insist on using the keyboard, so I can't comment on 
how keyboard-friendly it is.


Having the Gtk2 dialog available on all platforms makes writing 
cross-platform apps a lot easier. It just means I don't have to be as 
paranoid about testing everything on every platform.



I recall similar arguments about Java swing. They argued that having a
consistent UI for one application across all platforms was more
important than have an app that acted in a consistent way with apps on
any given platform.  I think most people would now agree that the latter
is more important to most end users than the former, which is why we
have the WIMP theme, and Java Swing now looks as close to win32 as it
can on windows.
  
There's a big difference between having gtk+ themes to look more like 
windows, and replacing gtk+ functionality with Windows functionality. 
The argument for having consistent functionality across all platforms is 
still the winner for me. If people want to theme gtk+ - including the 
dreaded File Open dialog - to look more like Windows, then great. But 
arguing to have different functionality on different platforms just 
because you happen to like the Windows File Open dialog more than gtk's 
is backwards. If people are so discontent with the gtk+ dialog, then 
they have 2 options: a) Fix the damned thing, b) Stop using gtk+ and 
start using native windows widgets. Of course, if you want to develop 
cross-platform apps, then option b) is out of the question, isn't it?


As for what 'most people' want - a large majority of people want the 
latest version of Windows XP, MS Office, Internet Explorer, Outlook, and 
WinAmp. That doesn't stop those who know better from developing Linux, 
OpenOffice, Firefox, Evolution and xmms. Try these apps out on 'most 
people' and they will completely freak out. The point is that I would 
hope that people using gtk+ are trying to push the envelope a bit, and 
not cater for the lowest common denominator. I think if people are at 
the point where a gtk+ File Open dialog is too mind-blowingly different 
to what they expect, then the rest of gtk+ will be too.

The GTK2 dialog, as it currently stands and is used by apps, cannot be
replaced cleanly by the win32 dialog boxes anyway (or by KDE dialog
boxes when using KDE integration) under all circumstances without
sacrificing some functionality,

Exactly.

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Usability of the GTK+ 2 file open dialog

2006-03-07 Thread Daniel Kasak

Michael L Torrie wrote:

On Tue, 2006-03-07 at 08:53 +0100, Jernej Simončič wrote:
  

On Tue, 07 Mar 2006 16:55:18 +1100, Peter Eckersley wrote:



Is anyone else equally frustrated?
  

Many of us - the new open dialog caused me to start using Windows Exploder
again when I want to open files in GIMP, since it's just faster (and I know
of ^L dialog).



Really under Windows, GTK ought to be using the win32 file selector
instead of it's own one.  That's what users expect.
  
I'm not so sure about this. I can understand people wanting to have the 
*option* of overriding the Gtk2 File Open dialog with a native windows 
one, but I personally prefer the Gtk2 dialog - apart from it currently 
now knowing about special locations such as 'My Documents', etc. 
Admittedly, I don't insist on using the keyboard, so I can't comment on 
how keyboard-friendly it is.


Having the Gtk2 dialog available on all platforms makes writing 
cross-platform apps a lot easier. It just means I don't have to be as 
paranoid about testing everything on every platform.


--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Bug 317387 – CellRendererCombo's "edit ed" signal not firing when needed

2006-02-26 Thread Daniel Kasak

Daniel Kasak wrote:

Hi all.

I have a project nearing completion that is going to have problems 
with the gtk+ bug:

http://bugzilla.gnome.org/show_bug.cgi?id=317387

There is a test script attached to the bug, and I'm also posting it here.

Basically, if you use the mouse to set a value in a CellRendererCombo, 
and then use the mouse to click *outside* the treeview immediately 
after ( ie before clicking anything else in the treeview ), the cell's 
'edited' signal never fires, and the value that you selected is 
dropped. To test, run the attached script and hit the 'dump values' 
button. Note that changes to the 3rd column with the CellRendererCombo 
are only realised after you click somewhere inside the treeview.


I don't suppose there's an easy workaround?


Forgot the test script :)

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au


cellrenderercombo_test.pl
Description: Perl program
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Bug 317387 – CellRendererCombo's "edited " signal not firing when needed

2006-02-26 Thread Daniel Kasak

Hi all.

I have a project nearing completion that is going to have problems with 
the gtk+ bug:

http://bugzilla.gnome.org/show_bug.cgi?id=317387

There is a test script attached to the bug, and I'm also posting it here.

Basically, if you use the mouse to set a value in a CellRendererCombo, 
and then use the mouse to click *outside* the treeview immediately after 
( ie before clicking anything else in the treeview ), the cell's 
'edited' signal never fires, and the value that you selected is dropped. 
To test, run the attached script and hit the 'dump values' button. Note 
that changes to the 3rd column with the CellRendererCombo are only 
realised after you click somewhere inside the treeview.


I don't suppose there's an easy workaround?

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Data Loss bug with current GtkCellRendererCombo

2006-02-26 Thread Daniel Kasak

Daniel Kasak wrote:

Could I please draw a developer's attention to:
http://bugzilla.gnome.org/show_bug.cgi?id=317387

GtkCellRenderCombo's 'edited' signal fails to fire if the user makes a 
selection and then clicks outside the TreeView.


I have included a small script to demonstrate the issue in the bug 
report.



.

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Data Loss bug with current GtkCellRendererCombo

2006-02-07 Thread Daniel Kasak

Could I please draw a developer's attention to:
http://bugzilla.gnome.org/show_bug.cgi?id=317387

GtkCellRenderCombo's 'edited' signal fails to fire if the user makes a 
selection and then clicks outside the TreeView.


I have included a small script to demonstrate the issue in the bug report.

--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Performance under Citrix & WAN?

2005-12-22 Thread Daniel Kasak

Greetings.

I'm beginning on a project that I would like to do in GTK ( Perl GTK, 
actually ).
The app will be running on 50 different sites, on a WAN over DSL, and 
inside Citrix :) We're mainly considering the Citrix option for ease of 
installation / maintenance. It's not a particularly graphically 
intensive app - it will mainly be a single form ( large though ) for 
entering stuff into a database.


Has anyone used a GTK application under the above setup? What is 
performance like? I'm not all that familiar with Citrix, so I'm not 
exactly sure what it will run like. I assume that it does some 
intelligent compression of standard Windows widgets for performance over 
a network. Can I expect decent performance for GTK?


Thanks :)

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


Re: so, is this claim about pango still true? or does nobody actually care?

2005-10-16 Thread Daniel Kasak

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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: FW: Subject matter

2005-07-26 Thread Daniel Kasak
[EMAIL PROTECTED] wrote:

>List,
>
>I am learning GTK+ for implementation on win2k/xp.  I've been studying
>the GTK+ architecture, and appears much more appealing than ms windows
>architecture. Am I at the right mail list for questions about using
>GTK+???
>
>  
>
Yes.

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK under Mac OS 10.3?

2005-07-19 Thread Daniel Kasak
David Topper wrote:

> I'm sorry if this question gets asked every week.  But I did do some
> Googling for it and didn't come up with much other than a seemingly
> dead project.

I will also recommend that you use fink. I wish you good luck with X ...
you're going to need it. You wouldn't believe what I had to go through
to get fink to realise that I had X and development libraries installed.
Also, once I got it working, it didn't stay working for long. I was then
bitten *very* badly by X suddenly refusing to start ... and I was
developing a gtk+ application for a customer on my powerbook! In the end
I finished my project on the only available box I had ... a 350Mhz G3
running Linux. Amazingly, the performance of the GUI was actually better
on the G3 than on my powerbook running OS X ( 1Ghz powerbook, this is ).

I am now installing Gentoo Linux on my powerbook. No prizes for guessing
what the 'last straw' was.

Enjoy and beware.

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: gtk2 apps under other desktops ( eg Enlightenment )

2005-06-06 Thread Daniel Kasak
Michael L Torrie wrote:

>On Tue, 2005-06-07 at 08:03 +1000, Daniel Kasak wrote:
>  
>
>>Hi all.
>>
>>I just tried out Enlightenment-0.17 on my work PC and have lost a couple
>>of important things.
>>
>>Mainly, I've lost my gtk2 theme preferences - ie all gtk2 apps start
>>with the default theme. If I log out of Enlightenment and back into
>>Gnome, my Gtk2 apps get the correct theme. What's required for my apps
>>to know the theme I've selected previously?
>>
>>
>
>Before running gtk apps, run /usr/libexec/gnome-settings-daemon (path
>may vary).
>
That's the one.
Thanks :)

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


gtk2 apps under other desktops ( eg Enlightenment )

2005-06-06 Thread Daniel Kasak
Hi all.

I just tried out Enlightenment-0.17 on my work PC and have lost a couple
of important things.

Mainly, I've lost my gtk2 theme preferences - ie all gtk2 apps start
with the default theme. If I log out of Enlightenment and back into
Gnome, my Gtk2 apps get the correct theme. What's required for my apps
to know the theme I've selected previously?

The other thing I've lost - which also relates to a bug I've encountered
after upgrading Gnome - is all the icons in Nautilus. Everything is
represented by a generic "unknown" type of icon - ie the one that's used
for unknown file types. Also, if I right-click on one of these icons and
select 'properties', and in the dialog that appears I click the emblems'
tab, there are *no* icons here either. What is required to invigorate
nautilus with it's pretty icons?

And lastly - carrying on from the last point - on a number of Gentoo
boxen, after upgrading Gnome ( eg from 2.6 to 2.8 on some, and also from
2.8 to 2.10 on others ) I've got the same problem with nautilus
displaying the 'unknown' icon for everything - but of course this is
when I'm actually *running* Gnome. As above, but stated slightly
differently, what could have happened during the upgrade to bring this
sorry state of affairs about? I've tried everything, from deleting my
.gnome2 etc folders, to creating new users. Nothing brings my icons back.

Any help greatly appreciated :)

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


Re: Report generator

2005-05-03 Thread Daniel Kasak
Rodrigo Moya wrote:

>On Wed, 2005-05-04 at 09:14 +1000, Daniel Kasak wrote:
>  
>
>>Francisco Santiago Capel Torres wrote:
>>
>>
>>
>>>Hi,
>>>
>>>I am porting my report generator done in Qt to GTK. 
>>>Before going on, could you tell me what other report generators are already 
>>>done or being done for GTK under the GPL?
>>> 
>>>
>>>  
>>>
>>None.
>>
>>
>
>there is Papyrus: http://papyrus.treshna.com/
>  
>
Yeah I know papyrus.

I actually donated some money to get a couple of issues fixed ( which
the author did promptly ).
It's quite temperamental. I especially didn't like some of the
formatting issues it had. Apparently this was due to it using latex. I
found it incredibly difficult and frustrating to get a simple report
working, and it offers practically no debugging information if something
goes wrong. Plus it's written in C ( I'm using Perl ), so it really was
a challenge to get working - even to get it compiled.

I *did* like the XML report definition, which I hope to clone in
PDF::ReportWriter down the track.
I *didn't* like the idea of papyrus performing the query itself - I'd
rather be able to pass the data in. And yes I know I can dump the data
in a temporary table and the point papyrus at it ... this is what I
ended up doing.

Also, I'm pretty sure that papyrus didn't support colour. Oh yeah plus
there was no GUI for it last time I checked, but the author was working
on one.

Anyway, the frustrations that latex caused me and the author led me to
believe that a better way to go about things was to write something ( in
Perl of course ) which renders to Postscript or PDF directly, and now
that I've got a proof-of-concept in under 400 lines of code that handles
formatting very gracefully, I stand by that view 100% :)

I just checked out the homepage of papyrus again. The 'GUI' that it has
is only a GUI to select which report to run ... not to define the
report. The report definition still has to be edited in XML. Or am I
wrong? Not that the XML layout was bad. Like I said, this was one of the
best things about papyrus - it's just that the damned formatting didn't
follow what I put in the XML - unless I read from the bible backwards
while waving a dead chicken in the air...

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Report generator

2005-05-03 Thread Daniel Kasak
Francisco Santiago Capel Torres wrote:

>Hi,
>
>I am porting my report generator done in Qt to GTK. 
>Before going on, could you tell me what other report generators are already 
>done or being done for GTK under the GPL?
>  
>
None.
At least none that I know of, and I've looked high and low.
I just released PDF::ReportWriter, which is available on my website:
http://entropy.homelinux.org ... which is unfortunately down at the
moment ( botched mod_php upgrade ), and also via cpan. I basically wrote
it because of a burning need for a report generator that could output to
PDF and handle page breaks in an intelligent way. There are *very* few
other report generators around, and I only know of 2 with a GUI, and
they're both QT. There's Rekall ( which I could never get 'into' ), and
there's a part of the KOffice project - which I think has stalled.

I'd very much like to see a decent report generator with a GUI -
especially with a GTK GUI. Port away :)

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Crash when exiting under Win32

2005-04-28 Thread Daniel Kasak
I'm using Gtk2-Perl to build GUI applications.
Mainly, I'm using:

Gtk2
Gtk2::GladeXML

The apps run *very* nicely under Linux.

Under Windows, I've installed ActiveState Perl ( 5.8.6 build 811 ), and
I've used various versions of Gtk2 from various sources, from grabbing
binaries and extracting them to C:\usr\bin to using different Gtk2
installers. I'm currently using gtk-2.6.7 from
http://members.lycos.co.uk/alexv6/

The apps *run* well under Windows ( a little slower, but that's to be
expected ), however *every* time I exit the app ( and no matter which
version of gtk2 I use ), I get:

Perl.exe has generated errors and will be closed by Windows

If I look at the Dr Watson report in the admin tools, it says:

The application, , generated an application error The error occurred on
04/28/2005 @ 13:39:48.796 The exception generated was c005 at
address 01DA5848 (g_signal_emit_by_name)

The error and the address is the same each time.

That's a Gtk2 error, isn't it? Should I enter a bug report for this?

-- 
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: getting xmms to work

2005-01-19 Thread Daniel Kasak
[EMAIL PROTECTED] wrote:
Hi everyone,
When I try to start xmms I get
xmms: error while loading shared libraries: cannot open shared object 
file: cannot load shared object file: No such file or directory

But
cat /var/log/packages/xmms
and a check of all appropriate dirs reveals that everything is in it's place.
FWIW I'm using the 2.4.28 kernel.
Rgrds,
-Gil
 

What's the output of:
ldd `which xmms`
Those are both back-ticks, by the way ( next to the '1' on the keyboard ).
--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
Title: CanIt Vote for ID 166803






The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote




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


Re: gtk+ 2 on xfree86 3.3.6

2005-01-17 Thread Daniel Kasak
Federico wrote:
Hi all,
I must install a software that use gtk+ 2. I have an xfree86 3.3.6 
serverX.
I have an old video card and I can not upgrade my xfree86.

When I compile the gtk source I have this error:
checking for x86 platform... yes
checking compiler support for MMX... yes
checking for freetype-config... /usr/local/bin/freetype-config
checking For sufficiently new FreeType (at least 2.0.1)... yes
configure: error: Xft version 2 is required for x11 target
I ask you, it's possible to install gtk2 on an xfree86 3.3.6 ? It's 
possible to disable the Xft option?
If NO,  any ideas ?

bye Federico.
You could try xorg-x11 with a generic VESA driver. Do you need acceleration?
Title: CanIt Vote for ID 165133






The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote




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


No fonts found: OS-X?

2005-01-11 Thread Daniel Kasak
Hi all.
I'm trying to get Gtk2 running on a Mac OS-X.
Unfortunately I'm quite new to OS-X ( been using Linux for ages ) and I
think I've messed things up in a big way.
I've installed & reinstalled XFree a couple of times, via a couple of
methods:
- binary installer from apple
- darwin ports
- binary installer from XFree
I installed Gtk2 and dependancies via darwin ports. At one point shortly
after this I actually had X running, but it somehow stopped working, and
I  decided to reinstall with the binary installer from XFree.
Anyway, at the moment, I've got X running ( glxgears absolutely *flies*
), but I can't run any gtk apps. They all say:
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org
I tried uninstalling and reinstalling fontconfig via darwin ports. This
didn't change anything. I have an /etc/fonts directory, with fonts.conf
and fonts.dtd files in there. They both look sane - they have the
correct directories for an OS-X system, and the fonts are certainly in
those directories.
Does anyone know what's up?
Thanks :)
Dan
Title: CanIt Vote for ID 161697






The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote




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


Re: ComboBox with cellrenderer

2004-10-24 Thread Daniel Kasak
B McAndrews wrote:
I have played with muppet's cellrenderprogress custom renderer. When I
go to display the combo list, I get these messages, the list still gets
rendered but performance on this thing is pretty poor.  I've attached
the program if anyone wants to see it.  My question is why isn't the
GtkCellView type recognized?
 


Wrong list dude.
Repost to [EMAIL PROTECTED] and you will most likely get more help.
--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
Title: CanIt Vote for ID 120771






The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote




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


Any plans for a SpinButton cell renderer for GtkTreeView?

2004-10-04 Thread Daniel Kasak
As subject suggests, I'd be delighted to have a SpinButton cell renderer 
for GtkTreeView.
I'm programming with Gtk2-Perl, and I'm using a custom cell renderer 
that does what I need, but if you have any more than a couple of rows of 
data, it's *very* slow indeed.

Should I create a 'feature request' bug at http://bugzilla.gnome.org ?
--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
Title: CanIt Vote for ID 110348






The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote




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


Clearing the selection in a GtkCalendar

2004-09-08 Thread Daniel Kasak
Hi all.
Is there any way a *user* can clear out the date selected in a GtkCalendar?
I'm developing apps with Perl / Gtk2 and I can get the desired effect in 
code by setting the day to 0 ( which visually de-selects all days ) but 
I want to know if there is some way the user can do this without me 
giving them a button to do so.

Dan
--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
Title: CanIt Vote for ID 97144






The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote




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


Creating printable reports

2004-07-20 Thread Daniel Kasak
Hi all.
I'm a newbie Perl developer, and I'm part-way through porting our 
database front-ends from Access to Perl / Gtk2 ( running on Linux ).
We need a few printable reports that I have to rebuild. I've started out 
doing them in a Perl CGI script, exporting an HTML 'report' and firing 
up Mozilla to view / print them. This is less than perfect. Mozilla 
doesn't support the @page directive, so controlling pagination and 
headers / footers is a nightmare.

What options do I have with GTK / Gnome?
Requirements are basically headers & footers and pagination, and of 
course Perl bindings, but I'll check this out.
Any takers?

Thanks!
Dan
--
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: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au
Title: CanIt Vote for ID 71078






The following links have been inserted by the NUS Consulting internal spam filter and are for NUS Consulting staff only
Spam
Not spam
Forget previous vote




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


  1   2   >