diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-12 19:57:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-12 19:57:04 +0000 |
| commit | 35ed95fe18e9b8d7a79f79f4fd7466a2b46435e3 (patch) | |
| tree | e6591143a46ae20426da8a035f1d12fa70d006d8 /plugins/resistance/resistance_config.c | |
| parent | 950b85b9880012ed45b81854b5b5865b1de08a87 (diff) | |
move the resistance plugin into the kernel. dont resist when move/resizing with the keyboard, only when doing it with the mouse.
Diffstat (limited to 'plugins/resistance/resistance_config.c')
| -rw-r--r-- | plugins/resistance/resistance_config.c | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/plugins/resistance/resistance_config.c b/plugins/resistance/resistance_config.c deleted file mode 100644 index 1384fe3f..00000000 --- a/plugins/resistance/resistance_config.c +++ /dev/null @@ -1,64 +0,0 @@ -#include "plugins/obconf_interface.h" -#include "parser/parse.h" -#include "resistance.h" -#include <gtk/gtk.h> -#include <glade/glade.h> - -static GtkWidget *conf_widget; -static GtkCheckButton *conf_resist_windows; -static GtkSpinButton *conf_resist_strength; -static gboolean conf_edited = FALSE; - -int plugin_interface_version() { return OBCONF_INTERFACE_VERSION; } - -char *plugin_name() { return "Resistance"; } -char *plugin_plugin_name() { return "resistance"; } -void plugin_icon() {} - -GtkWidget *plugin_toplevel_widget() { return conf_widget; } - -gboolean plugin_edited() { return conf_edited; } - -void plugin_load(xmlDocPtr doc, xmlNodePtr root) -{ - xmlNodePtr node, n; - - gtk_spin_button_set_value(conf_resist_strength, DEFAULT_RESISTANCE); - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(conf_resist_windows), - DEFAULT_RESIST_WINDOWS); - - node = parse_find_node("resistance", root); - while (node) { - if ((n = parse_find_node("strength", node))) - gtk_spin_button_set_value(conf_resist_strength, - parse_int(doc, n)); - if ((n = parse_find_node("windows", node))) - gtk_toggle_button_set_active - (GTK_TOGGLE_BUTTON(conf_resist_windows), - parse_bool(doc, n)); - - node = parse_find_node("resistance", node->next); - } -} - -void plugin_save(xmlDocPtr doc, xmlNodePtr root) -{ -} - -void plugin_startup() -{ - GladeXML *xml; - - xml = glade_xml_new("obconf.glade", NULL, NULL); - glade_xml_signal_autoconnect(xml); - - conf_widget = glade_xml_get_widget(xml, "resistwindow"); - conf_resist_strength = - GTK_SPIN_BUTTON(glade_xml_get_widget(xml, "resist_strength")); - conf_resist_windows = - GTK_CHECK_BUTTON(glade_xml_get_widget(xml, "resist_windows")); -} - -void plugin_shutdown() -{ -} |
