Greetings all;

It appears that there is no longer any support for GTK+2 left in wheezy, 
at least not that I can find and install, its GTK3 or do without.

I've found this page:

<https://developer.gnome.org/gtk3/stable/gtk-migrating-2-to-3.html#id-1.6.3.3.7>

But I can't see the connection between what it says, and this xml file 
used for a camview launcher, and which presumably works ok on a 7 yo 
*buntu system.

But we're stuck on wheezy, which has only glade3, version 3.12.2 TBE.
Jessie/Stretch may have a better setup, but I don't know. What I have 
done for extra display on the pi's jessie install has all been done with 
the pyvcp stuffs in the user docs, but that is missing so much that 
doing anything really informative eats up screen real estate like it was 
a bag of M&M's. Much of the wasted space could go away with two changes, 
such as the huge white space around the text of a button, and a pin or 2 
to set the buttons background color so one could tally the state of that 
button by the color of the button.

But that is not my present problem. I need to convert this bit of xml:

<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="2.24"/>
  <!-- interface-requires gladevcp 0.0 -->
  <!-- interface-naming-policy project-wide -->
  <object class="GtkWindow" id="window1">
    <property name="can_focus">False</property>
    <child>
      <object class="CamView" id="camview1">
        <property name="visible">True</property>
        <property name="camera">0</property>
        <property name="draw_color">#FFFF00000000</property>
        <property name="frame_width">640</property>
        <property name="frame_height">480</property>
        <property name="circle_size">150</property>
        <property name="number_of_circles">5</property>
        <property name="radius_difference">10</property>
        <property name="autosize">False</property>
        <property name="cam_settings"></property>
      </object>
    </child>
  </object>
</interface>

To be executed by glade3.
But the reported errors seem to be buried in code well removed from the 
above xml script.

Fed into glade(3) I get errors like missing gladevcp catalog. Draws an 
orange box with at least 2 showstopper errors. The first is a box 
advising "Failed to 
load /home/gene/linuxcnc/configs/GO704fast/camview.glade"

Closing that popup, then draws an orange box with 2 buttons, delete and 
delete-all.

In glades upper right corner it shows:

Window1 GtkWindow
  camview1 GladeObjectStub
I poked around and set the size of the window, all without affecting the 
orange box, but without finding a widgit for displaying video in glades 
many menu's.

Since I have a copy of the original, I then saved it, getting this:
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <!-- interface-requires gtk+ 3.10 -->
  <!-- interface-requires gladevcp 0.0 -->
  <object class="GtkWindow" id="window1">
    <property name="can_focus">False</property>
    <property name="window_position">center</property>
    <property name="default_width">640</property>
    <property name="default_height">480</property>
    <property name="type_hint">menu</property>
    <child>
      <object class="CamView" id="camview1">
        <property name="visible">True</property>
        <property name="camera">0</property>
        <property name="draw_color">#FFFF00000000</property>
        <property name="frame_width">640</property>
        <property name="frame_height">480</property>
        <property name="circle_size">150</property>
        <property name="number_of_circles">5</property>
        <property name="radius_difference">10</property>
        <property name="autosize">False</property>
        <property name="cam_settings"/>
      </object>
    </child>
  </object>
</interface>

Starting linuxcnc then runs, but spits out an error at the maximum screen 
update rate the machines video can do, showing:
VIDIOC_QBUF: Invalid argument
VIDIOC_QBUF: Invalid argument

So obviously I am in way over my head. And no clue what to do next.

Are there more glade widgits I need to install?  Or have I once again 
went down a rabbit hole and found an upset badger?
  
Thanks for any clues on how to proceed.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to