From d4e52189163e07863d20255183e9ba356eb59035 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan <fourdan.olivier@wanadoo.fr> Date: Sun, 7 May 2006 14:46:13 +0000 Subject: [PATCH] plugin.c (Old svn revision: 21574) --- mcs-plugin/plugin.c | 1 - mcs-plugin/plugin.h | 4 ++-- mcs-plugin/workspaces.c | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mcs-plugin/plugin.c b/mcs-plugin/plugin.c index f66896e6a..ece45c91b 100644 --- a/mcs-plugin/plugin.c +++ b/mcs-plugin/plugin.c @@ -137,7 +137,6 @@ run_dialog (McsPlugin * mcs_plugin) xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8"); dialog = xfce_titled_dialog_new (); - gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); gtk_window_set_icon (GTK_WINDOW (dialog), mcs_plugin->icon); gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); diff --git a/mcs-plugin/plugin.h b/mcs-plugin/plugin.h index bec7bfe7d..ab938c3dd 100644 --- a/mcs-plugin/plugin.h +++ b/mcs-plugin/plugin.h @@ -16,8 +16,8 @@ Copyright (C) 2002 Jasper Huijsmans (huysmans@users.sourceforge.net) */ -#ifndef __PLUGIN_H -#define __PLUGIN_H +#ifndef __PLUGIN_H__ +#define __PLUGIN_H__ #define RCFILE1 "workspaces.xml" #define RCFILE2 "margins.xml" diff --git a/mcs-plugin/workspaces.c b/mcs-plugin/workspaces.c index 4c31835d2..18da16599 100644 --- a/mcs-plugin/workspaces.c +++ b/mcs-plugin/workspaces.c @@ -385,7 +385,7 @@ edit_name_dialog (GtkTreeModel * model, GtkTreeIter * iter, } static gboolean -button_pressed (GtkTreeView * tree, GdkEventButton * event, McsManager * manager) +cb_activate_item (GtkTreeView * tree, GdkEventButton * event, McsManager * manager) { GtkTreePath *path; GtkTreeIter iter; @@ -470,7 +470,7 @@ add_names_treeview (GtkWidget * vbox, McsManager * manager) model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview)); - g_signal_connect (treeview, "button-press-event", G_CALLBACK (button_pressed), manager); + g_signal_connect (treeview, "activate", G_CALLBACK (cb_activate_item), manager); } /* workspace count */ -- GitLab