SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
45
net/spectrum-tools/patches/patch-spectool_gtk_planar_c
Normal file
45
net/spectrum-tools/patches/patch-spectool_gtk_planar_c
Normal file
|
@ -0,0 +1,45 @@
|
|||
Index: spectool_gtk_planar.c
|
||||
--- spectool_gtk_planar.c.orig
|
||||
+++ spectool_gtk_planar.c
|
||||
@@ -351,15 +351,15 @@ static gint spectool_planar_button_press(GtkWidget *wi
|
||||
SpectoolWidget *wwidget;
|
||||
int ch;
|
||||
|
||||
- g_return_if_fail(aux != NULL);
|
||||
- g_return_if_fail(IS_SPECTOOL_PLANAR(aux));
|
||||
- g_return_if_fail(IS_SPECTOOL_WIDGET(aux));
|
||||
+ g_return_val_if_fail(aux != NULL, 0);
|
||||
+ g_return_val_if_fail(IS_SPECTOOL_PLANAR(aux), 0);
|
||||
+ g_return_val_if_fail(IS_SPECTOOL_WIDGET(aux), 0);
|
||||
|
||||
planar = SPECTOOL_PLANAR(aux);
|
||||
wwidget = SPECTOOL_WIDGET(aux);
|
||||
|
||||
- g_return_if_fail(wwidget->sweepcache != NULL);
|
||||
- g_return_if_fail(wwidget->sweepcache->avg != NULL);
|
||||
+ g_return_val_if_fail(wwidget->sweepcache != NULL, 0);
|
||||
+ g_return_val_if_fail(wwidget->sweepcache->avg != NULL, 0);
|
||||
|
||||
if (event->button != 1)
|
||||
return TRUE;
|
||||
@@ -379,15 +379,15 @@ static gboolean spectool_planar_mouse_move(GtkWidget *
|
||||
SpectoolPlanar *planar;
|
||||
SpectoolWidget *wwidget;
|
||||
|
||||
- g_return_if_fail(aux != NULL);
|
||||
- g_return_if_fail(IS_SPECTOOL_PLANAR(aux));
|
||||
- g_return_if_fail(IS_SPECTOOL_WIDGET(aux));
|
||||
+ g_return_val_if_fail(aux != NULL, FALSE);
|
||||
+ g_return_val_if_fail(IS_SPECTOOL_PLANAR(aux), FALSE);
|
||||
+ g_return_val_if_fail(IS_SPECTOOL_WIDGET(aux), FALSE);
|
||||
|
||||
planar = SPECTOOL_PLANAR(aux);
|
||||
wwidget = SPECTOOL_WIDGET(aux);
|
||||
|
||||
- g_return_if_fail(wwidget->sweepcache != NULL);
|
||||
- g_return_if_fail(wwidget->sweepcache->avg != NULL);
|
||||
+ g_return_val_if_fail(wwidget->sweepcache != NULL, FALSE);
|
||||
+ g_return_val_if_fail(wwidget->sweepcache->avg != NULL, FALSE);
|
||||
|
||||
if (event->is_hint) {
|
||||
gdk_window_get_pointer(event->window, &x, &y, &state);
|
Loading…
Add table
Add a link
Reference in a new issue