Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
5e5229b6
Commit
5e5229b6
authored
May 03, 2002
by
Loïc Minier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./plugins/gtk/gnome.c: new option lets you hide the text of the
GNOME interface toolbar
parent
e6132d29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
plugins/gtk/gnome.c
plugins/gtk/gnome.c
+11
-1
No files found.
plugins/gtk/gnome.c
View file @
5e5229b6
...
...
@@ -2,7 +2,7 @@
* gnome.c : Gnome plugin for vlc
*****************************************************************************
* Copyright (C) 2000 VideoLAN
* $Id: gnome.c,v 1.1
8 2002/04/23 14:16:20 sam
Exp $
* $Id: gnome.c,v 1.1
9 2002/05/03 17:37:09 lool
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -63,6 +63,8 @@ static gint GnomeManage ( gpointer p_data );
*****************************************************************************/
#define TOOLTIPS_TEXT N_("hide tooltips")
#define TOOLTIPS_LONGTEXT N_("Do not show tooltips for configuration options.")
#define TOOLBAR_TEXT N_("hide text on toolbar buttons")
#define TOOLBAR_LONGTEXT N_("Do not show the text below icons on the toolbar.")
#define PREFS_MAXH_TEXT N_("maximum height for the configuration windows")
#define PREFS_MAXH_LONGTEXT N_( \
...
...
@@ -73,6 +75,8 @@ MODULE_CONFIG_START
ADD_CATEGORY_HINT
(
N_
(
"Miscellaneous"
),
NULL
)
ADD_BOOL
(
"gnome-notooltips"
,
NULL
,
TOOLTIPS_TEXT
,
TOOLTIPS_LONGTEXT
)
ADD_BOOL
(
"gnome-notoolbartext"
,
NULL
,
TOOLBAR_TEXT
,
TOOLBAR_LONGTEXT
)
ADD_INTEGER
(
"gnome-prefs-maxh"
,
480
,
NULL
,
PREFS_MAXH_TEXT
,
PREFS_MAXH_LONGTEXT
)
MODULE_CONFIG_STOP
...
...
@@ -269,6 +273,12 @@ static void intf_Run( intf_thread_t *p_intf )
if
(
config_GetIntVariable
(
"gnome-notooltips"
)
)
gtk_tooltips_disable
(
p_intf
->
p_sys
->
p_tooltips
);
/* Hide toolbar text of the option is set */
if
(
config_GetIntVariable
(
"gnome-notoolbartext"
)
)
gtk_toolbar_set_style
(
GTK_TOOLBAR
(
lookup_widget
(
p_intf
->
p_sys
->
p_window
,
"toolbar"
)),
GTK_TOOLBAR_ICONS
);
/* Store p_intf to keep an eye on it */
gtk_object_set_data
(
GTK_OBJECT
(
p_intf
->
p_sys
->
p_window
),
"p_intf"
,
p_intf
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment