t t/a.t line 92.
# got: undef
# expected: 'CODE(0x20a7dea97b0)'
On Mon, 19 Jul 2021 at 14:25, Mike Martin wrote:
> Further info (gcc wasnt installed)
>
> "C:\msys64\mingw64\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty --
> Glib.bs blib\arch\a
ghal
wrote:
> On 2021-07-17 at 15:19:25 +0100, Mike Martin via gtk-perl-list wrote:
> > Hi I am struggling with this, been trying to install on mingw64 for a
> week.
> >
> > Anyone had any joy recently?
> > various issues tried compiling one by one and glib fails wi
| ^~~~
mingw32-make: *** [Makefile:452: Glib.o] Error 1
On Mon, 19 Jul 2021 at 12:36, Mike Martin wrote:
> Thanks for this.
> I am sill getting an issue, it seems to be an oddity with paths
>
> from cpanm build.log
>
> [ CC Glib.c ]
> process_begin: CreateProces
| ^~~~
mingw32-make: *** [Makefile:452: Glib.o] Error 1
On Mon, 19 Jul 2021 at 12:36, Mike Martin wrote:
> Thanks for this.
> I am sill getting an issue, it seems to be an oddity with paths
>
> from cpanm build.log
>
> [ CC Glib.c ]
> process_begin: CreateProces
ghal
wrote:
> On 2021-07-17 at 15:19:25 +0100, Mike Martin via gtk-perl-list wrote:
> > Hi I am struggling with this, been trying to install on mingw64 for a
> week.
> >
> > Anyone had any joy recently?
> > various issues tried compiling one by one and glib fails wi
Hi I am struggling with this, been trying to install on mingw64 for a week.
Anyone had any joy recently?
various issues tried compiling one by one and glib fails with symbols error
(using cpanm)
On Thu, 8 Jun 2017 at 12:31, wrote:
> Hello everybody,
>
> I have created a little tutorial about pe
How do I use Gtk macros in perl-gtk?
eg in c
GTK_IS_CONTAINER(widget)
What is the corresponding method in perl-gtk
thanks
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list
I am getting annoying G_IS_ObJECT warnings when I have a cell_data_function
my $cellfunc1=$widgete{controlview}->get_column(1)->get_cells;
$widgete{controlview}->get_column(1)->set_cell_data_func ($cellfunc1,
sub {
my ($column, $cell, $model, $iter,$cellfunc1) = @_;
my $path=$
When I tried running my program from gdb I got an error about program type,
when I attached gdb to a running instance no widgets were responsive
On Wed, 17 Apr 2019 at 14:36, Emmanuele Bassi wrote:
> On Wed, 17 Apr 2019 at 14:11, Mike Martin via gtk-perl-list <
> gtk-perl-list@gnome.o
I've now got this dreaded message.
Is there any way to find out which line is triggering it?
thanks
Mike
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list
After a fairly frustrating day working out how to change the background on
togglebutton when pressed, here is my code, if it helps anyone
my $display = Gtk3::Gdk::Display::get_default ();
my $screen = $d->get_default_screen;
my $provider = Gtk3::CssProvider->new;
$provider->load_from_data ( 'butto
Apparently , yes this is a bug in gtk upstream
https://gitlab.gnome.org/GNOME/gtk/issues/794
On Tue, 5 Mar 2019 at 23:12, Mike Martin wrote:
> I am trying to toggle sorting on a liststore, so I am trying to use
>
> $list->get_column(0)->set_sort_column_id(-2)
> where
I am trying to toggle sorting on a liststore, so I am trying to use
$list->get_column(0)->set_sort_column_id(-2)
where list is a treeview containing a liststore
as per
GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID
#define GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID (-2)
The GTK_TREE_SORTABLE_DEFAULT_
.
Files=1, Tests=162, 1 wallclock secs ( 0.07 usr 0.02 sys + 0.44 cusr
0.05 csys = 0.58 CPU)
Result: FAIL
On Tue, 26 Feb 2019 at 17:25, Jeff via gtk-perl-list <
gtk-perl-list@gnome.org> wrote:
> On 26/02/2019 13:21, Mike Martin via gtk-perl-list wrote:
> > Trying to build Gtk3-pe
Trying to build Gtk3-perl and getting the following errors
Test Summary Report
---
t/overrides.t(Wstat: 65280 Tests: 162 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 233 tests but ran 162.
Files=22, Tests=843, 5 wallclock secs ( 0.1
I have a wierd issue with iters and and a liststore with a combo cellrender
and edited signal.
If I dont sort the column everything is fine the iter points to the right
row.
However if I do sort the iter points to a different row
Code is
setup for column renderers
sub tv_cols {
my ($cols,$li
Ignore message, found issue, needed a return value of 0 to the sub-routine
On Fri, 18 Jan 2019 at 10:47, Mike Martin wrote:
> Hi
> I have a procedure which should be called on error (if a directory doesn't
> exist a window pops up as follows;
>
> foreach my $fil
Hi
I have a procedure which should be called on error (if a directory doesn't
exist a window pops up as follows;
foreach my $filesg (keys %{$changes}){
my
($filename,$dirname,$ext)=fileparse($changes->{$filesg}->{newname},qr/\.[^.]*/);
unless (-d $dirname){
Hi
$datamwidgetw->{keyfieldc}->get_cells->signal_connect('editing-started'=>sub{
print 'editing',"\n";
my ($cell,$combo)=@_;
my $model=$combo->get_model;
print $model;
$model->clear;
}
)
This doesnt do anything (at all),
$datamwidgetw->{keyfieldc} is
partial answer to my own question if I replace insert_with_valuesv to
insert_with_values it works
On 7 August 2017 at 17:35, Mike Martin wrote:
> Hi
> I am trying to use insert_with_valuesv to populate a liststore as follws
>
> my ($resultmodel,$result)=@_;
> no strict '
Hi
I am trying to use insert_with_valuesv to populate a liststore as follws
my ($resultmodel,$result)=@_;
no strict 'refs';
#print $resultmodel;
my @cols=0 .. scalar @{$result->[0]} -1;
foreach my $f (@{$result}){
my $iter=$resultmodel->insert_with_valuesv(-1,\@cols,$f);
}
$r
file}->clear;
$widgetsm{tunefile}->pack_start ($renderer, 'FALSE');
$widgetsm{tunefile}->add_attribute ($renderer, text => 0);
$window->resize($w,$h);
}
}
);
On 20 June 2017 at 00:59, Mike Martin wrote:
> Is this possible?
>
&g
Is this possible?
ie I have a combobox based on a two column liststore
I want only the first column to be shown in the combobox, but both columns
to be shown in the popup
The model is populated by an array of filename/directory name
I'm sure I must be missing something obvious
thanks
example
Hi
I have a small (3 columns including filter column) treeview with a
treemodel filter.
Editing works fine if no filter is applied, but if a filter is applied I
cant get the edit to apply to the correct row in the underlying model.
I assume its something to do with setting an iter_to_child_iter m
Hi
I think I need to access the g_ methods directly within my app, in
particular the g_signal stuff
eg:
where $vtype is a widget
$vtype->signal_list_ids;
$vtype->signal_lookup('changed');
The Gtk3 docs seem to imply that this should work, but obviously I am doing
something wrong
thanks
Mike
_
Is this possible?
I have tried $widget->signal_lookup, but I get
Can't locate object method "signal_lookup" via package "Gtk3::ComboBoxText.
Same for signal_list_ids
Basically I need to block changed signal while the combobox model gets
updated by a sub in another part of the application
___
*I have a weird issue on an application I am developing*
*The application is fully tabbed and runs loops to transcode video files,
and I would like to be able to run the main transcoding loop fully in
parellel, ie: the process running in one tab is totally separate to that
running in another tab*
Suspected as much. Looks like it's back to square one.
On 15 Mar 2017 3:08 p.m., "Brian Manning" wrote:
> On Tue, Mar 14, 2017 at 4:24 AM, Mike Martin wrote:
> > Hi
> > It was suggested that I look into using glib threads after posting the
> > problem belo
Hi
It was suggested that I look into using glib threads after posting the
problem below to gtk-list
I keep getting method not found when I try to create threads using
Glib::ThreadPool->new or
Glib::Thread->new
Are g_threads not implemented?
Alternately any other ideas on the issue
thanks
Mike
Hi
I have two questions that I cant findout how to do with simple list
1. Sorting
I want to enable manual sorting by clicking on header, but disable the
automatic sorting that happens when you change a value
2. Is there a way that the value in the cell gets updated when you leave
the liststore (e
Anyone got a way to get the number of rows / last row inserted from an
existing Gtk3::Grid
thanks
Mike
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-perl-list
Hi , I am migrating an app from gtk2 to gtk3 and when I call child_get from
a table widget I am getting
Gtk3:;Table has no method child_get.
Could this be related?
On 10 August 2016 at 12:40, Daniel Kasak wrote:
> That's it :) Thanks Torsten.
>
> Dan
>
> On Tue, Aug 9, 2016 at 5:53 PM, "Torsten
Anyone else seeing significant issues with upstream gtk?
In particular directory selection has been broken since April and ditto
scrolledwindow. Not seen any bug reports but breaking various apps of mine
___
gtk-perl-list mailing list
gtk-perl-list@gnome
Hi when I remove a row in a simplelist I get the following warning
Gtk-CRITICAL **: gtk_list_store_get_value: assertion `VALID_ITER
(iter, list_store)' failed at /usr/lib/perl5/Gtk2/SimpleList.pm line
248.
*** unhandled exception in callback:
*** [gperl_sv_from_value] FIXME: unhandled type - 0
Hi
I am working on getting CellRendererCombo working as I want
Code
##Setup combo column type##
Gtk2::SimpleList->add_column_type(
'combo',type=>'Glib::Scalar',renderer=>'Gtk2::CellRendererCombo',attr=>
sub{
$_[1]->set("text",$_[2]->get($_[3],$_[4]));
$_[1]->set("has_entry","TRUE");
$_[1]->set("ed
On 02/10/2010, Mike Martin wrote:
> I think we may have crossed as that is more or less what I have done
>
$cat_rend->signal_connect('changed'=>sub{
my $rend_iter=$_[2]; # iter of selected item
$valid=$cat_rend->get("model")->get_value($rend_iter,0);
}
);
$
annoying - just would be nice to be able to get the path direct from the model
On 01/10/2010, Kevin Ryde wrote:
> Mike Martin writes:
>>
>> if ( $cell->get("model")->get( $combo_iter, 1 ) eq $val ) {
>
> If you know what columns are what then th
Is there any way to do this
All methods seem to require path to get iter and vice-versa
This was the only way to achieve what I wanted (seriously unscalable
and prone to error)
my $combo_iter = $cell->get("model")->get_iter_first;
my $found_match = 'FALSE';
my $new_text;
while ( $combo_it
On 18/09/2010, Mario Kemper wrote:
> Did you have a look at the Gnome2::Wnck module? It covers most of the
> functionality you might need.
>
> Gnome2::Wnck::Screen provides $screen->get_window_manager_name:
> http://gtk2-perl.sourceforge.net/doc/pod/Gnome2/Wnck/Screen.html
>
> Gnome2::Wnck::Window
On 17/09/2010, Kevin Ryde wrote:
> Mike Martin writes:
>>
>> ->{table}->child_get_property($w,'left-attach');
>
> Yes.
>
>> I cant find any way to get the X11 name from GDK,
>
> $win->property_get, but it's a little icky :). I forget
Hi
After a frustrating couple of days googling I have come up with the
follwing bits of code to solve a couple of things which seem to have a
lot of questions on google but no answers. Comments apprieciated
1. getting widgets from a table matching co-ordinates (ie: row/column)
foreach my $w ($ta
Hi - getting confused
I have a liststore
my $dvd_modelx=Gtk2::ListStore->new('Glib::String');
foreach my $list (keys %cds){
my $iter=$dvd_modelx->append();
$dvd_modelx->set($iter, 0,$list )
}
my $wid=Gtk2::ComboBox->new_with_model($dvd_modelx);# fails to add to combobo
On 14 August 2010 00:41, muppet wrote:
>
> On Aug 12, 2010, at 11:07 PM, Mike Martin wrote:
>
>> This works
>>
>> if ($append == 1){
>>
>> die (main::encode_loop) if $count == 100; # this is a count as a test
>> - the loop goes from 1-150
>>
This works
if ($append == 1){
die (main::encode_loop) if $count == 100; # this is a count as a test
- the loop goes from 1-150
}
but if I try to put it as the action for a cancel sub it fails silently
$widget{btn_cancel}->signal_connect('clicked', sub {
die (main::encode_loop)
);
an
Hi
I have this code
## Master hash to define widgets with options ##
my %widgets=(
1=>{name=>'$open_hbox',type=>'Gtk2::HBox',action=>'new',opts=>[0,0],wname=>'open_hbox'},
2=>{name=>'$encode_open_lab',type=>'Gtk2::Label',action=>'new',opts=>[$sel_opts_open_lab],wname=>'open_label'},
3=>{name=>'$im
Does such a thing exist in Gtk? eg: if I do something like
foreach my $widget ($vbox->get_children){
print $widget
}
It will fail if there are any widgets that dont have children such as
a label or a GTkEntry
I've googled and searched API docs but cant see anything
___
On 27 February 2010 22:28, Mike Martin wrote:
> I am having issues with the performance of simple list in a wierd way
>
> Basicaly I have a simple list object embedded into a window which gets
> data from a sqlite database via user defined criteria
>
> If I dont access the
I am having issues with the performance of simple list in a wierd way
Basicaly I have a simple list object embedded into a window which gets
data from a sqlite database via user defined criteria
If I dont access the simplelist at all changes to the data are nearly
instantaeous however if access t
Hi I am trying to install packages from http://lostmind.de/gtk2-perl/
However when I try to install with ppm I
"PPD does not support this platform"
any ideas (Gtk ,glib runtime, and activestate perl installed fine)
___
gtk-perl-list mailing list
gtk-pe
Basically my question is :
In msaccess you can have a query linked to a combox with two or more
values, with the first being the data value and the second being for
presentation
You can have the "presentation" value appear in the combobox by hiding
the first column, but the first column is still t
Hi is there a way of accessing (removing) the contents of the
underlying liststore of a ComboBox constructed using simple text
methods
To Explain I have a combobox which depending on selection adds a
GtkEntry, GtkComboBox or GtkComoboBoxEntry, or directly runs a query.
Everything works fine excep
Hi
Is it possible to edit the contents of stock popup menus eg: the edit
menu that is automatically attached to a Gtk::Entry
I have worked out how to add add entries using populate -popup signal,
but I cant find any way to remove entries
thanks
___
gtk-
Hi
I have a drop-down box which adds to the display depending on selection
Combobox
Comboboxentry
Entry
However I am having problems with signals with the combobox entry
the actions are
Combobox = changed
Entry = Keypress event (tab/entry/return)
however for the comboboxentry, changed isnt ac
Hi
Since updating to F9 and so per l5.10 and appropriate gtk-perl
packages I keep getting a message about fail to llazy-load
when there is a problem in my code with usually references to glib.pm
or sometimes another module. The message gives go indication of where
in the script the error has occu
I am trying to create a regular expression for an if statement from
computed values passed to the sub-routine as follows
sub get_list {
my ($black_list,$table,$crit)[EMAIL PROTECTED];
# $crit is a hash reference containing key to search and search expression
my $listings;
my @crit='$guide{$guide
I have a long-running foreach loop which I want to give feedback through the GUI
ie:
foreach my $keys1 (sort {$a <=> $b} keys %menu_jpegs){
&gd_frame($keys1,$sel_opts_vbox,$menu_file)
}
which runs
sub gd_frame {
my ($keys1,$sel_opts_vbox,$menu_file)[EMAIL PROTECTED];
my $frame_new=$options{'d
Hi
I was always under the impression that a foreach loop iterated over a
list sequentially, which in every other case at least seems to happen.
However I have the following code
sub encode_loop {
my ($opts,$prog,$ext,$sel_opts_vbox)[EMAIL PROTECTED];
my $subname='encode';
foreach my $fil
I have the following code
#caller;
my %titles;
my %dvd_titles;
$dvd_act_btn->signal_connect('clicked'=>sub{$count++ &&
&dvd_setup($vbox2,$count,$sel_opts_vbox,\%titles,\%dvd_titles)});
#sub called
sub dvd_setup {
my ($vbox2,$count,$sel_opts_vbox,$titles,$dvd_titles)[EMAIL PROTECTED];
my $subnam
Hi
I have the following function which gets the values from nested h/vboxes.
sub get_files {
my ($sel_opts_vbox)[EMAIL PROTECTED];
my @files;
my @add_opts;
foreach my $child ($sel_opts_vbox->get_children){
if ($child->get_name eq 'filesel'){
foreach my $child1 ($child->get_children){
foreach my $
On 31/01/07, Mike Martin <[EMAIL PROTECTED]> wrote:
> I have a Gtk2::Simplelist setup which is working fine except I cant
> delete any rows
>
> ie: this works
> $add_encode_type_btn->signal_connect('clicked',sub{push
> (@{$mod_model->{data}},[undef,undef
I have a Gtk2::Simplelist setup which is working fine except I cant
delete any rows
ie: this works
$add_encode_type_btn->signal_connect('clicked',sub{push
(@{$mod_model->{data}},[undef,undef,undef,undef,undef])});
which adds a record
but this doesnt
$delete_encode_type_btn->signal_connect('clic
Is it possible to add a clicked signal to a combobox
ie: when I click the combobox it runs a sub before showing the list.
I have tried using button_prees_event in an enclosing eventbox but no joy
What I am trying to do is to update the list of the combobox from a
prefernce dialog
I have a butto
I have the following code using IO watch
open($file, "-|","$prog $inp1 $opts $newfile 2>&1" );
my $end_mark=$buffer->create_mark('end',$buffer->get_end_iter,0);
our $tag= Glib::IO->add_watch ( fileno($file), ['in', 'hup'], sub {
my ($fileno, $condition,$tag) = @_;
if ($conditi
I have the following code
($prog in this case is customisable ffmpeg commands)
else {
$pid=open($file, "-|","$prog $inp1 $opts $newfile 2>&1" )
or die "Failed running perl subprocess\n";
$pid1=$pid+1; # not relvant
push (@pids,$pid1); # to this issue
}
our $tag= Glib::IO->add_watch ( fileno($fi
Is it possible to alter the background color for a box widget. I am
not having a lot of luck
To explain I have a dynamically created hbox added to a vbox inside a frame.
In this hbox I have two widgets a label frame (a file name) and a remove button.
I would like the background to be white so t
Does anyone have any ideas of how to go about this.
Basically I want to throw up a dialog asking for password and pass
this to the main program.
However everything I have tried so far throws me back to typing
password at shell
Any help appreciated.
__
On 5/13/06, muppet <[EMAIL PROTECTED]> wrote:
On May 12, 2006, at 10:14 AM, Mike Martin wrote:
> I am having problems with using IO::Watch Gtk2::Helper etc under a
> foreach loop.
>
> For some reason it will only run the last element of the array. Here
> is example code.
[
Is it possibe to show a clickable http link using only gtk-perl?
All I have been able to find is something using gnome.
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
I am having problems with using IO::Watch Gtk2::Helper etc under a foreach loop.
For some reason it will only run the last element of the array. Here
is example code.
sub watch_loop {
my @files2=arr_create();
my ($opts,$prog,$ext)[EMAIL PROTECTED];
foreach my $files (@files2){
#my [EMAIL PROTECT
69 matches
Mail list logo