mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-10 09:11:43 +03:00
fixup usage of gvalue init macro
This commit is contained in:
parent
4765c68a15
commit
487309a1e6
@ -80,6 +80,12 @@ typedef enum {
|
||||
} GtkAlign;
|
||||
#endif
|
||||
|
||||
/* value init since gtk 2.30 */
|
||||
#ifndef G_VALUE_INIT
|
||||
#define G_VALUE_INIT { 0, { { 0 } } }
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Set the alignment of a widget.
|
||||
*
|
||||
|
@ -21,8 +21,6 @@
|
||||
* Implementation of url entry completion.
|
||||
*/
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "utils/log.h"
|
||||
#include "utils/messages.h"
|
||||
#include "utils/nsoption.h"
|
||||
@ -31,6 +29,7 @@
|
||||
#include "netsurf/browser_window.h"
|
||||
#include "desktop/searchweb.h"
|
||||
|
||||
#include "gtk/compat.h"
|
||||
#include "gtk/warn.h"
|
||||
#include "gtk/scaffolding.h"
|
||||
#include "gtk/window.h"
|
||||
@ -80,7 +79,7 @@ nsgtk_completion_match_select(GtkEntryCompletion *widget,
|
||||
GtkTreeIter *iter,
|
||||
gpointer user_data)
|
||||
{
|
||||
GValue value = {0, };
|
||||
GValue value = G_VALUE_INIT;
|
||||
struct nsgtk_scaffolding *g = user_data;
|
||||
struct browser_window *bw = nsgtk_get_browser_window(nsgtk_scaffolding_top_level(g));
|
||||
nserror ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user