Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mousepad
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Avinash Sonawane
mousepad
Commits
c15a1b2c
Commit
c15a1b2c
authored
Feb 28, 2015
by
Landry Breuil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for gcc version for push/pop pragmas, fixes build on OpenBSD.
parent
48d31a84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
mousepad/mousepad-print.c
mousepad/mousepad-print.c
+2
-2
mousepad/mousepad-search-bar.c
mousepad/mousepad-search-bar.c
+2
-2
mousepad/mousepad-window.c
mousepad/mousepad-window.c
+2
-2
No files found.
mousepad/mousepad-print.c
View file @
c15a1b2c
...
...
@@ -701,7 +701,7 @@ mousepad_print_create_custom_widget (GtkPrintOperation *operation)
gtk_widget_show
(
alignment
);
/* In GTK3, GtkTable is deprecated */
#if GTK_CHECK_VERSION(3, 0, 0) &&
defined(__GNUC__
)
#if GTK_CHECK_VERSION(3, 0, 0) &&
(__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2
)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
...
...
@@ -742,7 +742,7 @@ mousepad_print_create_custom_widget (GtkPrintOperation *operation)
g_signal_connect
(
G_OBJECT
(
print
->
widget_line_numbers_font
),
"font-set"
,
G_CALLBACK
(
mousepad_print_button_font_set
),
print
);
gtk_widget_show
(
print
->
widget_line_numbers_font
);
#if GTK_CHECK_VERSION(3, 0, 0) &&
defined(__GNUC__
)
#if GTK_CHECK_VERSION(3, 0, 0) &&
(__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2
)
# pragma GCC diagnostic pop
#endif
...
...
mousepad/mousepad-search-bar.c
View file @
c15a1b2c
...
...
@@ -137,7 +137,7 @@ mousepad_search_bar_class_init (MousepadSearchBarClass *klass)
gtk_binding_entry_add_signal
(
binding_set
,
GDK_Escape
,
0
,
"hide-bar"
,
0
);
/* In GTK3, gtkrc is deprecated */
#if GTK_CHECK_VERSION(3, 0, 0) &&
defined(__GNUC__
)
#if GTK_CHECK_VERSION(3, 0, 0) &&
(__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2
)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
...
...
@@ -156,7 +156,7 @@ mousepad_search_bar_class_init (MousepadSearchBarClass *klass)
"}
\n
"
"widget
\"
MousepadWindow.*.Gtk*ToolButton
\"
style
\"
mousepad-button-style
\"\n
"
);
#if GTK_CHECK_VERSION(3, 0, 0) &&
defined(__GNUC__
)
#if GTK_CHECK_VERSION(3, 0, 0) &&
(__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2
)
# pragma GCC diagnostic pop
#endif
...
...
mousepad/mousepad-window.c
View file @
c15a1b2c
...
...
@@ -865,7 +865,7 @@ mousepad_window_create_root_warning (MousepadWindow *window)
GtkWidget
*
ebox
,
*
label
,
*
separator
;
/* In GTK3, gtkrc is deprecated */
#if GTK_CHECK_VERSION(3, 0, 0) &&
defined(__GNUC__
)
#if GTK_CHECK_VERSION(3, 0, 0) &&
(__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2
)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
...
...
@@ -879,7 +879,7 @@ mousepad_window_create_root_warning (MousepadWindow *window)
"widget
\"
MousepadWindow.*.root-warning
\"
style
\"
mousepad-window-root-style
\"\n
"
"widget
\"
MousepadWindow.*.root-warning.GtkLabel
\"
style
\"
mousepad-window-root-style
\"\n
"
);
#if GTK_CHECK_VERSION(3, 0, 0) &&
defined(__GNUC__
)
#if GTK_CHECK_VERSION(3, 0, 0) &&
(__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 2
)
# pragma GCC diagnostic pop
#endif
...
...
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