Debian Programming :: Using Glib To Create Menu File

May 12, 2015

I am using GTK and C and on my application I have a Drag and drop feature.

Code: Select allicon_view = gtk_icon_view_new_with_model(create_and_fill_model(pALP));
   g_object_unref(pALP->list_store);      /* destroy model automatically with view */
   gtk_icon_view_set_selection_mode(GTK_ICON_VIEW(icon_view), GTK_SELECTION_SINGLE);
   gtk_icon_view_set_reorderable(GTK_ICON_VIEW(icon_view), TRUE);
   gtk_icon_view_set_text_column(GTK_ICON_VIEW(icon_view), COL_DISPLAY_NAME);

[Code] ....

The drag and drop works fine but when I exit the application and enter again, the changes of the drops are not saved, meaning the new location is not saved. I understand that in order to save the location of the drops I need to create a menu file and write some xml, But how do I do this? it there another way?

View 0 Replies


ADVERTISEMENT

Programming :: Script To Create .menu File (recursively Read Directories)?

Nov 4, 2010

I've found myself in the situation where I need to create a menu in gnome/kde for a directory structure full of documents.The directory structure looks like this:

Code:
DOCS/
.. REFERENCES/

[code]...

View 1 Replies View Related

Programming :: How To Create A Menu In C Like Bash's Select

May 23, 2011

Im wondering how to create a menu in c like bash's select. I imagine there is already something out but I don't know what it would be. Im a c newb but been scripting for a long time now and trying to pick up a little c.this would be what I am looking to display:

Code:

1) option 1
2) option 2
3) option 3

Make a selection:obviously 1,2,3 would be the only valid selection and anything else would say invalid or something like that.

View 2 Replies View Related

Programming :: Create A Multi Selection Menu?

Sep 18, 2010

I am creating a program that need menu with multi selection option for shell (CLI).I am using of Bash scripts.something that will look like that:

Menu:
[ ] option 1
[x] option 2

[code]...

View 2 Replies View Related

Ubuntu :: Create A Menu.lst File From Scratch?

Feb 6, 2010

i have just installed ubuntu 10.04 dvd version and ho and behold grub error 15 just amazing any way i enter the partition via live cd thinking i edit the menu.lst file and that it but the folder grub it completly empty what is going here and how can i fix this?

View 9 Replies View Related

Ubuntu :: GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: Ignoring No-arg, Optional-arg Or Filename Flags

Jun 15, 2011

Quote:

