2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
|
2002-06-04 22:58:35 +00:00
|
|
|
|
|
|
|
/* background-properties-capplet.c
|
|
|
|
* Copyright (C) 2002 Seth Nickell
|
|
|
|
*
|
|
|
|
* Written by: Seth Nickell <snickell@stanford.edu>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <ctype.h>
|
|
|
|
|
2002-06-04 22:58:35 +00:00
|
|
|
#include <gconf/gconf-client.h>
|
|
|
|
#include <glade/glade.h>
|
|
|
|
#include <gnome-wm-manager.h>
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
#include "capplet-util.h"
|
|
|
|
#include "gconf-property-editor.h"
|
|
|
|
|
|
|
|
|
Ignore gladep (grrr) files.
2002-05-11 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
Ignore gladep (grrr) files.
* Makefile.am:
* gnome-window-manager.c: (gnome_window_manager_new):
* gnome-window-manager.h:
* metacity-window-manager.c: (window_manager_new),
(metacity_set_theme), (metacity_get_theme_list),
(metacity_set_font), (metacity_get_focus_follows_mouse),
(metacity_set_focus_follows_mouse), (finalize), (class_init),
(init), (metacity_window_manager_get_type):
* metacity-window-manager.h:
First pass at adding settings modules.
* window-capplet.png:
Use the wm-properties icon.
* wm-list.c: (wm_list_find), (wm_list_find_exec):
Nix some warnings caused by non-use of const.
* gnome-window-properties.c: (setup_dialog):
* gnome-window-properties.glade:
Tweak appearance some more.
2002-05-11 19:08:05 +00:00
|
|
|
#define THEME_KEY "/desktop/gnome/applications/window_manager/theme"
|
|
|
|
#define TITLEBAR_FONT_KEY "/desktop/gnome/applications/window_manager/titlebar_font"
|
|
|
|
#define FOCUS_FOLLOWS_MOUSE_KEY "/desktop/gnome/applications/window_manager/focus_follows_mouse"
|
2002-05-11 05:01:07 +00:00
|
|
|
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
static GtkWidget *wm_widget;
|
|
|
|
static GtkWidget *apply_now_button;
|
2002-05-11 04:48:16 +00:00
|
|
|
static GtkWidget *properties_box;
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
static GtkWidget *wm_menu;
|
|
|
|
static GtkWidget *option_menu;
|
2002-06-04 22:58:35 +00:00
|
|
|
static GList *wm_menu_window_managers;
|
|
|
|
|
|
|
|
static GtkWidget *appearance_option_menu;
|
|
|
|
static GList *theme_list;
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
2002-06-04 22:58:35 +00:00
|
|
|
static GnomeWindowManager *selected_wm;
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
|
2002-06-04 22:58:35 +00:00
|
|
|
static gboolean in_fill;
|
|
|
|
|
|
|
|
static GConfClient *gconf_client;
|
|
|
|
|
|
|
|
static void setup_appearance_option_menu (GtkWidget *appearance_option_menu, GnomeWindowManager *wm);
|
|
|
|
|
|
|
|
static void
|
|
|
|
set_wm_change_pending (gboolean pending)
|
|
|
|
{
|
|
|
|
gtk_widget_set_sensitive (apply_now_button, pending);
|
|
|
|
gtk_widget_set_sensitive (properties_box, !pending);
|
|
|
|
}
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
static void
|
|
|
|
wm_selection_changed (GtkOptionMenu *option_menu, gpointer data)
|
|
|
|
{
|
|
|
|
int index;
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
GnomeWindowManager *wm;
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
|
|
|
index = gtk_option_menu_get_history (option_menu);
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
wm = (GnomeWindowManager *) g_list_nth (wm_menu_window_managers, index)->data;
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
|
|
|
if (!in_fill) {
|
2002-06-04 22:58:35 +00:00
|
|
|
if (!gnome_wm_manager_same_wm (wm, selected_wm)) {
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
selected_wm = wm;
|
2002-06-04 22:58:35 +00:00
|
|
|
set_wm_change_pending (TRUE);
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
wm_widget_clear ()
|
|
|
|
{
|
|
|
|
wm_menu_window_managers = NULL;
|
|
|
|
|
|
|
|
wm_menu = gtk_menu_new ();
|
|
|
|
gtk_widget_show_all (wm_menu);
|
|
|
|
gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), wm_menu);
|
|
|
|
}
|
|
|
|
|
|
|
|
GtkWidget *
|
|
|
|
wm_widget_new ()
|
|
|
|
{
|
|
|
|
option_menu = gtk_option_menu_new ();
|
|
|
|
g_signal_connect (G_OBJECT (option_menu), "changed",
|
2002-05-30 23:06:37 +00:00
|
|
|
(GCallback)wm_selection_changed, NULL);
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
|
|
|
wm_widget_clear ();
|
|
|
|
|
|
|
|
gtk_widget_show_all (option_menu);
|
|
|
|
return option_menu;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
wm_widget_add_wm (GnomeWindowManager *wm)
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
{
|
|
|
|
GtkWidget *menu_item;
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
const char *row_text;
|
|
|
|
|
|
|
|
row_text = gnome_window_manager_get_name (wm);
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
|
|
|
menu_item = gtk_menu_item_new_with_label (row_text);
|
|
|
|
gtk_widget_show_all (menu_item);
|
|
|
|
|
|
|
|
gtk_menu_shell_prepend (GTK_MENU_SHELL (wm_menu), menu_item);
|
|
|
|
wm_menu_window_managers = g_list_prepend (wm_menu_window_managers, wm);
|
|
|
|
|
2002-06-04 22:58:35 +00:00
|
|
|
/* If this is supposed to be the selected window manager, do so */
|
|
|
|
if (gnome_wm_manager_same_wm (wm, selected_wm))
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
gtk_option_menu_set_history (GTK_OPTION_MENU (option_menu), 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
response_cb (GtkDialog *dialog, gint response_id, gpointer data)
|
|
|
|
{
|
|
|
|
switch (response_id)
|
|
|
|
{
|
|
|
|
case GTK_RESPONSE_NONE:
|
|
|
|
case GTK_RESPONSE_CLOSE:
|
|
|
|
gtk_main_quit ();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
update_gui (void)
|
|
|
|
{
|
|
|
|
GList *tmp_list;
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
GnomeWindowManager *wm;
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
|
|
|
wm_widget_clear ();
|
|
|
|
|
|
|
|
in_fill = TRUE;
|
|
|
|
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
tmp_list = gnome_wm_manager_get_list ();
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
printf ("got a list of %d wms\n", g_list_length (tmp_list));
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
for (tmp_list = gnome_wm_manager_get_list (); tmp_list != NULL; tmp_list = tmp_list->next) {
|
|
|
|
wm = tmp_list->data;
|
|
|
|
wm_widget_add_wm (wm);
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
in_fill = FALSE;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
apply_wm (GObject *object, gpointer data)
|
|
|
|
{
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
gnome_wm_manager_set_current (selected_wm);
|
2002-06-04 22:58:35 +00:00
|
|
|
setup_appearance_option_menu (appearance_option_menu, selected_wm);
|
|
|
|
set_wm_change_pending (FALSE);
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static GladeXML *
|
|
|
|
create_dialog (void)
|
|
|
|
{
|
|
|
|
GladeXML *dialog;
|
|
|
|
|
|
|
|
dialog = glade_xml_new (GNOMECC_DATA_DIR "/interfaces/gnome-window-properties.glade", "prefs_widget", NULL);
|
|
|
|
|
|
|
|
apply_now_button = WID ("apply_now_button");
|
2002-05-30 23:06:37 +00:00
|
|
|
g_signal_connect (G_OBJECT (apply_now_button), "clicked", (GCallback)apply_wm, NULL);
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
2002-05-11 04:48:16 +00:00
|
|
|
properties_box = WID ("properties_box");
|
|
|
|
|
|
|
|
set_wm_change_pending (FALSE);
|
|
|
|
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
wm_widget = wm_widget_new ();
|
|
|
|
|
|
|
|
gtk_box_pack_start (GTK_BOX (WID ("wm_widget_box")), wm_widget, TRUE, TRUE, 0);
|
|
|
|
|
|
|
|
return dialog;
|
|
|
|
}
|
|
|
|
|
2002-06-04 22:58:35 +00:00
|
|
|
static void
|
|
|
|
setup_appearance_option_menu (GtkWidget *appearance_option_menu, GnomeWindowManager *wm)
|
|
|
|
{
|
|
|
|
GtkWidget *menu, *menu_item;
|
|
|
|
GList *themes, *node;
|
|
|
|
char *theme_name;
|
|
|
|
|
|
|
|
menu = gtk_menu_new ();
|
|
|
|
gtk_widget_show_all (menu);
|
|
|
|
gtk_option_menu_set_menu (GTK_OPTION_MENU (appearance_option_menu), menu);
|
|
|
|
|
|
|
|
themes = gnome_window_manager_get_theme_list (wm);
|
|
|
|
|
|
|
|
for (node = themes; node != NULL; node = node->next) {
|
|
|
|
theme_name = (char *)node->data;
|
|
|
|
|
|
|
|
menu_item = gtk_menu_item_new_with_label (theme_name);
|
|
|
|
gtk_widget_show_all (menu_item);
|
|
|
|
|
|
|
|
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
|
|
|
|
}
|
|
|
|
|
|
|
|
theme_list = themes;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
appearance_changed (GtkOptionMenu *option_menu, gpointer data)
|
|
|
|
{
|
|
|
|
int index;
|
|
|
|
const char *theme_name;
|
|
|
|
|
|
|
|
index = gtk_option_menu_get_history (option_menu);
|
|
|
|
theme_name = (const char *) g_list_nth (theme_list, index)->data;
|
|
|
|
|
|
|
|
printf ("Setting theme to %s\n", theme_name);
|
|
|
|
|
|
|
|
gconf_client_set_string (gconf_client, THEME_KEY, theme_name, NULL);
|
|
|
|
}
|
|
|
|
|
2002-05-11 05:01:07 +00:00
|
|
|
static void
|
|
|
|
setup_dialog (GladeXML *dialog)
|
|
|
|
{
|
|
|
|
GObject *peditor;
|
|
|
|
|
2002-06-04 22:58:35 +00:00
|
|
|
update_gui ();
|
|
|
|
|
2002-05-11 05:01:07 +00:00
|
|
|
peditor = gconf_peditor_new_font (NULL, TITLEBAR_FONT_KEY,
|
|
|
|
WID ("titlebar_font"),
|
|
|
|
PEDITOR_FONT_COMBINED, NULL);
|
Ignore gladep (grrr) files.
2002-05-11 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
Ignore gladep (grrr) files.
* Makefile.am:
* gnome-window-manager.c: (gnome_window_manager_new):
* gnome-window-manager.h:
* metacity-window-manager.c: (window_manager_new),
(metacity_set_theme), (metacity_get_theme_list),
(metacity_set_font), (metacity_get_focus_follows_mouse),
(metacity_set_focus_follows_mouse), (finalize), (class_init),
(init), (metacity_window_manager_get_type):
* metacity-window-manager.h:
First pass at adding settings modules.
* window-capplet.png:
Use the wm-properties icon.
* wm-list.c: (wm_list_find), (wm_list_find_exec):
Nix some warnings caused by non-use of const.
* gnome-window-properties.c: (setup_dialog):
* gnome-window-properties.glade:
Tweak appearance some more.
2002-05-11 19:08:05 +00:00
|
|
|
|
|
|
|
peditor = gconf_peditor_new_boolean (NULL, FOCUS_FOLLOWS_MOUSE_KEY,
|
|
|
|
WID ("focus_follows_mouse"),
|
|
|
|
NULL);
|
2002-06-04 22:58:35 +00:00
|
|
|
|
|
|
|
appearance_option_menu = WID ("window_border_appearance");
|
|
|
|
setup_appearance_option_menu (appearance_option_menu, selected_wm);
|
|
|
|
g_signal_connect (G_OBJECT (appearance_option_menu), "changed",
|
|
|
|
(GCallback)appearance_changed, NULL);
|
|
|
|
gtk_widget_show_all (appearance_option_menu);
|
2002-05-11 05:01:07 +00:00
|
|
|
}
|
|
|
|
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
|
|
|
|
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
int
|
|
|
|
main (int argc, char **argv)
|
|
|
|
{
|
|
|
|
GladeXML *dialog;
|
|
|
|
GtkWidget *dialog_win;
|
|
|
|
|
2002-05-30 23:06:37 +00:00
|
|
|
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
|
|
|
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
|
|
|
textdomain (GETTEXT_PACKAGE);
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
|
|
|
gnome_program_init ("wm-properties", VERSION,
|
|
|
|
LIBGNOMEUI_MODULE, argc, argv,
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
GNOME_PARAM_POPT_TABLE,
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
NULL);
|
|
|
|
|
2002-06-04 22:58:35 +00:00
|
|
|
gconf_client = gconf_client_get_default ();
|
|
|
|
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
dialog_win = gtk_dialog_new_with_buttons
|
|
|
|
(_("Window Preferences"), NULL, -1,
|
|
|
|
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
|
|
|
|
NULL);
|
|
|
|
g_signal_connect (G_OBJECT (dialog_win), "response", (GCallback)response_cb, NULL);
|
|
|
|
|
|
|
|
gnome_wm_manager_init (dialog_win);
|
2002-06-04 22:58:35 +00:00
|
|
|
selected_wm = gnome_wm_manager_get_current ();
|
|
|
|
|
|
|
|
dialog = create_dialog ();
|
|
|
|
setup_dialog (dialog);
|
Split code for changing window managers into libgnome-window-settings.
2002-06-02 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_add_wm), (update_gui), (apply_wm), (create_dialog),
(main):
Split code for changing window managers into libgnome-window-settings.
This is so in the future we can potentially move this into gnome-settings-daemon,
though for now its not robust enough that we really want to do that.
* metacity-window-manager.c: (window_manager_new),
(metacity_window_manager_init), (metacity_window_manager_finalize),
(metacity_window_manager_class_init),
(metacity_window_manager_get_type):
* metacity-window-manager.h:
Update to match changes to gnome-window-manager.h
* wm-exec.c:
* wm-list.c:
* wm-properties.h:
Move these into libgnome-window-settings.
(Jacob, I did make dist, and then built the resulting tarball, hope I
don't cause problems this time :-/)
2002-06-03 00:27:15 +00:00
|
|
|
|
|
|
|
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog_win)->vbox), WID ("prefs_widget"), TRUE, TRUE, GNOME_PAD_SMALL);
|
|
|
|
gtk_widget_show_all (dialog_win);
|
|
|
|
|
|
|
|
gtk_main ();
|
|
|
|
|
|
|
|
/* FIXME: we need to handle this through the library somehow
|
|
|
|
if (restart_pending) {
|
|
|
|
quit_pending = TRUE;
|
|
|
|
gtk_main();
|
|
|
|
}
|
|
|
|
*/
|
2002-05-10 Seth Nickell <snickell@stanford.edu>
* .cvsignore:
* Makefile.am:
* gnome-window-properties.c: (wm_selection_changed),
(wm_widget_clear), (wm_widget_new), (wm_widget_add_wm),
(response_cb), (state_changed), (restart_label_update),
(restart_dialog_raise), (restart_dialog_destroyed),
(show_restart_dialog), (hide_restart_dialog), (update_session),
(init_session), (update_gui), (init_callback), (restart_finalize),
(restart_failure), (show_restart_info), (restart_finish),
(restart_callback), (restart), (revert_callback),
(cancel_callback), (apply_wm), (create_dialog), (main):
* gnome-window-properties.glade:
* window-capplet.png:
* window-properties.desktop.in:
* wm-exec.c: (wm_is_running), (find_gnome_wm_window),
(find_wm_window_from_client), (window_has_wm_state),
(descendent_has_wm_state), (find_wm_window_from_hunt),
(find_wm_window), (start_timeout), (start_do), (kill_timeout),
(wm_restart), (wm_guess_current):
* wm-list.c: (is_blank), (wm_compare), (wm_free),
(wm_check_present), (wm_copy), (wm_list_find), (wm_list_find_exec),
(wm_list_find_files), (wm_list_read_dir), (wm_list_init),
(wm_list_save), (wm_list_revert), (wm_list_add), (wm_list_delete),
(wm_list_set_current), (wm_list_get_current), (wm_list_get_revert),
(wm_read_from_xml), (wm_list_read_from_xml), (wm_write_to_xml),
(wm_list_write_to_xml), (xml_read_bool), (xml_write_bool):
* wm-properties.h:
2002-05-11 04:28:20 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|