Verified Commit 77934a16 authored by Zander Brown's avatar Zander Brown
Browse files

Use HdyDialog for close dialog

Mostly because we can
parent 11eda5e3
......@@ -33,7 +33,7 @@
#include "kgx-close-dialog.h"
#include "kgx-close-dialog-row.h"
G_DEFINE_TYPE (KgxCloseDialog, kgx_close_dialog, GTK_TYPE_DIALOG)
G_DEFINE_TYPE (KgxCloseDialog, kgx_close_dialog, HDY_TYPE_DIALOG)
static void
kgx_close_dialog_class_init (KgxCloseDialogClass *klass)
......
......@@ -20,6 +20,8 @@
#include <gtk/gtk.h>
#include <vte/vte.h>
#define HANDY_USE_UNSTABLE_API
#include <handy.h>
G_BEGIN_DECLS
......@@ -34,13 +36,13 @@ G_BEGIN_DECLS
struct _KgxCloseDialog
{
/*< private >*/
GtkDialog parent_instance;
HdyDialog parent_instance;
/*< public >*/
GtkWidget *list;
};
G_DECLARE_FINAL_TYPE (KgxCloseDialog, kgx_close_dialog, KGX, CLOSE_DIALOG, GtkDialog)
G_DECLARE_FINAL_TYPE (KgxCloseDialog, kgx_close_dialog, KGX, CLOSE_DIALOG, HdyDialog)
void kgx_close_dialog_add_command (KgxCloseDialog *self,
const char *command);
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.20"/>
<template class="KgxCloseDialog" parent="GtkDialog">
<template class="KgxCloseDialog" parent="HdyDialog">
<property name="border-width">0</property>
<property name="title" translatable="yes">Close Terminal</property>
<property name="modal">True</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment