Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=grape.git;a=commitdiff;h=91ad8f7a0bc984398f4236b362dd476754b59326
commit 91ad8f7a0bc984398f4236b362dd476754b59326 Author: James Buren <r...@frugalware.org> Date: Tue Apr 6 08:19:29 2010 -0500 delete it all (source) diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 3451abf..0000000 --- a/src/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright (c) 2010 James Buren -# -# Permission is hereby granted, free of charge, to any person obtaining a copy -# of this software and associated documentation files (the "Software"), to deal -# in the Software without restriction, including without limitation the rights -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -# copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -# THE SOFTWARE. - -CFLAGS ?= -Os - -#CFLAGS += -ansi -pedantic - -CFLAGS += -Wall -Wextra - -CFLAGS += -g - -CFLAGS += $(strip $(shell pkg-config --cflags gtksourceview-2.0)) - -LDFLAGS += $(strip $(shell pkg-config --libs gtksourceview-2.0)) - -TARGET = grape - -OBJECTS = $(patsubst %.c,%.o,$(wildcard *.c)) - -%.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ - -$(TARGET): $(OBJECTS) - $(CC) $(LDFLAGS) $^ -o $@ - -clean: - $(RM) $(TARGET) *.o diff --git a/src/box_pack_widgets.c b/src/box_pack_widgets.c deleted file mode 100644 index f338757..0000000 --- a/src/box_pack_widgets.c +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -void box_pack_widgets(GtkWidget *box,gboolean expand,...) { - va_list args; - GtkWidget *child; - - va_start(args,expand); - - while((child = va_arg(args,GtkWidget *))) - gtk_box_pack_start(GTK_BOX(box),child,expand,expand,0); - - va_end(args); -} diff --git a/src/build_filename.c b/src/build_filename.c deleted file mode 100644 index 7b0ef96..0000000 --- a/src/build_filename.c +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -gchar *build_filename(const gchar *filename) { - gchar *cur_dir; - gchar *path; - - if(g_path_is_absolute(filename)) - return g_strdup(filename); - - cur_dir = g_get_current_dir(); - - path = g_build_filename(cur_dir,filename,NULL); - - g_free(cur_dir); - - return path; -} diff --git a/src/cursor_action.c b/src/cursor_action.c deleted file mode 100644 index 11a1104..0000000 --- a/src/cursor_action.c +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -static void cursor_set_label(GtkLabel *label,gint n) { - gchar text[64]; - - g_snprintf(text,sizeof(text),"%d",n + 1); - - gtk_label_set_text(label,text); -} - -void cursor_action(GtkTextBuffer *buffer,GtkTextIter *iter,GtkTextMark *mark,SharedInfo *info) { - - cursor_set_label(info->line,gtk_text_iter_get_line(iter)); - - cursor_set_label(info->column,gtk_text_iter_get_line_offset(iter)); -} diff --git a/src/delete_action.c b/src/delete_action.c deleted file mode 100644 index 27075eb..0000000 --- a/src/delete_action.c +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -gboolean delete_action(GtkWidget *window,GdkEvent *event,SharedInfo *info) { - static gint windows = 0; - - if(!window && !event && !info) { - ++windows; - return FALSE; - } - - g_free(info->filename); - - g_free(info); - - --windows; - - if(!windows) - gtk_main_quit(); - - return FALSE; -} diff --git a/src/display_error.c b/src/display_error.c deleted file mode 100644 index db2633e..0000000 --- a/src/display_error.c +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -void display_error(SharedInfo *info,const gchar *format,...) { - gchar text[512]; - va_list args; - GtkWidget *dialog; - - va_start(args,format); - - g_vsnprintf(text,sizeof(text),format,args); - - va_end(args); - - dialog = gtk_message_dialog_new(info->parent, - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_CLOSE, - text); - - update_action(info,GTK_STOCK_DIALOG_ERROR,text); - - gtk_dialog_run(GTK_DIALOG(dialog)); - - gtk_widget_destroy(dialog); -} diff --git a/src/exports.h b/src/exports.h deleted file mode 100644 index 0ea2876..0000000 --- a/src/exports.h +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -/* Place all common exports in this header (functions, variables, ...) */ -#ifndef _exports_header_ -#define _exports_header_ -#include <gtksourceview/gtksourceview.h> - -typedef struct SharedInfo { - GtkWindow *parent; - gchar *filename; - GtkSourceView *view; - GtkSourceBuffer *buffer; - GtkImage *action_icon; - GtkLabel *action; - GtkLabel *line; - GtkLabel *column; - GtkLabel *input; -} SharedInfo; - -GtkWidget *label_new(const gchar *text,gboolean bold); -GtkToolItem *tool_button_new(const gchar *stock,void (*action) (GtkToolButton *,SharedInfo *),SharedInfo *info); -GtkWidget *toolbar_new(SharedInfo *info); -GtkWidget *text_widget_new(SharedInfo *info); -GtkWidget *statusbar_new(SharedInfo *info); -SharedInfo *window_new(const gchar *filename); -gchar *get_filename(GtkWindow *window,gboolean open); -gchar *build_filename(const gchar *filename); -void update_syntax(SharedInfo *info); -void update_action(SharedInfo *info,const gchar *stock,const gchar *format,...); -void display_error(SharedInfo *info,const gchar *format,...); -void box_pack_widgets(GtkWidget *box,gboolean expand,...); -void new_action(GtkToolButton *btn,SharedInfo *info); -void save_action(GtkToolButton *btn,SharedInfo *info); -void open_action(GtkToolButton *btn,SharedInfo *info); -gboolean load_action(GtkWidget *widget,GdkEvent *event,SharedInfo *info); -void input_action(GtkTextView *view,SharedInfo *info); -void cursor_action(GtkTextBuffer *buffer,GtkTextIter *iter,GtkTextMark *mark,SharedInfo *info); -gboolean delete_action(GtkWidget *window,GdkEvent *event,SharedInfo *info); -gint main(gint argc,gchar **argv); -#endif diff --git a/src/get_filename.c b/src/get_filename.c deleted file mode 100644 index 171b40a..0000000 --- a/src/get_filename.c +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -gchar *get_filename(GtkWindow *window,gboolean open) { - GtkWidget *dialog; - gchar *filename = NULL; - - dialog = gtk_file_chooser_dialog_new((open) ? "Open File" : "Save File", - window, - (open) ? GTK_FILE_CHOOSER_ACTION_OPEN : GTK_FILE_CHOOSER_ACTION_SAVE, - GTK_STOCK_CANCEL, - GTK_RESPONSE_CANCEL, - (open) ? GTK_STOCK_OPEN : GTK_STOCK_SAVE, - GTK_RESPONSE_ACCEPT, - NULL); - - if(gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) - filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); - - gtk_widget_destroy(dialog); - - return filename; -} diff --git a/src/grape.ui b/src/grape.ui deleted file mode 100644 index c715579..0000000 --- a/src/grape.ui +++ /dev/null @@ -1,127 +0,0 @@ -<?xml version="1.0"?> -<interface> - <requires lib="gtk+" version="2.16"/> - <!-- interface-naming-policy project-wide --> - <object class="GtkWindow" id="window"> - <property name="default_width">640</property> - <property name="default_height">480</property> - <child> - <object class="GtkVBox" id="vbox"> - <property name="orientation">vertical</property> - <child> - <object class="GtkHBox" id="hbox"> - <child> - <object class="GtkButton" id="button1"> - <property name="can_focus">False</property> - <property name="receives_default">False</property> - <property name="relief">none</property> - <property name="focus_on_click">False</property> - <child> - <object class="GtkImage" id="image1"> - <property name="icon_name">document-new</property> - </object> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkButton" id="button2"> - <property name="can_focus">False</property> - <property name="receives_default">True</property> - <property name="relief">none</property> - <property name="focus_on_click">False</property> - <child> - <object class="GtkImage" id="image2"> - <property name="icon_name">document-open</property> - </object> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="position">1</property> - </packing> - </child> - <child> - <object class="GtkButton" id="button3"> - <property name="can_focus">False</property> - <property name="receives_default">True</property> - <property name="relief">none</property> - <property name="focus_on_click">False</property> - <child> - <object class="GtkImage" id="image3"> - <property name="icon_name">document-save</property> - </object> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="position">2</property> - </packing> - </child> - <child> - <object class="GtkButton" id="button4"> - <property name="can_focus">False</property> - <property name="receives_default">True</property> - <property name="relief">none</property> - <property name="focus_on_click">False</property> - <child> - <object class="GtkImage" id="image4"> - <property name="icon_name">window-close</property> - </object> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="position">3</property> - </packing> - </child> - <child> - <object class="GtkButton" id="button5"> - <property name="can_focus">False</property> - <property name="receives_default">True</property> - <property name="relief">none</property> - <property name="focus_on_click">False</property> - <child> - <object class="GtkImage" id="image5"> - <property name="stock">gtk-preferences</property> - </object> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="position">4</property> - </packing> - </child> - </object> - <packing> - <property name="expand">False</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkScrolledWindow" id="scrolledwindow"> - <property name="can_focus">False</property> - <property name="hscrollbar_policy">automatic</property> - <property name="vscrollbar_policy">automatic</property> - <property name="shadow_type">out</property> - <child> - <object class="GtkTextView" id="textview"> - <property name="buffer">textbuffer</property> - </object> - </child> - </object> - <packing> - <property name="position">1</property> - </packing> - </child> - </object> - </child> - </object> - <object class="GtkTextTagTable" id="texttagtable"/> - <object class="GtkTextBuffer" id="textbuffer"> - <property name="tag_table">texttagtable</property> - </object> -</interface> diff --git a/src/input_action.c b/src/input_action.c deleted file mode 100644 index 15efa55..0000000 --- a/src/input_action.c +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -void input_action(GtkTextView *view,SharedInfo *info) { - gtk_label_set_text(info->input,(gtk_text_view_get_overwrite(view)) ? "OVR" : "INS"); -} diff --git a/src/label_new.c b/src/label_new.c deleted file mode 100644 index bd9766f..0000000 --- a/src/label_new.c +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -GtkWidget *label_new(const gchar *text,gboolean bold) { - GtkWidget *label; - PangoAttrList *attrs; - - label = gtk_label_new(text); - - attrs = pango_attr_list_new(); - - pango_attr_list_insert(attrs,pango_attr_style_new(PANGO_STYLE_NORMAL)); - - pango_attr_list_insert(attrs,pango_attr_weight_new((bold) ? PANGO_WEIGHT_BOLD : PANGO_WEIGHT_NORMAL)); - - gtk_label_set_attributes(GTK_LABEL(label),attrs); - - gtk_misc_set_alignment(GTK_MISC(label),0.0,0.0); - - pango_attr_list_unref(attrs); - - return label; -} diff --git a/src/load_action.c b/src/load_action.c deleted file mode 100644 index f4b2c00..0000000 --- a/src/load_action.c +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -gboolean load_action(GtkWidget *widget,GdkEvent *event,SharedInfo *info) { - GError *error = NULL; - gchar *contents; - gsize length; - - if(!info->filename) { - update_action(info,GTK_STOCK_NEW,"Opened an empty file"); - return FALSE; - } - - if(!g_file_get_contents(info->filename,&contents,&length,&error)) { - display_error(info,error->message); - g_error_free(error); - return FALSE; - } - - gtk_text_buffer_set_text(GTK_TEXT_BUFFER(info->buffer),contents,length); - - g_free(contents); - - update_syntax(info); - - update_action(info,GTK_STOCK_OPEN,"Opened file %s",info->filename); - - return FALSE; -} diff --git a/src/main.c b/src/main.c deleted file mode 100644 index 1e75853..0000000 --- a/src/main.c +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -gint main(gint argc,gchar **argv) { - - gtk_init(&argc,&argv); - - window_new(NULL); - - gtk_main(); - - return 0; -} diff --git a/src/new_action.c b/src/new_action.c deleted file mode 100644 index 8067cb7..0000000 --- a/src/new_action.c +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -void new_action(GtkToolButton *button,SharedInfo *info) { - window_new(NULL); -} diff --git a/src/open_action.c b/src/open_action.c deleted file mode 100644 index 86372c2..0000000 --- a/src/open_action.c +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -void open_action(GtkToolButton *button,SharedInfo *info) { - gchar *filename; - - filename = get_filename(info->parent,TRUE); - - if(!filename) - return; - - window_new(filename); - - g_free(filename); -} diff --git a/src/save_action.c b/src/save_action.c deleted file mode 100644 index b0bbbb3..0000000 --- a/src/save_action.c +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -void save_action(GtkToolButton *button,SharedInfo *info) { - gchar *filename; - GtkTextIter begin, end; - gchar *contents; - GError *error = NULL; - - filename = (info->filename) ? g_strdup(info->filename) : get_filename(info->parent,FALSE); - - if(!filename) - return; - - gtk_text_buffer_get_start_iter(GTK_TEXT_BUFFER(info->buffer),&begin); - - gtk_text_buffer_get_end_iter(GTK_TEXT_BUFFER(info->buffer),&end); - - contents = gtk_text_buffer_get_text(GTK_TEXT_BUFFER(info->buffer),&begin,&end,TRUE); - - if(!g_file_set_contents(filename,contents,-1,&error)) { - display_error(info,error->message); - g_error_free(error); - g_free(filename); - g_free(contents); - return; - } - - update_action(info,GTK_STOCK_SAVE,"Saved file %s",filename); - - g_free(contents); - - g_free(info->filename); - - info->filename = filename; - - update_syntax(info); -} diff --git a/src/statusbar_new.c b/src/statusbar_new.c deleted file mode 100644 index 1febf2f..0000000 --- a/src/statusbar_new.c +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -GtkWidget *statusbar_new(SharedInfo *info) { - GtkWidget *statusbar; - - statusbar = gtk_hbox_new(FALSE,4); - - box_pack_widgets(statusbar,FALSE,info->action_icon = GTK_IMAGE(gtk_image_new_from_stock(GTK_STOCK_DISCARD,GTK_ICON_SIZE_MENU)),NULL); - - box_pack_widgets(statusbar,TRUE,info->action = GTK_LABEL(label_new(NULL,TRUE)),NULL); - - box_pack_widgets(statusbar,FALSE,label_new("Ln:",TRUE), - info->line = GTK_LABEL(label_new("1",FALSE)), - label_new("Col:",TRUE), - info->column = GTK_LABEL(label_new("1",FALSE)), - info->input = GTK_LABEL(label_new(NULL,TRUE)), - NULL); - - return statusbar; -} diff --git a/src/text_widget_new.c b/src/text_widget_new.c deleted file mode 100644 index 9056092..0000000 --- a/src/text_widget_new.c +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -GtkWidget *text_widget_new(SharedInfo *info) { - GtkWidget *scrolled_window; - - scrolled_window = gtk_scrolled_window_new(NULL,NULL); - - gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window),GTK_POLICY_AUTOMATIC,GTK_POLICY_AUTOMATIC); - - info->buffer = gtk_source_buffer_new(NULL); - - info->view = GTK_SOURCE_VIEW(gtk_source_view_new_with_buffer(info->buffer)); - - gtk_container_add(GTK_CONTAINER(scrolled_window),GTK_WIDGET(info->view)); - - g_signal_connect_after(info->view,"toggle-overwrite",G_CALLBACK(input_action),info); - - g_signal_connect_after(info->buffer,"mark-set",G_CALLBACK(cursor_action),info); - - return scrolled_window; -} diff --git a/src/tool_button_new.c b/src/tool_button_new.c deleted file mode 100644 index 9cdc81f..0000000 --- a/src/tool_button_new.c +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -GtkToolItem *tool_button_new(const gchar *stock,void (*action) (GtkToolButton *,SharedInfo *),SharedInfo *info) { - GtkToolItem *tool_button; - - tool_button = gtk_tool_button_new_from_stock(stock); - - g_signal_connect(tool_button,"clicked",G_CALLBACK(action),info); - - return tool_button; -} diff --git a/src/toolbar_new.c b/src/toolbar_new.c deleted file mode 100644 index 8986a70..0000000 --- a/src/toolbar_new.c +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -static void toolbar_insert_items(GtkWidget *toolbar,...) { - va_list args; - GtkToolItem *item; - - va_start(args,toolbar); - - while((item = va_arg(args,GtkToolItem *))) - gtk_toolbar_insert(GTK_TOOLBAR(toolbar),item,-1); - - va_end(args); -} - -GtkWidget *toolbar_new(SharedInfo *info) { - GtkWidget *toolbar; - - toolbar = gtk_toolbar_new(); - - toolbar_insert_items(toolbar,tool_button_new(GTK_STOCK_NEW,new_action,info), - tool_button_new(GTK_STOCK_OPEN,open_action,info), - tool_button_new(GTK_STOCK_SAVE,save_action,info), - NULL); - - gtk_toolbar_set_style(GTK_TOOLBAR(toolbar),GTK_TOOLBAR_ICONS); - - return toolbar; -} diff --git a/src/update_action.c b/src/update_action.c deleted file mode 100644 index 36e881e..0000000 --- a/src/update_action.c +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -void update_action(SharedInfo *info,const gchar *stock,const gchar *format,...) { - va_list args; - gchar text[512]; - - gtk_image_set_from_stock(info->action_icon,stock,GTK_ICON_SIZE_MENU); - - va_start(args,format); - - g_vsnprintf(text,sizeof(text),format,args); - - va_end(args); - - gtk_label_set_text(info->action,text); -} diff --git a/src/update_syntax.c b/src/update_syntax.c deleted file mode 100644 index 6b6c746..0000000 --- a/src/update_syntax.c +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include <gtksourceview/gtksourcelanguagemanager.h> -#include "exports.h" - -void update_syntax(SharedInfo *info) { - GtkSourceLanguageManager *manager; - gchar *content; - gboolean uncertain; - GtkSourceLanguage *language; - - manager = gtk_source_language_manager_get_default(); - - content = g_content_type_guess(info->filename,NULL,0,&uncertain); - - if(uncertain) { - g_free(content); - content = NULL; - } - - language = gtk_source_language_manager_guess_language(manager,info->filename,content); - - gtk_source_buffer_set_language(info->buffer,language); - - g_free(content); -} diff --git a/src/window_new.c b/src/window_new.c deleted file mode 100644 index ff5a4da..0000000 --- a/src/window_new.c +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2010 James Buren -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -#include "exports.h" - -SharedInfo *window_new(const gchar *filename) { - GtkWidget *vbox; - SharedInfo *info; - - vbox = gtk_vbox_new(FALSE,0); - - info = g_new(SharedInfo,1); - - info->parent = GTK_WINDOW(gtk_window_new(GTK_WINDOW_TOPLEVEL)); - - info->filename = (filename) ? build_filename(filename) : NULL; - - gtk_container_add(GTK_CONTAINER(info->parent),vbox); - - box_pack_widgets(vbox,FALSE,toolbar_new(info),NULL); - - box_pack_widgets(vbox,TRUE,text_widget_new(info),NULL); - - box_pack_widgets(vbox,FALSE,gtk_hseparator_new(),statusbar_new(info),NULL); - - delete_action(NULL,NULL,NULL); - - g_signal_connect(info->parent,"delete-event",G_CALLBACK(delete_action),info); - - g_signal_connect(info->parent,"map-event",G_CALLBACK(load_action),info); - - gtk_window_set_default_size(info->parent,640,480); - - gtk_window_set_focus(info->parent,GTK_WIDGET(info->view)); - - gtk_widget_show_all(GTK_WIDGET(info->parent)); - - return info; -} _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git