summaryrefslogtreecommitdiff
path: root/applets/wncklet
diff options
context:
space:
mode:
Diffstat (limited to 'applets/wncklet')
-rw-r--r--applets/wncklet/showdesktop.c36
-rw-r--r--applets/wncklet/window-list.c42
-rw-r--r--applets/wncklet/window-list.h2
-rw-r--r--applets/wncklet/window-menu.c8
-rw-r--r--applets/wncklet/wncklet.c12
-rw-r--r--applets/wncklet/wncklet.h4
-rw-r--r--applets/wncklet/workspace-switcher.c78
-rw-r--r--applets/wncklet/workspace-switcher.h2
8 files changed, 94 insertions, 90 deletions
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index a341a142..3b961745 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -30,7 +30,7 @@
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
-#include <libmatewnck/screen.h>
+#include <libwnck/screen.h>
#include "wncklet.h"
#include "showdesktop.h"
@@ -50,7 +50,7 @@ typedef struct {
GtkOrientation orient;
int size;
- MatewnckScreen* matewnck_screen;
+ WnckScreen* wnck_screen;
guint showing_desktop: 1;
guint button_activate;
@@ -68,7 +68,7 @@ static void update_button_display(ShowDesktopData* sdd);
static void theme_changed_callback(GtkIconTheme* icon_theme, ShowDesktopData* sdd);
static void button_toggled_callback(GtkWidget* button, ShowDesktopData* sdd);
-static void show_desktop_changed_callback(MatewnckScreen* screen, ShowDesktopData* sdd);
+static void show_desktop_changed_callback(WnckScreen* screen, ShowDesktopData* sdd);
/* this is when the panel orientation changes */
@@ -279,10 +279,10 @@ static void applet_destroyed(GtkWidget* applet, ShowDesktopData* sdd)
sdd->button_activate = 0;
}
- if (sdd->matewnck_screen != NULL)
+ if (sdd->wnck_screen != NULL)
{
- g_signal_handlers_disconnect_by_func(sdd->matewnck_screen, show_desktop_changed_callback, sdd);
- sdd->matewnck_screen = NULL;
+ g_signal_handlers_disconnect_by_func(sdd->wnck_screen, show_desktop_changed_callback, sdd);
+ sdd->wnck_screen = NULL;
}
if (sdd->icon_theme != NULL)
@@ -341,21 +341,21 @@ static void show_desktop_applet_realized(MatePanelApplet* applet, gpointer data)
sdd = (ShowDesktopData*) data;
- if (sdd->matewnck_screen != NULL)
- g_signal_handlers_disconnect_by_func(sdd->matewnck_screen, show_desktop_changed_callback, sdd);
+ if (sdd->wnck_screen != NULL)
+ g_signal_handlers_disconnect_by_func(sdd->wnck_screen, show_desktop_changed_callback, sdd);
if (sdd->icon_theme != NULL)
g_signal_handlers_disconnect_by_func(sdd->icon_theme, theme_changed_callback, sdd);
screen = gtk_widget_get_screen(sdd->applet);
- sdd->matewnck_screen = matewnck_screen_get(gdk_screen_get_number (screen));
+ sdd->wnck_screen = wnck_screen_get(gdk_screen_get_number (screen));
- if (sdd->matewnck_screen != NULL)
- wncklet_connect_while_alive(sdd->matewnck_screen, "showing_desktop_changed", G_CALLBACK(show_desktop_changed_callback), sdd, sdd->applet);
+ if (sdd->wnck_screen != NULL)
+ wncklet_connect_while_alive(sdd->wnck_screen, "showing_desktop_changed", G_CALLBACK(show_desktop_changed_callback), sdd, sdd->applet);
else
- g_warning("Could not get MatewnckScreen!");
+ g_warning("Could not get WnckScreen!");
- show_desktop_changed_callback(sdd->matewnck_screen, sdd);
+ show_desktop_changed_callback(sdd->wnck_screen, sdd);
sdd->icon_theme = gtk_icon_theme_get_for_screen (screen);
wncklet_connect_while_alive(sdd->icon_theme, "changed", G_CALLBACK(theme_changed_callback), sdd, sdd->applet);
@@ -520,16 +520,16 @@ static void button_toggled_callback(GtkWidget* button, ShowDesktopData* sdd)
return;
}
- if (sdd->matewnck_screen != NULL)
- matewnck_screen_toggle_showing_desktop(sdd->matewnck_screen, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)));
+ if (sdd->wnck_screen != NULL)
+ wnck_screen_toggle_showing_desktop(sdd->wnck_screen, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)));
update_button_display (sdd);
}
-static void show_desktop_changed_callback(MatewnckScreen* screen, ShowDesktopData* sdd)
+static void show_desktop_changed_callback(WnckScreen* screen, ShowDesktopData* sdd)
{
- if (sdd->matewnck_screen != NULL)
- sdd->showing_desktop = matewnck_screen_get_showing_desktop(sdd->matewnck_screen);
+ if (sdd->wnck_screen != NULL)
+ sdd->showing_desktop = wnck_screen_get_showing_desktop(sdd->wnck_screen);
update_button_state (sdd);
}
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index 8dc900f4..60b0b177 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -1,6 +1,6 @@
/* -*- mode: C; c-file-style: "linux" -*- */
/*
- * libmatewnck based tasklist applet.
+ * libwnck based tasklist applet.
* (C) 2001 Red Hat, Inc
* (C) 2001 Alexander Larsson
*
@@ -19,7 +19,7 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#include <libmatewnck/libmatewnck.h>
+#include <libwnck/libwnck.h>
#include <gio/gio.h>
#include "wncklet.h"
@@ -33,7 +33,7 @@ typedef struct {
GtkWidget* tasklist;
gboolean include_all_workspaces;
- MatewnckTasklistGroupingType grouping;
+ WnckTasklistGroupingType grouping;
gboolean move_unminimized_windows;
GtkOrientation orientation;
@@ -71,9 +71,9 @@ static void tasklist_update(TasklistData* tasklist)
gtk_widget_set_size_request(GTK_WIDGET(tasklist->tasklist), tasklist->size, -1);
}
- matewnck_tasklist_set_grouping(MATEWNCK_TASKLIST(tasklist->tasklist), tasklist->grouping);
- matewnck_tasklist_set_include_all_workspaces(MATEWNCK_TASKLIST(tasklist->tasklist), tasklist->include_all_workspaces);
- matewnck_tasklist_set_switch_workspace_on_unminimize(MATEWNCK_TASKLIST(tasklist->tasklist), tasklist->move_unminimized_windows);
+ wnck_tasklist_set_grouping(WNCK_TASKLIST(tasklist->tasklist), tasklist->grouping);
+ wnck_tasklist_set_include_all_workspaces(WNCK_TASKLIST(tasklist->tasklist), tasklist->include_all_workspaces);
+ wnck_tasklist_set_switch_workspace_on_unminimize(WNCK_TASKLIST(tasklist->tasklist), tasklist->move_unminimized_windows);
}
static void response_cb(GtkWidget* widget, int id, TasklistData* tasklist)
@@ -115,7 +115,9 @@ static void applet_change_orient(MatePanelApplet* applet, MatePanelAppletOrient
tasklist->orientation = new_orient;
- matewnck_tasklist_set_orientation (tasklist->tasklist, new_orient);
+#if WNCK_CHECK_VERSION (3, 4, 6)
+ wnck_tasklist_set_orientation (tasklist->tasklist, new_orient);
+#endif
tasklist_update(tasklist);
}
@@ -124,11 +126,11 @@ static void applet_change_background(MatePanelApplet* applet, MatePanelAppletBac
switch (type)
{
case PANEL_NO_BACKGROUND:
- matewnck_tasklist_set_button_relief(MATEWNCK_TASKLIST(tasklist->tasklist), GTK_RELIEF_NORMAL);
+ wnck_tasklist_set_button_relief(WNCK_TASKLIST(tasklist->tasklist), GTK_RELIEF_NORMAL);
break;
case PANEL_COLOR_BACKGROUND:
case PANEL_PIXMAP_BACKGROUND:
- matewnck_tasklist_set_button_relief(MATEWNCK_TASKLIST(tasklist->tasklist), GTK_RELIEF_NONE);
+ wnck_tasklist_set_button_relief(WNCK_TASKLIST(tasklist->tasklist), GTK_RELIEF_NONE);
break;
}
}
@@ -231,18 +233,18 @@ static void display_all_workspaces_changed(GSettings* settings, gchar* key, Task
tasklist_properties_update_content_radio(tasklist);
}
-static GtkWidget* get_grouping_button(TasklistData* tasklist, MatewnckTasklistGroupingType type)
+static GtkWidget* get_grouping_button(TasklistData* tasklist, WnckTasklistGroupingType type)
{
switch (type)
{
default:
- case MATEWNCK_TASKLIST_NEVER_GROUP:
+ case WNCK_TASKLIST_NEVER_GROUP:
return tasklist->never_group_radio;
break;
- case MATEWNCK_TASKLIST_AUTO_GROUP:
+ case WNCK_TASKLIST_AUTO_GROUP:
return tasklist->auto_group_radio;
break;
- case MATEWNCK_TASKLIST_ALWAYS_GROUP:
+ case WNCK_TASKLIST_ALWAYS_GROUP:
return tasklist->always_group_radio;
break;
}
@@ -250,7 +252,7 @@ static GtkWidget* get_grouping_button(TasklistData* tasklist, MatewnckTasklistGr
static void group_windows_changed(GSettings* settings, gchar* key, TasklistData* tasklist)
{
- MatewnckTasklistGroupingType type;
+ WnckTasklistGroupingType type;
GtkWidget* button;
type = g_settings_get_enum (settings, key);
@@ -322,11 +324,11 @@ static void applet_size_request(GtkWidget* widget, GtkRequisition* requisition,
int len;
const int* size_hints;
GtkRequisition child_req;
- MatewnckTasklist* matewncktl = MATEWNCK_TASKLIST(tasklist->tasklist);
+ WnckTasklist* wncktl = WNCK_TASKLIST(tasklist->tasklist);
gtk_widget_get_child_requisition(tasklist->applet, &child_req);
- size_hints = matewnck_tasklist_get_size_hint_list(matewncktl, &len);
+ size_hints = wnck_tasklist_get_size_hint_list(wncktl, &len);
g_assert(len % 2 == 0);
mate_panel_applet_set_size_hints(MATE_PANEL_APPLET(tasklist->applet), size_hints, len, 0);
@@ -413,11 +415,13 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)
break;
}
- tasklist->tasklist = matewnck_tasklist_new(NULL);
+ tasklist->tasklist = wnck_tasklist_new(NULL);
- matewnck_tasklist_set_orientation (tasklist->tasklist, tasklist->orientation);
+#if WNCK_CHECK_VERSION (3, 4, 6)
+ wnck_tasklist_set_orientation (tasklist->tasklist, tasklist->orientation);
+#endif
- matewnck_tasklist_set_icon_loader(MATEWNCK_TASKLIST(tasklist->tasklist), icon_loader_func, tasklist, NULL);
+ wnck_tasklist_set_icon_loader(WNCK_TASKLIST(tasklist->tasklist), icon_loader_func, tasklist, NULL);
g_signal_connect(G_OBJECT(tasklist->tasklist), "destroy", G_CALLBACK(destroy_tasklist), tasklist);
diff --git a/applets/wncklet/window-list.h b/applets/wncklet/window-list.h
index aa13b55a..aa5c2811 100644
--- a/applets/wncklet/window-list.h
+++ b/applets/wncklet/window-list.h
@@ -1,5 +1,5 @@
/*
- * libmatewnck based tasklist Applet.
+ * libwnck based tasklist Applet.
* (C) 2001 Alexander Larsson
*
* Authors: Alexander Larsson
diff --git a/applets/wncklet/window-menu.c b/applets/wncklet/window-menu.c
index d4a00b72..b3133946 100644
--- a/applets/wncklet/window-menu.c
+++ b/applets/wncklet/window-menu.c
@@ -35,7 +35,7 @@
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
-#include <libmatewnck/selector.h>
+#include <libwnck/selector.h>
#include "wncklet.h"
#include "window-menu.h"
@@ -181,7 +181,7 @@ static void window_menu_size_allocate(MatePanelApplet* applet, GtkAllocation* al
static gboolean window_menu_key_press_event(GtkWidget* widget, GdkEventKey* event, WindowMenu* window_menu)
{
GtkMenuShell* menu_shell;
- MatewnckSelector* selector;
+ WnckSelector* selector;
switch (event->keyval)
{
@@ -191,7 +191,7 @@ static gboolean window_menu_key_press_event(GtkWidget* widget, GdkEventKey* even
case GDK_Return:
case GDK_space:
case GDK_KP_Space:
- selector = MATEWNCK_SELECTOR(window_menu->selector);
+ selector = WNCK_SELECTOR(window_menu->selector);
/*
* We need to call _gtk_menu_shell_activate() here as is done in
* window_key_press_handler in gtkmenubar.c which pops up menu
@@ -251,7 +251,7 @@ gboolean window_menu_applet_fill(MatePanelApplet* applet)
g_free(ui_path);
g_object_unref(action_group);
- window_menu->selector = matewnck_selector_new();
+ window_menu->selector = wnck_selector_new();
gtk_container_add(GTK_CONTAINER(window_menu->applet), window_menu->selector);
mate_panel_applet_set_background_widget(MATE_PANEL_APPLET(window_menu->applet), GTK_WIDGET(window_menu->selector));
diff --git a/applets/wncklet/wncklet.c b/applets/wncklet/wncklet.c
index 819a1518..e7c37bbc 100644
--- a/applets/wncklet/wncklet.c
+++ b/applets/wncklet/wncklet.c
@@ -30,8 +30,8 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#include <libmatewnck/screen.h>
-#include <libmatewnck/util.h>
+#include <libwnck/screen.h>
+#include <libwnck/util.h>
#include "wncklet.h"
#include "window-menu.h"
@@ -92,16 +92,16 @@ void wncklet_display_help(GtkWidget* widget, const char* doc_id, const char* lin
}
}
-MatewnckScreen* wncklet_get_screen(GtkWidget* applet)
+WnckScreen* wncklet_get_screen(GtkWidget* applet)
{
int screen_num;
if (!gtk_widget_has_screen(applet))
- return matewnck_screen_get_default();
+ return wnck_screen_get_default();
screen_num = gdk_screen_get_number(gtk_widget_get_screen(applet));
- return matewnck_screen_get(screen_num);
+ return wnck_screen_get(screen_num);
}
void wncklet_connect_while_alive(gpointer object, const char* signal, GCallback func, gpointer func_data, gpointer alive_object)
@@ -120,7 +120,7 @@ static gboolean wncklet_factory(MatePanelApplet* applet, const char* iid, gpoint
if (!type_registered)
{
- matewnck_set_client_type(MATEWNCK_CLIENT_TYPE_PAGER);
+ wnck_set_client_type(WNCK_CLIENT_TYPE_PAGER);
type_registered = TRUE;
}
diff --git a/applets/wncklet/wncklet.h b/applets/wncklet/wncklet.h
index 7d50c953..4a5ff11a 100644
--- a/applets/wncklet/wncklet.h
+++ b/applets/wncklet/wncklet.h
@@ -24,7 +24,7 @@
#ifndef __WNCKLET_H__
#define __WNCKLET_H__
-#include <libmatewnck/screen.h>
+#include <libwnck/screen.h>
#include <glib.h>
#include <gtk/gtk.h>
@@ -36,7 +36,7 @@ extern "C" {
void wncklet_display_help(GtkWidget* widget, const char* doc_id, const char* link_id, const char* icon_name);
-MatewnckScreen* wncklet_get_screen(GtkWidget* applet);
+WnckScreen* wncklet_get_screen(GtkWidget* applet);
void wncklet_connect_while_alive(gpointer object, const char* signal, GCallback func, gpointer func_data, gpointer alive_object);
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index cda52708..ad747516 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
/*
- * libmatewnck based pager applet.
+ * libwnck based pager applet.
* (C) 2001 Alexander Larsson
* (C) 2001 Red Hat, Inc
*
@@ -21,7 +21,7 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#include <libmatewnck/libmatewnck.h>
+#include <libwnck/libwnck.h>
#include <gio/gio.h>
#include "workspace-switcher.h"
@@ -53,7 +53,7 @@ typedef struct {
GtkWidget* pager;
- MatewnckScreen* screen;
+ WnckScreen* screen;
PagerWM wm;
/* Properties: */
@@ -73,7 +73,7 @@ typedef struct {
GtkOrientation orientation;
int n_rows; /* for vertical layout this is cols */
- MatewnckPagerDisplayMode display_mode;
+ WnckPagerDisplayMode display_mode;
gboolean display_all;
gboolean wrap_workspaces;
@@ -86,14 +86,14 @@ static void display_about_dialog(GtkAction* action, PagerData* pager);
static void pager_update(PagerData* pager)
{
- matewnck_pager_set_orientation(MATEWNCK_PAGER(pager->pager), pager->orientation);
- matewnck_pager_set_n_rows(MATEWNCK_PAGER(pager->pager), pager->n_rows);
- matewnck_pager_set_show_all(MATEWNCK_PAGER(pager->pager), pager->display_all);
+ wnck_pager_set_orientation(WNCK_PAGER(pager->pager), pager->orientation);
+ wnck_pager_set_n_rows(WNCK_PAGER(pager->pager), pager->n_rows);
+ wnck_pager_set_show_all(WNCK_PAGER(pager->pager), pager->display_all);
if (pager->wm == PAGER_WM_MARCO)
- matewnck_pager_set_display_mode(MATEWNCK_PAGER(pager->pager), pager->display_mode);
+ wnck_pager_set_display_mode(WNCK_PAGER(pager->pager), pager->display_mode);
else
- matewnck_pager_set_display_mode(MATEWNCK_PAGER(pager->pager), MATEWNCK_PAGER_DISPLAY_CONTENT);
+ wnck_pager_set_display_mode(WNCK_PAGER(pager->pager), WNCK_PAGER_DISPLAY_CONTENT);
}
static void update_properties_for_wm(PagerData* pager)
@@ -132,11 +132,11 @@ static void update_properties_for_wm(PagerData* pager)
gtk_window_reshow_with_initial_size(GTK_WINDOW(pager->properties_dialog));
}
-static void window_manager_changed(MatewnckScreen* screen, PagerData* pager)
+static void window_manager_changed(WnckScreen* screen, PagerData* pager)
{
const char *wm_name;
- wm_name = matewnck_screen_get_window_manager_name(screen);
+ wm_name = wnck_screen_get_window_manager_name(screen);
if (!wm_name)
pager->wm = PAGER_WM_UNKNOWN;
@@ -236,8 +236,8 @@ static gboolean applet_scroll(MatePanelApplet* applet, GdkEventScroll* event, Pa
if (event->type != GDK_SCROLL)
return FALSE;
- index = matewnck_workspace_get_number(matewnck_screen_get_active_workspace(pager->screen));
- n_workspaces = matewnck_screen_get_workspace_count(pager->screen);
+ index = wnck_workspace_get_number(wnck_screen_get_active_workspace(pager->screen));
+ n_workspaces = wnck_screen_get_workspace_count(pager->screen);
n_columns = n_workspaces / pager->n_rows;
if (n_workspaces % pager->n_rows != 0)
@@ -324,7 +324,7 @@ static gboolean applet_scroll(MatePanelApplet* applet, GdkEventScroll* event, Pa
break;
}
- matewnck_workspace_activate(matewnck_screen_get_workspace(pager->screen, index), event->time);
+ wnck_workspace_activate(wnck_screen_get_workspace(pager->screen, index), event->time);
return TRUE;
}
@@ -389,11 +389,11 @@ static void display_workspace_names_changed(GSettings* settings, gchar* key, Pag
if (value)
{
- pager->display_mode = MATEWNCK_PAGER_DISPLAY_NAME;
+ pager->display_mode = WNCK_PAGER_DISPLAY_NAME;
}
else
{
- pager->display_mode = MATEWNCK_PAGER_DISPLAY_CONTENT;
+ pager->display_mode = WNCK_PAGER_DISPLAY_CONTENT;
}
pager_update(pager);
@@ -495,11 +495,11 @@ gboolean workspace_switcher_applet_fill(MatePanelApplet* applet)
if (display_names)
{
- pager->display_mode = MATEWNCK_PAGER_DISPLAY_NAME;
+ pager->display_mode = WNCK_PAGER_DISPLAY_NAME;
}
else
{
- pager->display_mode = MATEWNCK_PAGER_DISPLAY_CONTENT;
+ pager->display_mode = WNCK_PAGER_DISPLAY_CONTENT;
}
pager->display_all = g_settings_get_boolean(pager->settings, "display-all-workspaces");
@@ -517,10 +517,10 @@ gboolean workspace_switcher_applet_fill(MatePanelApplet* applet)
break;
}
- pager->pager = matewnck_pager_new(NULL);
+ pager->pager = wnck_pager_new(NULL);
pager->screen = NULL;
pager->wm = PAGER_WM_UNKNOWN;
- matewnck_pager_set_shadow_type(MATEWNCK_PAGER(pager->pager), GTK_SHADOW_IN);
+ wnck_pager_set_shadow_type(WNCK_PAGER(pager->pager), GTK_SHADOW_IN);
g_signal_connect(G_OBJECT(pager->pager), "destroy", G_CALLBACK(destroy_pager), pager);
@@ -620,10 +620,10 @@ static void num_rows_value_changed(GtkSpinButton* button, PagerData* pager)
static void update_workspaces_model(PagerData* pager)
{
int nr_ws, i;
- MatewnckWorkspace* workspace;
+ WnckWorkspace* workspace;
GtkTreeIter iter;
- nr_ws = matewnck_screen_get_workspace_count(pager->screen);
+ nr_ws = wnck_screen_get_workspace_count(pager->screen);
if (pager->properties_dialog)
{
@@ -634,36 +634,36 @@ static void update_workspaces_model(PagerData* pager)
for (i = 0; i < nr_ws; i++)
{
- workspace = matewnck_screen_get_workspace(pager->screen, i);
+ workspace = wnck_screen_get_workspace(pager->screen, i);
gtk_list_store_append(pager->workspaces_store, &iter);
- gtk_list_store_set(pager->workspaces_store, &iter, 0, matewnck_workspace_get_name(workspace), -1);
+ gtk_list_store_set(pager->workspaces_store, &iter, 0, wnck_workspace_get_name(workspace), -1);
}
}
}
-static void workspace_renamed(MatewnckWorkspace* space, PagerData* pager)
+static void workspace_renamed(WnckWorkspace* space, PagerData* pager)
{
int i;
GtkTreeIter iter;
- i = matewnck_workspace_get_number(space);
+ i = wnck_workspace_get_number(space);
if (gtk_tree_model_iter_nth_child(GTK_TREE_MODEL(pager->workspaces_store), &iter, NULL, i))
- gtk_list_store_set(pager->workspaces_store, &iter, 0, matewnck_workspace_get_name(space), -1);
+ gtk_list_store_set(pager->workspaces_store, &iter, 0, wnck_workspace_get_name(space), -1);
}
-static void workspace_created(MatewnckScreen* screen, MatewnckWorkspace* space, PagerData* pager)
+static void workspace_created(WnckScreen* screen, WnckWorkspace* space, PagerData* pager)
{
- g_return_if_fail(MATEWNCK_IS_SCREEN(screen));
+ g_return_if_fail(WNCK_IS_SCREEN(screen));
update_workspaces_model(pager);
wncklet_connect_while_alive(space, "name_changed", G_CALLBACK(workspace_renamed), pager, pager->properties_dialog);
}
-static void workspace_destroyed(MatewnckScreen* screen, MatewnckWorkspace* space, PagerData* pager)
+static void workspace_destroyed(WnckScreen* screen, WnckWorkspace* space, PagerData* pager)
{
- g_return_if_fail(MATEWNCK_IS_SCREEN(screen));
+ g_return_if_fail(WNCK_IS_SCREEN(screen));
update_workspaces_model(pager);
}
@@ -674,7 +674,7 @@ static void num_workspaces_value_changed(GtkSpinButton* button, PagerData* pager
* FIXME: remove this if bug 410520 gets fixed. */
button->timer_step = 0.2;
- matewnck_screen_change_workspace_count(pager->screen, gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(pager->num_workspaces_spin)));
+ wnck_screen_change_workspace_count(pager->screen, gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(pager->num_workspaces_spin)));
}
static gboolean workspaces_tree_focused_out(GtkTreeView* treeview, GdkEventFocus* event, PagerData* pager)
@@ -689,18 +689,18 @@ static gboolean workspaces_tree_focused_out(GtkTreeView* treeview, GdkEventFocus
static void workspace_name_edited(GtkCellRendererText* cell_renderer_text, const gchar* path, const gchar* new_text, PagerData* pager)
{
const gint* indices;
- MatewnckWorkspace* workspace;
+ WnckWorkspace* workspace;
GtkTreePath* p;
p = gtk_tree_path_new_from_string(path);
indices = gtk_tree_path_get_indices(p);
- workspace = matewnck_screen_get_workspace(pager->screen, indices[0]);
+ workspace = wnck_screen_get_workspace(pager->screen, indices[0]);
if (workspace != NULL)
{
gchar* temp_name = g_strdup(new_text);
- matewnck_workspace_change_name(workspace, g_strstrip(temp_name));
+ wnck_workspace_change_name(workspace, g_strstrip(temp_name));
g_free(temp_name);
}
@@ -850,7 +850,7 @@ static void setup_dialog(GtkBuilder* builder, PagerData* pager)
g_signal_connect(G_OBJECT(pager->display_workspaces_toggle), "toggled", (GCallback) display_workspace_names_toggled, pager);
- if (pager->display_mode == MATEWNCK_PAGER_DISPLAY_NAME)
+ if (pager->display_mode == WNCK_PAGER_DISPLAY_NAME)
{
value = TRUE;
}
@@ -891,7 +891,7 @@ static void setup_dialog(GtkBuilder* builder, PagerData* pager)
g_signal_connect(WID("done_button"), "clicked", (GCallback) close_dialog, pager);
- gtk_spin_button_set_value(GTK_SPIN_BUTTON(pager->num_workspaces_spin), matewnck_screen_get_workspace_count(pager->screen));
+ gtk_spin_button_set_value(GTK_SPIN_BUTTON(pager->num_workspaces_spin), wnck_screen_get_workspace_count(pager->screen));
g_signal_connect(G_OBJECT(pager->num_workspaces_spin), "value_changed", (GCallback) num_workspaces_value_changed, pager);
wncklet_connect_while_alive(pager->screen, "workspace_created", G_CALLBACK(workspace_created), pager, pager->properties_dialog);
@@ -911,11 +911,11 @@ static void setup_dialog(GtkBuilder* builder, PagerData* pager)
gtk_tree_view_append_column(GTK_TREE_VIEW(pager->workspaces_tree), column);
g_signal_connect(cell, "edited", (GCallback) workspace_name_edited, pager);
- nr_ws = matewnck_screen_get_workspace_count(pager->screen);
+ nr_ws = wnck_screen_get_workspace_count(pager->screen);
for (i = 0; i < nr_ws; i++)
{
- wncklet_connect_while_alive(G_OBJECT(matewnck_screen_get_workspace(pager->screen, i)), "name_changed", G_CALLBACK(workspace_renamed), pager, pager->properties_dialog);
+ wncklet_connect_while_alive(G_OBJECT(wnck_screen_get_workspace(pager->screen, i)), "name_changed", G_CALLBACK(workspace_renamed), pager, pager->properties_dialog);
}
update_properties_for_wm(pager);
diff --git a/applets/wncklet/workspace-switcher.h b/applets/wncklet/workspace-switcher.h
index f2e45068..7d7dead5 100644
--- a/applets/wncklet/workspace-switcher.h
+++ b/applets/wncklet/workspace-switcher.h
@@ -1,5 +1,5 @@
/*
- * libmatewnck based pager Apple.
+ * libwnck based pager Apple.
* (C) 2001 Alexander Larsson
*
* Authors: Alexander Larsson