(gimp:4216): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags ( on option of type 0
segmentation fault

gimp stopped working on kubuntu after installing updates, any fix?

View 9 Replies View Related

Debian :: Create A Shortcut In The Menu?

Apr 3, 2011

I installed the software "Stellarium" from a installer I downloaded, but no shortcut was added to the menu. How can I create one? My desktop environment is LXDE.

View 5 Replies View Related

Programming :: Create A Bash Menu Script For Home Server - Restore Files From A Backup?

Jan 19, 2011

I would like to create a bash menu script for my home server For instance if i were to type ./script It would then bring up 3 options

a. Create a backup
b. Restore files from a backup
c. Quit

If you were to select a or b it should then ask you were you want to backup or restore from. And if i were to type in an incorrect letter i should get an error and take me back to menu. I have attepmted this a view time now and have magaged to get the menu up using parameters

View 9 Replies View Related

Fedora X86/64bit :: Libdbus-glib-1.so.2: Cannot Open Shared Object File: No Such File Or Directory

Jun 18, 2009

I've just installed F11 (x86_64) on my computer. I've been using x86_64 since Fedora 7 and normally I use a manually installed i386 firefox/thunderbird. This time I've tried to do the same using Fireox 3.5b4 but I got many troubles. The last error I got is:

./firefox-bin: error while loading shared libraries: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory but that lib is not available on the standard repository. I've tried to use the i386 version of thunderbird (2.0.0.9) but I got this error: ./thunderbird-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory but on the repository there is just the libstdc++-4.4.0-4.i586 lib.

View 4 Replies View Related

Programming :: Looking For A C Programmer That Knows GTK/Glib?

Feb 28, 2011

I have posted this a couple of places - The Bodhi team and I are looking for some help from someone that knows their way around C and GTK/glib. Firstly - we are interested in having an extension written for the Midori webrowser that would allow it to open apt: protocol links with the command /usr/bin/apturl Second, I am interested in getting this and this added to the file manager PCManFM as features.

View 5 Replies View Related

Programming :: Link A C Application Using Glib 2.0?

Mar 29, 2009

I never had to use anything more than -l , -lm , -c ,-o.It was only through dev documentation that I came across glib. Now I want to to compile and link a program with glib.

View 5 Replies View Related

Programming :: Create A Duplicate File Of A Text File In PHP?

Nov 11, 2010

What I plan to do is, create a duplicate file of a text file, and then append some text into the new text file.

View 1 Replies View Related

Programming :: GTK - GLIB Version Mismatch During Installation ATK?

Jul 28, 2010

I'm currently installing GTK+ under Fedora Core 13. Before you install GTK+ you have to install GLIB, Pango and ATK. When installing ATK it goes wrong. After giving the "./configure" I get following error:

checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.25.8, but GLIB (2.24.1)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system

[Code]...

Apparently there is an old version of GLIB on my system bugging my installation process. Does anybody know how to get rid of this old version?

View 2 Replies View Related

Programming :: Error Message 'You Must Have Glib Installed'?

Feb 15, 2010

My level is starter with Ubuntu. Moderate experience with C.Problem starting with programming in C under Ubuntu.I have installed Anjuta IDE and made this classical program.

#include "stdio.h"
main()
{

[code]....

View 2 Replies View Related

OpenSUSE Install :: Glib Error - GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: Assertion Failed

Mar 31, 2011

As root, type "zypper update" and get several lines of the following error:

**
GLib-GIO:ERROR:gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)
Loading repository data...
Reading installed packages...

Nothing to do. Used zypper dup to upgrade from 11.3. Still have boot problems (will open another thread), but had major problems upgrading timezone. File downloads would reach some percentage of completion, then B/s would slowly reduce, to zero. Upgrade would halt until manually aborted. Solution was to manually download 5 timezone files and install them in a directory repository. File download did not specify just the timezone file, but also a part of the directory. Could this be part of the problem? example: ./rpm/i586/timezone-2011d-0.2.1.i586.rpm instead of just the file name.System is a Dell 3000 (Pentium 4, 512MB memory).

View 5 Replies View Related

Programming :: How To Create A Log File

Oct 7, 2010

can any body tell me how to creat a log file in linux...when i run the script the details must go to log file...

View 8 Replies View Related

Programming :: Bash Scripting: Menu From File?

May 29, 2011

I have a file called list.txt with on word on each line that changes in length. I'd like to make a menu, each line being its own choice. I pieced together most of it the only thing missing is a failsafe for typing a number out of range

Code:
#!/bin/bash
p=`cat list.txt | awk '{print$1}'`

[code]....

View 2 Replies View Related

Programming :: What Happens Internally When Create A File

Jan 17, 2011

I am using NetBSD-5.1.1. I wanted to know what happens internally when we create a file in linux. ( In general )?The header file STDIO.H present in "src/include/stdio.h" contains a "FILE" structure with various members like _p, _cookie, etc.2. I wanted to know how does internally memory gets allocated for them.?

View 1 Replies View Related

Debian :: NTFS Backup - Create Ever Expanding (to 320Gb) TAR File That Will Retain All Original File Permissions

Sep 20, 2015

I want to back up an entire Linux system on a 3Tb external Western DIgital USB3 drive.

I do not want to reformat it from what it is, apparemtly NTFS.

Is there a utility that can act like a file manager like mc, that will permit me to create an ever expanding (to 320Gb) TAR file that will retain all the original file permissions. I have had nothing but disappointment with Linux backup utils with a FAT32 external drive, and I am concerned if I just try an tar the entire drive at once, with around 3 million files, I might run out of memory.

View 5 Replies View Related

Programming :: Create A Script That Parses CSV File?

Aug 6, 2010

I am using RHEL 5.0 and I have some trouble with a CSV file.
What I need to do is to grab all the elements from the 3rd column and place them each on a new line in a different (new) file.

For example, if the CSV file is code...

I tried to threat each line as a string and grab the 3rd element, but for some reason it fail.

View 5 Replies View Related

Programming :: Create Cvs From List Text File

Dec 21, 2010

I have a file with 5000 lines. it is a list of books authors, series and titles. all lines start with the author names, than there is a dash (-) than the series name, a dash again and the title of the book.

The problem I encounter is that sometime there is a series, sometime not, and as I try to enter this list in a database, I wanted to create a cvs file to import into mysql.

ex:

The best would be to be able to add in the second line, a "space dash space" just after the author name, but how to make sure it does not do it to the first line as well.

If I could separate all line with 2 dash, (grep ?) then I would be able to do a simple replace, and change the single dash into two.

View 2 Replies View Related

Programming :: Awk+print, Create File If Not Exixt?

May 15, 2011

I having the following awk line in a script, is it possible to modify the script so that it create a the directory if it dosnt exist (similar to mkdir -p) awk -v datum="$DATUM" -v workingdir="$workingdir" '{ sub("\[.*","",$5); print > workingdir"/"datum "/" $5;}' $1

View 1 Replies View Related

Programming :: Create File In User Home In C?

Oct 14, 2009

is there a way to save/create a file with fopen so the file is in the user home directory.Normally I'd do fopen("/home/me/myfile.... but me might change from one user to another. So can I so some sort of switch so it saves to whoever is using.

View 5 Replies View Related

Programming :: Create Windows Hidden File From Using C++?

Oct 18, 2010

Lets start with useful information:I need to create a hidden file for windows/linux using my c++ program.The file will be created on a mp3 player (fat32 file system) and the name will be ".myFile", so the file will appear hidden onux system (period before the name).The problem:Using windows I'm able to see this file, cause the "hidden" attribute is not set.
On Windows API there's a function to do that (CreateFile), then I was trying to find a compatible function to set the hidden attribute, but there's no success until now.Could someone show me the way? There's a program to change these attributes: mattribI will try (again) to find the source code, if someone knows where could I find it

View 2 Replies View Related

Debian :: How To Update The Glib

Sep 1, 2010

Im running a stable lenny version and having a problem with mysql workbench. it needs newer libs. how do I install them ? Its a swedish system but I translated the first row.

mysql-workbench-oss is depending on libcairo2 (>= 1.7.2), but:
  Versionen av libcairo2 on systemet is 1.6.4-7.
mysql-workbench-oss beroende av libcairomm-1.0-1 (>= 1.6.4), men:
  Versionen av libcairomm-1.0-1 systemet 1.6.0-1.

[code]...

View 5 Replies View Related

Ubuntu :: Src/main.h:25: Fatal Error: Glib.h: No Such File Or Directory

Oct 29, 2010

I am trying to install a program called airfart and when I run make after cd'ing to the appropriate file i get this

Code:

g++ -g `pkg-config gtk+-2.0 --cflags` -o src/main.o -c src/main.cpp
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'

[code]....

View 9 Replies View Related

Slackware :: Fatal Error: Glib-object.h: No Such File Or Directory

May 31, 2011

I'm using Slackware 13.37 x64 (upgraded to slackware-current) and I have trouble compiling mysql workbench 5.2.34.

The error is:

Code:

scintilla-marshal.c:2:25: fatal error: glib-object.h: No such file or directory

But I have that glib-object.h file:

Code:

$ locate glib-object.h
/usr/include/glib-2.0/glib-object.h

This is when I try to compile version 5.2.27:

Code:

./PlatGTK.cxx:13:21: fatal error: gdk/gdk.h: No such file or directory

Code:

$ locate gdk.h
/usr/include/gtk-1.2/gdk/gdk.h
/usr/include/gtk-2.0/gdk/gdk.h

View 12 Replies View Related

Fedora :: Make Nautilus Have A "Create Launcher" Item Under The File Menu?

Jun 12, 2011

Is there anyway to make Nautilus have a "Create Launcher" item under the File menu? Is there some plugin I can install or file I can edit? Launchers are very useful but always having to create them on the desktop first then move them to where I want is pretty annoying.

View 3 Replies View Related

Programming :: Expect/TCL Logging - Create A Clean Log File?

Apr 14, 2011

I've written an Expect script that assists with change management on Cisco devices. The script creates log files for pre-change, the change itself, and post-change. Each log and its commands is triggered by a ! command. For example:

Code:

./dochange.exp hostname
<script spawns bash, user SSHes to hostname>
!PRE

[code]....

All of this works fine. My big hair-pulling hiccup is that the resulting log files are filled with raw backspace characters! I am using log_file to log the output from the script. I stop and restart logging with a new file when needed. However, the log files are pretty much unusable. After doing some research, it looks like log_file sends output to the file in real-time, unbuffered. When I hit a key, it's immediately sent to the log. What I would like is for only the resulting string to go to the log. If I start to type 'reload' and instead type 'show run', I don't want 'reload' to be listed in the log at all.

View 1 Replies View Related

Programming :: Create A .bin File From Java Source Code?

Jan 4, 2010

i am trying to generate a linux executable data (bin data) from my java source code.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved