summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorquinn <quinn>2006-11-11 01:00:38 +0000
committerquinn <quinn>2006-11-11 01:00:38 +0000
commit4e8caf30007bc68b70d03f142830c081c5278c9f (patch)
tree37adf55dd2f11390421626448c6c1e3c36b0f333 /src
parent392b9228f06a4c1aa959d2eb28e18af6ea1a8313 (diff)
downloadberyl-manager-4e8caf30007bc68b70d03f142830c081c5278c9f.tar.gz
beryl-manager-4e8caf30007bc68b70d03f142830c081c5278c9f.tar.bz2
beryl-manager: change the rendering option to reflect the real state of the code
Diffstat (limited to 'src')
-rw-r--r--src/main.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main.c b/src/main.c
index dd8877d..a15352e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -32,7 +32,7 @@ EggTrayIcon * mainIcon;
GtkWidget * menu;
GtkTooltips * tips;
gboolean noGLYield=FALSE;
-gboolean useTFP=FALSE;
+gboolean useCopy=FALSE;
gboolean hasMouse=FALSE;
gboolean berylLaunched=FALSE;
gboolean decoratorLaunched=FALSE;
@@ -258,12 +258,12 @@ void load_settings()
noGLYield=FALSE;
if (!XGL)
{
- b=g_key_file_get_boolean(f,"beryl-settings", "use_tfp", &e);
+ b=g_key_file_get_boolean(f,"beryl-settings", "use_copy", &e);
if (!e)
- useTFP=b;
+ useCopy=b;
e=NULL;
} else
- useTFP=TRUE;
+ useCopy=TRUE;
}
g_key_file_free(f);
g_free(path);
@@ -281,7 +281,7 @@ void save_settings()
g_key_file_set_boolean(f,"beryl-settings","no_gl_yield",
noGLYield);
if (!XGL)
- g_key_file_set_boolean(f,"beryl-settings","use_tfp", useTFP);
+ g_key_file_set_boolean(f,"beryl-settings","use_copy", useCopy);
data = g_key_file_to_data(f,NULL,NULL);
g_file_set_contents(path,data,-1,NULL);
g_key_file_free(f);
@@ -584,8 +584,8 @@ gpointer berylThread(gpointer d)
g_strlcpy(beryl_command, "beryl", 50);
if (noGLYield)
g_strlcat(beryl_command, " --skip-gl-yield", 50);
- if (useTFP)
- g_strlcat(beryl_command, " --use-tfp", 50);
+ if (useCopy)
+ g_strlcat(beryl_command, " --use-copy", 50);
}
berylLaunched=TRUE;
while(berylLaunched)
@@ -801,9 +801,9 @@ void setGLYield(GtkWidget * w, gpointer p)
save_settings();
if (WM==0) reloadBeryl();
}
-void setUseTFP(GtkWidget * w, gpointer p)
+void setUseCopy(GtkWidget * w, gpointer p)
{
- useTFP=gtk_check_menu_item_get_active(
+ useCopy=gtk_check_menu_item_get_active(
GTK_CHECK_MENU_ITEM(w));
save_settings();
if (WM==0) reloadBeryl();
@@ -882,12 +882,12 @@ void init_menu()
if (!XGL)
{
mitem = gtk_check_menu_item_new_with_label(_(
- "Use Texture-From-Pixmap"));
+ "Use Non-TFP Copy Rendering"));
gtk_menu_shell_append(GTK_MENU_SHELL(menu),mitem);
gtk_check_menu_item_set_active(
- GTK_CHECK_MENU_ITEM(mitem),useTFP);
+ GTK_CHECK_MENU_ITEM(mitem),useCopy);
gtk_widget_show(mitem);
- g_signal_connect(mitem,"toggled",G_CALLBACK(setUseTFP),NULL);
+ g_signal_connect(mitem,"toggled",G_CALLBACK(setUseCopy),NULL);
}
mitem = gtk_separator_menu_item_new();
gtk_menu_shell_append(GTK_MENU_SHELL(menu),mitem);